Skip to main content

Check out Port for yourselfย 

Proto

Proto is a data type used to save .proto definitions in Port

๐Ÿ’ก Common proto usageโ€‹

The proto property type can be used to store types defined in .proto files, for example:

  • Messages between microservices;
  • Microservices APIs;

API definitionโ€‹

{
"myProtoProp": {
"title": "My Proto",
"icon": "My icon",
"description": "My proto property",
"type": "string",
"format": "proto"
}
}

Check out Port's API reference to learn more.

Terraform definitionโ€‹

resource "port_blueprint" "myBlueprint" {
# ...blueprint properties
properties = {
string_props = {
"myProtoProp" = {
title = "My proto"
required = false
format = "proto"
}
}
}
}

Pulumi definitionโ€‹

"""A Python Pulumi program"""

import pulumi
from port_pulumi import Blueprint,BlueprintPropertiesArgs,BlueprintPropertyArgs

blueprint = Blueprint(
"myBlueprint",
identifier="myBlueprint",
title="My Blueprint",
properties=BlueprintPropertiesArgs(
string_props={
"myProtoProp": BlueprintPropertyArgs(
title="My proto",
required=False,
format="proto",
)
}
),
relations={}
)