Skip to content

Commit

Permalink
added examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Eyal-Be committed Sep 5, 2024
1 parent 318c968 commit 928bf56
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/resources/port_action.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ resource "port_action" "create_microservice" {
jq_query = "\"specificValue\""
}
}]
}
sort = {
property = "$updatedAt"
order = "DESC"
}
}
}
Expand Down Expand Up @@ -208,6 +212,10 @@ resource "port_action" "create_microservice" {
}]
})
}
sort = {
property = "$updatedAt"
order = "DESC"
}
}
}
}
Expand Down
10 changes: 10 additions & 0 deletions examples/resources/port_action/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
}
Expand Down

0 comments on commit 928bf56

Please sign in to comment.