Estrutura do Arquivo .yaml de Ambiente (comando apply)

apiVersion: api-management.sensedia.com/v1
kind: Environment
metadata:
  # Descrição de texto aberto apenas com valores de exemplo
  type: production
  owner: engineering
spec:
  # Campos de identificação
  name: Production
  # Outros campos
  description: <string>
  deploymentPermission:
    type: Me | Team | Organization
    teamRef:
      name: <string>
  tracePermission:
    type: Me | Team | Organization
    teamRef:
      name: <string>
  gatewayPoolRef:
    name: <string>
  inboundURL:
    inboundAddressRef:
      name: <string>
    path: <string>

Schema de Ambiente (comando apply)

{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "$id": "https://sensedia.com/cli/api-management/environment",
  "comment": "Environment Schema",
  "type": "object",
  "properties": {
    "apiVersion": {
      "type": "string",
      "enum": [
        "api-management.sensedia.com/v1"
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "Environment"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "spec": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "name",
        "description",
        "inboundURL"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "deploymentPermission": {
          "$ref": "#/$defs/permission"
        },
        "tracePermission": {
          "$ref": "#/$defs/permission"
        },
        "gatewayPoolRef": {
          "$ref": "#/$defs/optionalNamedRef",
          "default": {
            "name": "default"
          }
        },
        "inboundURL": {
          "type": "object",
          "properties": {
            "inboundAddressRef": {
              "$ref": "#/$defs/namedRef"
            },
            "path": {
              "type": "string"
            }
          },
          "required": [
            "inboundAddressRef",
            "path"
          ]
        }
      }
    }
  },
  "required": [
    "apiVersion",
    "kind",
    "spec"
  ],
  "$defs": {
    "namedRef": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      },
      "required": [
        "name"
      ]
    },
    "optionalNamedRef": {
      "additionalProperties": false,
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        }
      }
    },
    "permission": {
      "additionalProperties": false,
      "type": "object",
      "default": {
        "type": "Organization"
      },
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "Team",
            "Organization",
            "Me"
          ],
          "default": "Organization"
        },
        "teamRef": {
          "$ref": "#/$defs/namedRef"
        }
      }
    }
  }
}
Thanks for your feedback!
EDIT

Share your suggestions with us!
Click here and then [+ Submit idea]