All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::APIG::Domains

更新时间:Jul 21, 2025

The DATASOURCE::APIG::Domains type is used to query domain list.

Syntax

{
  "Type": "DATASOURCE::APIG::Domains",
  "Properties": {
    "ResourceGroupId": String,
    "RefreshOptions": String
  }
}

Properties

Property name

Type

Required

Update allowed

Description

Constraint

ResourceGroupId

String

No

Yes

The resource group ID.

None

RefreshOptions

String

No

Yes

The data source resources refresh mode when the stack is updated.

Valid values:

  • Never (default): never refresh data source resources when the stack is updated.

  • Always: always refresh data source resources when the stack is updated.

Return values

Fn::GetAtt

  • Domains: Domain details list

  • DomainIds: Domain ID list

Property name

Type

Description

Constraint

DomainIds

List

Domain ID list.

None

Domains

List

Domain details list.

None

DomainId

String

Domain ID.

None

Protocol

String

The protocol type supported by the domain name.

None

CertIdentifier

String

The Alibaba Cloud SSL certificate identifier.

None

DomainName

String

Domain name.

None

ForceHttps

String

Specifies whether to force HTTPS redirection.

None

ResourceGroupId

String

Resource group ID.

None

Example

ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::APIG::Domains
    Properties: {}
Outputs:
  Domains:
    Description: The list of domains.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - Domains
  DomainIds:
    Description: The list of domain IDs.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DomainIds
{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::APIG::Domains",
      "Properties": {
      }
    }
  },
  "Outputs": {
    "Domains": {
      "Description": "The list of domains.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "Domains"
        ]
      }
    },
    "DomainIds": {
      "Description": "The list of domain IDs.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DomainIds"
        ]
      }
    }
  }
}