saveEnvironmentGate
Save the environment gate of a given environment. Environment gates are JSON objects consisting of operators "OR", "AND", and "NOT", as well as status UUIDs. A valid operator is a JSON Object with a single key corresponding to one of the three operator types, and with a list of operators or UUIDs as its value. A valid gate begins with an enclosing OR operator containing one or more AND operators. AND operators can contain only UUIDs or NOT operators. NOT operators must contain a single UUID which corresponds to a known version or snapshot status.
Format
udclient [global-args...] [global-flags...]
saveEnvironmentGate [parameters] [JSON file]
Parameters
Parameter | Type | Required | Description |
---|---|---|---|
environment | string | true | Name or ID of environment |
application | string | false | Name or ID of application (required if environment is specified by name) |
Template
This command takes a JSON request string or file. Use the following template for the request:
{"OR": [{"AND": [
"<uuid>",
"<uuid>",
"...",
{"NOT": ["<uuid>"]},
{"NOT": ["<uuid>"]},
"..."
]}]}
Related REST command: Save the environment gate of a given environment.