DATASOURCE::DNS::DomainGroups

更新时间:
复制 MD 格式

Queries domain name groups.

Syntax

{
  "Type": "DATASOURCE::DNS::DomainGroups",
  "Properties": {
    "KeyWord": String,
    "Lang": String,
    "RefreshOptions": String
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

KeyWord

String

No

Yes

The keyword used to search for domain group names.

Supports %KeyWord% pattern matching. Case-insensitive.

Lang

String

No

Yes

The language.

None.

RefreshOptions

String

No

Yes

The refresh policy for data source resources when the stack is updated.

Valid values:

  • Never (default): Does not refresh data source resources on stack updates.

  • Always: Refreshes data source resources on stack updates.

Return values (Fn::GetAtt)

  • DomainGroupIds: the IDs of the domain name groups.

  • DomainGroups: details of the domain name groups.

Property

Type

Description

Constraint

DomainGroupIds

List

The IDs of the domain name groups.

None.

DomainGroups

List

Details of the domain name groups.

None.

GroupName

String

The name of the domain name group.

None.

DomainCount

Number

The number of domain name groups.

None.

GroupId

String

The ID of the domain name group.

None.

Examples

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
    "KeyWord": {
      "Type": "String",
      "Description": "The keyword for searches in \"%KeyWord%\" mode. The value is not case-sensitive."
    }
  },
  "Resources": {
    "ExtensionDataSource": {
      "Type": "DATASOURCE::DNS::DomainGroups",
      "Properties": {
        "KeyWord": {
          "Ref": "KeyWord"
        }
      }
    }
  },
  "Outputs": {
    "DomainGroups": {
      "Description": "The information about DNS domain groups.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DomainGroups"
        ]
      }
    },
    "DomainGroupIds": {
      "Description": "The list of The DNS domain group ids.",
      "Value": {
        "Fn::GetAtt": [
          "ExtensionDataSource",
          "DomainGroupIds"
        ]
      }
    }
  }
}

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters:
  KeyWord:
    Type: String
    Description: The keyword for searches in "%KeyWord%" mode. The value is not case-sensitive.
Resources:
  ExtensionDataSource:
    Type: DATASOURCE::DNS::DomainGroups
    Properties:
      KeyWord:
        Ref: KeyWord
Outputs:
  DomainGroups:
    Description: The information about DNS domain groups.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DomainGroups
  DomainGroupIds:
    Description: The list of The DNS domain group ids.
    Value:
      Fn::GetAtt:
        - ExtensionDataSource
        - DomainGroupIds