DATASOURCE::DNS::DomainGroups is used to query domain name groups.

Syntax

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

Properties

Property Type Required Editable Description Constraint
KeyWord String No Yes The keyword that is used to match the group name. The keyword in the %KeyWord% format is supported. The keyword is not case-sensitive.
Lang String No Yes The language. None

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