From 928bf560eab5f65c05c6ebf2fc5585e39dc59479 Mon Sep 17 00:00:00 2001 From: Eyal Benari Date: Thu, 5 Sep 2024 13:29:52 +0300 Subject: [PATCH] added examples --- docs/resources/port_action.md | 8 ++++++++ examples/resources/port_action/main.tf | 10 ++++++++++ 2 files changed, 18 insertions(+) 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" + } + } } } }