Skip to main content

Check out Port for yourself ➜ 

Entity

Entity inputs allow users to select an entity from your software catalog.

Common usage

The entity input type can be used for:

  • Selecting a service to deploy
  • Choosing an environment
  • Picking a cloud resource
  • Referencing related entities

Definition

{
"service": {
"title": "Service",
"description": "Select a service to deploy",
"type": "string",
"format": "entity",
"blueprint": "service"
}
}

Properties

PropertyTypeDescription
type"string"Required. Must be "string"
format"entity"Required. Must be "entity"
blueprintstringRequired. The blueprint identifier to select entities from
defaultstringDefault entity identifier
datasetobjectFilter to limit available entities
sortobjectSort configuration with property and order (ASC or DESC)

Dataset filtering

Use the dataset property to filter which entities are available for selection:

{
"service": {
"type": "string",
"format": "entity",
"blueprint": "service",
"dataset": {
"combinator": "and",
"rules": [
{
"property": "tier",
"operator": "=",
"value": "critical"
},
{
"property": "status",
"operator": "!=",
"value": "deprecated"
}
]
}
}
}

Sorting results

Sort the entity list by a property:

{
"service": {
"type": "string",
"format": "entity",
"blueprint": "service",
"sort": {
"property": "title",
"order": "ASC"
}
}
}