All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::DNS::DomainGroups

Last Updated:Aug 12, 2024

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

Syntax

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

Properties

PropertyTypeRequiredEditableDescriptionConstraint
KeyWordStringNoYesThe keyword that is used to match the group name. The keyword in the %KeyWord% format is supported. The keyword is not case-sensitive.
LangStringNoYesThe language. None

Return values (Fn::GetAtt)

  • DomainGroupIds: the IDs of the domain name groups.
  • DomainGroups: details of the domain name groups.
PropertyTypeDescriptionConstraint
DomainGroupIdsListThe IDs of the domain name groups. None.
DomainGroupsListDetails of the domain name groups. None.
GroupNameStringThe name of the domain name group. None.
DomainCountNumberThe number of domain name groups. None.
GroupIdStringThe 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