Todos os produtos
Search
Central de documentação

Resource Orchestration Service:DATASOURCE::APIG::Service

Última atualização: Jun 27, 2026

Consulta os detalhes de um serviço do Cloud-native API Gateway.

Sintaxe

{
  "Type": "DATASOURCE::APIG::Service",
  "Properties": {
    "ServiceId": String,
    "RefreshOptions": String
  }
}

Propriedades

Propriedade

Tipo

Obrigatória

Editável

Descrição

Restrição

ServiceId

String

Sim

Sim

ID do serviço.

Nenhuma.

RefreshOptions

String

Não

Sim

Política de atualização dos recursos de source durante a atualização da pilha.

Valores válidos:

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

  • Always: atualiza os recursos de source durante a atualização da pilha.

Valores de retorno

Fn::GetAtt

  • GroupName: nome do grupo de serviços.

  • Addresses: endereços do serviço, como endereços IP ou nomes de domínio.

  • ResourceGroupId: ID do grupo de recursos.

  • ServiceName: nome do serviço.

  • SourceType: tipo de origem do serviço.

  • Qualifier: nome qualificado da função.

  • GatewayId: ID da instância do Cloud-native API Gateway.

  • Namespace: namespace.

  • AiServiceConfig: configurações do serviço de IA.

  • ServiceId: ID exclusivo do serviço.

Exemplos

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  ServiceId:
    Type: String
    Description:
      en: The ID of the service.
    Required: true
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::APIG::Service
    Properties:
      ServiceId:
        Ref: ServiceId
Outputs:
  GroupName:
    Description: The service group name.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GroupName
  Addresses:
    Description: A list of domain names or fixed addresses.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Addresses
  ResourceGroupId:
    Description: The ID of the resource group.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ResourceGroupId
  ServiceName:
    Description: The name of the Service, need to fill in manually when sourceType is VIP/DNS/AI.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ServiceName
  SourceType:
    Description: The type of the service source, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - SourceType
  Qualifier:
    Description: The function version or alias.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Qualifier
  GatewayId:
    Description: The ID of the Cloud Native API Gateway.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - GatewayId
  Namespace:
    Description: The namespace of the service:.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Namespace
  AiServiceConfig:
    Description: AI service configuration when sourceType equals AI.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - AiServiceConfig
  ServiceId:
    Description: The ID of the service.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - ServiceId
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "ServiceId": {
      "Type": "String",
      "Description": {
        "en": "The ID of the service."
      },
      "Required": true
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::APIG::Service",
      "Properties": {
        "ServiceId": {
          "Ref": "ServiceId"
        }
      }
    }
  },
  "Outputs": {
    "GroupName": {
      "Description": "The service group name.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GroupName"
        ]
      }
    },
    "Addresses": {
      "Description": "A list of domain names or fixed addresses.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Addresses"
        ]
      }
    },
    "ResourceGroupId": {
      "Description": "The ID of the resource group.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ResourceGroupId"
        ]
      }
    },
    "ServiceName": {
      "Description": "The name of the Service, need to fill in manually when sourceType is VIP/DNS/AI.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ServiceName"
        ]
      }
    },
    "SourceType": {
      "Description": "The type of the service source, optional value is K8S/MSE_NACOS/FC3/SAE_K8S_SERVICE/VIP/DNS/AI.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "SourceType"
        ]
      }
    },
    "Qualifier": {
      "Description": "The function version or alias.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Qualifier"
        ]
      }
    },
    "GatewayId": {
      "Description": "The ID of the Cloud Native API Gateway.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "GatewayId"
        ]
      }
    },
    "Namespace": {
      "Description": "The namespace of the service:.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Namespace"
        ]
      }
    },
    "AiServiceConfig": {
      "Description": "AI service configuration when sourceType equals AI.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "AiServiceConfig"
        ]
      }
    },
    "ServiceId": {
      "Description": "The ID of the service.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "ServiceId"
        ]
      }
    }
  }
}