All Products
Search
Document Center

Resource Orchestration Service:DATASOURCE::DirectMail::Domains

Last Updated:Mar 30, 2023

DATASOURCE::DirectMail::Domains is used to query domain names.

Return values

Fn::GetAtt

  • Domains: details of the domain names.

  • DomainIds: the IDs of the domain names.

Property

Type

Description

Constraint

DomainIds

List

The IDs of the domain names.

None.

Domains

List

Details of the domain names.

None.

Status

String

The state of the domain name.

Valid values:

  • 0: The domain name is verified and available.

  • 1: The domain name failed to be verified and is unavailable.

  • 2: The domain name is available, but no CNAME record is configured and ICP filing is not completed for this domain name.

  • 3: The domain name is available, but ICP filing is not completed for this domain name.

  • 4: The domain name is available, but no CNAME record is configured for this domain name.

CnameAuthStatus

String

Indicates whether the CNAME record is successfully verified.

None.

DomainId

String

The ID of the domain name.

None.

DomainName

String

The domain name.

None.

MxAuthStatus

String

Indicates whether the mail exchanger (MX) record is successfully verified.

Valid values:

  • 0: The MX record is successfully verified.

  • 1: The MX record failed to be verified.

SpfAuthStatus

String

Indicates whether the Sender Policy Framework (SPF) record is successfully verified.

Valid values:

  • 0: The SPF record is successfully verified.

  • 1: The SPF record failed to be verified.

IcpStatus

String

The ICP filing state of the domain name.

Valid values:

  • 1: The domain name has an ICP filing.

  • 0: The domain name does not have an ICP filing.

CreateTime

String

The time when the domain name was created.

None.

Examples

  • YAML format

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      ExtensionDataSource:
        Properties: {}
        Type: DATASOURCE::DirectMail::Domains
    Outputs:
      DomainIds:
        Description: The list of domain IDs.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - DomainIds
      Domains:
        Description: The list of domains.
        Value:
          Fn::GetAtt:
          - ExtensionDataSource
          - Domains
  • JSON format

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "ExtensionDataSource": {
          "Type": "DATASOURCE::DirectMail::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"
            ]
          }
        }
      }
    }