diff --git a/docs/resources/port_action.md b/docs/resources/port_action.md index b32706d7..85350d31 100644 --- a/docs/resources/port_action.md +++ b/docs/resources/port_action.md @@ -169,6 +169,10 @@ resource "port_action" "create_microservice" { jq_query = "\"specificValue\"" } }] + } + sort = { + property = "$updatedAt" + order = "DESC" } } } @@ -208,6 +212,10 @@ resource "port_action" "create_microservice" { }] }) } + sort = { + property = "$updatedAt" + order = "DESC" + } } } } diff --git a/examples/resources/port_action/main.tf b/examples/resources/port_action/main.tf index 4b4145cb..e27d6cb8 100644 --- a/examples/resources/port_action/main.tf +++ b/examples/resources/port_action/main.tf @@ -88,6 +88,16 @@ resource "port_action" "restart_microservice" { default = "https://example.com" pattern = "^https://.*" } + service = { + title = "Service" + description = "The service to restart" + format = "entity" + blueprint = "service" + sort = { + property = "$updatedAt" + order = "DESC" + } + } } } }