Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::APIG::Environment

Última atualização: Jun 27, 2026

O tipo DATASOURCE::APIG::Environment consulta um ambiente.

Sintaxe

{
  "Type": "DATASOURCE::APIG::Environment",
  "Properties": {
    "EnvironmentId": String,
    "RefreshOptions": String
  }
}

Propriedades

Nome da propriedade

Tipo

Obrigatório

Atualização permitida

Descrição

Restrição

EnvironmentId

String

Sim

Sim

ID do ambiente.

Nenhuma

RefreshOptions

String

Não

Sim

Modo de atualização dos recursos de source durante a atualização da pilha.

Valores válidos:

  • Never (padrão): os recursos de source não são atualizados durante a atualização da pilha.

  • Always: os recursos de source são atualizados sempre que a pilha é atualizada.

Valores de retorno

Fn::GetAtt

  • EnvironmentId: ID do ambiente.

  • Description: descrição do ambiente.

  • ResourceGroupId: ID do grupo de recursos.

  • EnvironmentName: nome do ambiente.

  • GatewayId: ID do gateway.

Exemplo

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  EnvironmentId:
    Type: String
    Description:
      en: The ID of the Environment.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::APIG::Environment
    Properties:
      EnvironmentId:
        Ref: EnvironmentId
Outputs:
  EnvironmentId:
    Description: The ID of the Environment.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - EnvironmentId
  Description:
    Description: The description of the Environment.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Description
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  EnvironmentName:
    Description: The name of the Environment.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - EnvironmentName
  GatewayId:
    Description: Cloud-native API Gateway ID.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GatewayId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "EnvironmentId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the Environment."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::APIG::Environment",
      "Properties": {
        "EnvironmentId": {
          "Ref": "EnvironmentId"
        }
      }
    }
  },
  "Outputs": {
    "EnvironmentId": {
      "Description": "The ID of the Environment.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EnvironmentId"
        ]
      }
    },
    "Description": {
      "Description": "The description of the Environment.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Description"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "EnvironmentName": {
      "Description": "The name of the Environment.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "EnvironmentName"
        ]
      }
    },
    "GatewayId": {
      "Description": "Cloud-native API Gateway ID.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GatewayId"
        ]
      }
    }
  }
}