Save the environment gate of a given environment template. 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.

Request

POST https://{hostname}:{port}
    /cli/environmentTemplate/gate?{parameters}
Accept: {contentType}
Table 1. Request parameters
Parameter Type Required Description
environmentTemplate string true Name or ID of environment template
applicationTemplate string false Name or ID of applicationTemplate (required if environment template is specified by name)
Table 2. Header parameters
Parameter Type Required Description
Accept
  • application/json
  • application/yaml
true
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 CLI command: saveEnvironmentTemplateGate.