QueryDomainByInstanceId

Updated at:

Queries the basic information of a domain name based on the domain name instance ID.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

domain:QueryCommonInfo

get

*Domain

acs:domain:*:{#accountId}:domain/{#DomainName}

None None

Request parameters

Parameter

Type

Required

Description

Example

UserClientIp

string

No

The IP address of the user. You can set this parameter to 127.0.0.1.

127.0.0.1

Lang

string

No

The language of the error message returned by the API operation. Valid values:

  • zh: Chinese.

  • en: English.

Default value: en.

en

InstanceId

string

Yes

The instance ID of the domain name. You can obtain the ID by calling the QueryDomainList operation.

S20131205001****

Response elements

Element

Type

Description

Example

object

Email

string

The email address of the domain name registrant.

username@example.com

RegistrationDate

string

The registration time of the domain name. The time format varies based on the site and the Lang parameter. For the China site, the format is yyyy-MM-dd HH:mm:ss in the default time zone of the service runtime. For the international site, if Lang is set to zh, the format is yyyy-MM-dd HH:mm:ss (UTC). If Lang is set to en or other values, the format is MMM dd,yyyy HH:mm:ss (UTC).

2017-12-07 17:02:13

RegistrationDateLong

integer

The timestamp of the registration time.

1625111915000

RealNameStatus

string

The real-name verification status of the domain name. Valid values:

  • NONAUDIT: not reviewed

  • SUCCEED: approved

  • FAILED: review failed

  • AUDITING: under review

Note

The real-name verification status is a combination of the domain name naming review status and the real-name verification status. Real-name verification is considered successful only when both the domain name naming review and the real-name verification are approved.

NONAUDIT

Premium

boolean

Indicates whether the domain name is a premium word. Valid values:

  • true: The domain name is a premium word.

  • false: The domain name is not a premium word.

false

DomainNameVerificationStatus

string

The naming review status of the domain name. Valid values:

  • NONAUDIT: not reviewed

  • SUCCEED: approved

  • FAILED: review failed

  • AUDITING: under review

NONAUDIT

ExpirationDateLong

integer

The timestamp of the expiration time.

1625111915000

DnsList

object

Dns

array

The DNS list.

string

The list of DNS servers configured for the domain name.

dns1.hichina.com,dns2.hichina.com

TransferOutStatus

string

The transfer-out status of the domain name. Valid values:

  • NORMAL: normal

  • PENDING: being transferred out of Alibaba Cloud

NORMAL

ZhRegistrantOrganization

string

The Chinese name of the domain name registrant.

Note

This parameter is applicable only to the China site.

李四

EmailVerificationClientHold

boolean

Indicates whether the domain name resolution is suspended. Valid values:

  • false: The domain name resolution is not suspended.

  • true: The domain name resolution is suspended.

false

EmailVerificationStatus

integer

Indicates whether the email address of the domain name registrant is verified. Valid values:

  • 0: The email address is not verified.

  • 1: The email address is verified.

1

RegistrantOrganization

string

The domain name registrant organization.

Test litm

TransferProhibitionLock

string

The status of the lock to transfer a domain name to another Alibaba Cloud account. Valid values:

  • NONE_SETTING: Settings not configured

  • OPEN: enabled

  • CLOSE: shutdown

CLOSE

DomainNameProxyService

boolean

Indicates whether the domain name privacy protection service is enabled.

false

RegistrantType

string

The type of the domain name registrant. Valid values:

  • 1: individual

  • 2: organization

1

RegistrantUpdatingStatus

string

The modification status of the domain name registrant. Valid values:

  • PENDING: The information of the domain name registrant is being modified.

  • NORMAL: normal

NORMAL

RequestId

string

The request ID.

23C9B3C4-9E2C-4405-A88D-BD33E459D140

DomainName

string

The queried domain name.

example.com

InstanceId

string

The instance ID of the domain name.

S20179H1BBI9test

ZhRegistrantName

string

The Chinese name of the contact.

Note

This parameter is applicable only to the China site.

李四

ExpirationDate

string

The expiration time of the queried domain name. The time format varies based on the site and the Lang parameter. For the China site, the format is yyyy-MM-dd HH:mm:ss in the default time zone of the service runtime. For the international site, if Lang is set to zh, the format is yyyy-MM-dd HH:mm:ss (UTC). If Lang is set to en or other values, the format is MMM dd,yyyy HH:mm:ss (UTC).

2019-12-07 17:02:13

RegistrantName

string

The name of the contact.

Test litm

UserId

string

The ID of the Alibaba Cloud user (Alibaba Cloud account UID).

121000000****

UpdateProhibitionLock

string

The update prohibition lock status of the domain name. Valid values:

  • NONE_SETTING: not set

  • OPEN: enabled

  • CLOSE: disabled

CLOSE

DomainGroupId

integer

The ID of the domain name group. You can obtain the ID by calling the QueryDomainGroupList operation.

1234

Remark

string

The remark of the domain name.

Test remark

DomainGroupName

string

The name of the domain name group.

Test group

ExpirationDateStatus

string

The expiration status of the domain name. Valid values:

  • 1: The domain name is not expired.

  • 2: The domain name is expired.

1

ExpirationCurrDateDiff

integer

The difference in days between the expiration date of the domain name and the current time.

356

DomainType

string

The type of the domain name. Valid values:

  • New gTLD

  • gTLD

  • ccTLD

gTLD

DomainStatus

string

The status of the domain name. Valid values:

  • 1: renewal required

  • 2: redemption required

  • 3: normal

1

ResourceGroupId

string

The resource group ID.

rg-acfmw6bpc6n7zai

Tag

object

Tag

array<object>

The tag list.

object

The resource tags.

Key

string

The tag key.

Renewal

Value

string

The tag value.

Tag 1

DomainLifecycleStatus

string

The lifecycle status of the domain name. Possible values include REGISTRATION_GRACE_PERIOD (registration grace period), ACTIVE (normal), RENEWAL_GRACE_PERIOD (renewal grace period), REDEMPTION_PERIOD (redemption period), PENDING_DELETE (pending deletion), and EXPIRED (expired). The enumerated values may be extended. Do not rely solely on the current values to implement business logic.

ACTIVE

PrivacyServiceStatus

string

The domain name privacy service status.

Valid values:

  • UN_SUPPORT :

    Not supported.

  • CLOSE :

    Disabled.

  • OPEN :

    Enabled.

UN_SUPPORT

CnnicPrivacyServiceStatus

string

The CNNIC registry privacy protection status.

Valid values:

  • UN_SUPPORT :

    Not supported.

  • VALID :

    Effective.

  • PRODUCING :

    In production.

  • INVALID :

    Invalid.

UN_SUPPORT

AutoRenewEnabled

string

Indicates whether auto-renewal is enabled.

true

Registrar

string

The registrar.

aliyun

Examples

Success response

JSON format

{
  "Email": "username@example.com",
  "RegistrationDate": "2017-12-07 17:02:13",
  "RegistrationDateLong": 1625111915000,
  "RealNameStatus": "NONAUDIT",
  "Premium": false,
  "DomainNameVerificationStatus": "NONAUDIT",
  "ExpirationDateLong": 1625111915000,
  "DnsList": {
    "Dns": [
      "dns1.hichina.com,dns2.hichina.com"
    ]
  },
  "TransferOutStatus": "NORMAL",
  "ZhRegistrantOrganization": "Li Si",
  "EmailVerificationClientHold": false,
  "EmailVerificationStatus": 1,
  "RegistrantOrganization": "Test litm",
  "TransferProhibitionLock": "CLOSE",
  "DomainNameProxyService": false,
  "RegistrantType": "1",
  "RegistrantUpdatingStatus": "NORMAL",
  "RequestId": "23C9B3C4-9E2C-4405-A88D-BD33E459D140",
  "DomainName": "example.com",
  "InstanceId": "S20179H1BBI9test",
  "ZhRegistrantName": "Li Si",
  "ExpirationDate": "2019-12-07 17:02:13",
  "RegistrantName": "Test litm",
  "UserId": "121000000****",
  "UpdateProhibitionLock": "CLOSE",
  "DomainGroupId": 1234,
  "Remark": "Test remark",
  "DomainGroupName": "Test group",
  "ExpirationDateStatus": "1",
  "ExpirationCurrDateDiff": 356,
  "DomainType": "gTLD",
  "DomainStatus": "1",
  "ResourceGroupId": "rg-acfmw6bpc6n7zai",
  "Tag": {
    "Tag": [
      {
        "Key": "Renewal",
        "Value": "Tag 1"
      }
    ]
  },
  "DomainLifecycleStatus": "ACTIVE",
  "PrivacyServiceStatus": "UN_SUPPORT",
  "CnnicPrivacyServiceStatus": "UN_SUPPORT",
  "AutoRenewEnabled": "true",
  "Registrar": "aliyun"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.