v20210323

package
v3.0.584+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CAM signature/authentication error.
	AUTHFAILURE = "AuthFailure"

	// The operation failed.
	FAILEDOPERATION = "FailedOperation"

	// The domain is already in your list. There is no need to add it again.
	FAILEDOPERATION_DOMAINEXISTS = "FailedOperation.DomainExists"

	// This domain is a key protected resource in DNSPod. To prevent the service from being affected by maloperations, you cannot delete it. If you are sure you need to delete it, please contact your sales rep for technical support.
	FAILEDOPERATION_DOMAINISKEYDOMAIN = "FailedOperation.DomainIsKeyDomain"

	// You cannot perform this operation on a locked domain.
	FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"

	// You cannot perform this operation on a banned domain.
	FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"

	// You cannot perform this operation on a VIP domain.
	FAILEDOPERATION_DOMAINISVIP = "FailedOperation.DomainIsVip"

	// This domain has been added by another account and can be reclaimed in the domain list.
	FAILEDOPERATION_DOMAINOWNEDBYOTHERUSER = "FailedOperation.DomainOwnedByOtherUser"

	// The request was rejected due to an unusual login location of your account.
	FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"

	// Login failed. Check whether the account and password are correct.
	FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"

	// You are not the domain owner.
	FAILEDOPERATION_NOTDOMAINOWNER = "FailedOperation.NotDomainOwner"

	// Your account identity has not been verified. Complete identity verification first before performing this operation.
	FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser"

	// The operation has no response. Try again later.
	FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"

	// Internal error.
	INTERNALERROR = "InternalError"

	// Invalid parameter.
	INVALIDPARAMETER = "InvalidParameter"

	// Your account is banned by the system. Please contact us if you have any questions.
	INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned"

	// Custom error message.
	INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage"

	// DNSSEC has been enabled for this domain. You cannot add an @CNAME, URL, or framed URL record.
	INVALIDPARAMETER_DNSSECADDCNAMEERROR = "InvalidParameter.DnssecAddCnameError"

	// The domain number is incorrect.
	INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"

	// You cannot perform operations on a domain currently active or invalid.
	INVALIDPARAMETER_DOMAININEFFECTORINVALIDATED = "InvalidParameter.DomainInEffectOrInvalidated"

	// The domain is incorrect. Enter a top-level domain such as dnspod.cn.
	INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"

	// This domain is an alias of another domain.
	INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"

	// You cannot change the DNS record of a domain currently active or invalid.
	INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords"

	// The domain does not have an ICP filing, so you cannot add a URL record for it.
	INVALIDPARAMETER_DOMAINNOTBEIAN = "InvalidParameter.DomainNotBeian"

	// The domain has not been registered and cannot be added.
	INVALIDPARAMETER_DOMAINNOTREGED = "InvalidParameter.DomainNotReged"

	// The record already exists and does not need to be added again.
	INVALIDPARAMETER_DOMAINRECORDEXIST = "InvalidParameter.DomainRecordExist"

	// Sorry, the email address of your account has not been verified.
	INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified"

	// The weight is invalid. Enter an integer between 0 and 100.
	INVALIDPARAMETER_INVALIDWEIGHT = "InvalidParameter.InvalidWeight"

	// The token ID is incorrect.
	INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"

	// The token passed in does not exist.
	INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"

	// Failed to verify the token.
	INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"

	// Sorry, the mobile number of your account has not been verified.
	INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified"

	// The MX priority is incorrect.
	INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid"

	// Operation failed. Please try again later.
	INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed"

	// Parameter format error.
	INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid"

	// The record number is incorrect.
	INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid"

	// The record split zone is incorrect.
	INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid"

	// The record type is incorrect.
	INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid"

	// The record value is incorrect.
	INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid"

	// The DNS record value is too long.
	INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid"

	// The remarks are too long (max 200 characters).
	INVALIDPARAMETER_REMARKTOOLONG = "InvalidParameter.RemarkTooLong"

	// Your IP is invalid, so the request was rejected.
	INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"

	// The search results contain more than 500 entries. Add one or more keywords.
	INVALIDPARAMETER_RESULTMORETHAN500 = "InvalidParameter.ResultMoreThan500"

	// The subdomain is incorrect.
	INVALIDPARAMETER_SUBDOMAININVALID = "InvalidParameter.SubdomainInvalid"

	// The domain is invalid.
	INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid"

	// Your account identity has not been verified. Complete identity verification first before performing this operation.
	INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"

	// Sorry, the URL failed to be added/enabled because its content did not comply with the DNSPod Terms of Service. Please contact technical support for assistance.
	INVALIDPARAMETER_URLVALUEILLEGAL = "InvalidParameter.UrlValueIllegal"

	// The user does not exist.
	INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"

	// The current domain is incorrect. Return to the previous step and try again.
	INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"

	// Error in number of entries per page.
	INVALIDPARAMETERVALUE_LIMITINVALID = "InvalidParameterValue.LimitInvalid"

	// The user number is incorrect.
	INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"

	// The number of AAAA records exceeds the limit.
	LIMITEXCEEDED_AAAACOUNTLIMIT = "LimitExceeded.AAAACountLimit"

	// The @NS record can be set to the default split zone only.
	LIMITEXCEEDED_ATNSRECORDLIMIT = "LimitExceeded.AtNsRecordLimit"

	// Your account has been banned by the system due to excessive failed login attempts.
	LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"

	// The DNS plan used by this domain does not support framed URL forwarding, or the number of framed URL forward records exceeds the limit. To use this feature, please purchase more records.
	LIMITEXCEEDED_HIDDENURLEXCEEDED = "LimitExceeded.HiddenUrlExceeded"

	// The number of NS records exceeds the limit.
	LIMITEXCEEDED_NSCOUNTLIMIT = "LimitExceeded.NsCountLimit"

	// The TTL value of the record exceeds the limit.
	LIMITEXCEEDED_RECORDTTLLIMIT = "LimitExceeded.RecordTtlLimit"

	// The number of SRV records exceeds the limit.
	LIMITEXCEEDED_SRVCOUNTLIMIT = "LimitExceeded.SrvCountLimit"

	// The number of subdomain levels exceeds the limit.
	LIMITEXCEEDED_SUBDOMAINLEVELLIMIT = "LimitExceeded.SubdomainLevelLimit"

	// The number of round-robin DNS records of the subdomain exceeds the limit.
	LIMITEXCEEDED_SUBDOMAINROLLLIMIT = "LimitExceeded.SubdomainRollLimit"

	// The number of wildcard levels exceeds the limit.
	LIMITEXCEEDED_SUBDOMAINWCARDLIMIT = "LimitExceeded.SubdomainWcardLimit"

	// The number of URL forward records of this domain exceeds the limit. To continue using this feature, please purchase more records.
	LIMITEXCEEDED_URLCOUNTLIMIT = "LimitExceeded.UrlCountLimit"

	// Only the domain owner can perform this operation.
	OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"

	// Sorry, you cannot add a blocked IP.
	OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed"

	// You have no permission to perform operations on the current domain. Return to the domain list.
	OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"

	// You are not an admin.
	OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin"

	// Your are not a proxy user.
	OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"

	// The user is not under your account.
	OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"

	// The number of requests exceeds the frequency limit.
	REQUESTLIMITEXCEEDED = "RequestLimitExceeded"

	// The number of API requests exceeds the limit.
	REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

	// Empty record list.
	RESOURCENOTFOUND_NODATAOFRECORD = "ResourceNotFound.NoDataOfRecord"

	// Unauthorized operation.
	UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
)
View Source
const APIVersion = "2021-03-23"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	common.Client
}

func NewClient

func NewClient(credential common.CredentialIface, region string, clientProfile *profile.ClientProfile) (client *Client, err error)

func NewClientWithSecretId

func NewClientWithSecretId(secretId, secretKey, region string) (client *Client, err error)

Deprecated

func (*Client) CreateDomain

func (c *Client) CreateDomain(request *CreateDomainRequest) (response *CreateDomainResponse, err error)

CreateDomain This API is used to add a domain.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DOMAINEXISTS = "FailedOperation.DomainExists"
FAILEDOPERATION_DOMAINOWNEDBYOTHERUSER = "FailedOperation.DomainOwnedByOtherUser"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_DOMAINNOTREGED = "InvalidParameter.DomainNotReged"
INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified"
INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"

func (*Client) CreateDomainWithContext

func (c *Client) CreateDomainWithContext(ctx context.Context, request *CreateDomainRequest) (response *CreateDomainResponse, err error)

CreateDomain This API is used to add a domain.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DOMAINEXISTS = "FailedOperation.DomainExists"
FAILEDOPERATION_DOMAINOWNEDBYOTHERUSER = "FailedOperation.DomainOwnedByOtherUser"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_DOMAINNOTREGED = "InvalidParameter.DomainNotReged"
INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified"
INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"

func (*Client) CreateRecord

func (c *Client) CreateRecord(request *CreateRecordRequest) (response *CreateRecordResponse, err error)

CreateRecord This API is used to add a record.

error code that may be returned:

FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned"
INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage"
INVALIDPARAMETER_DNSSECADDCNAMEERROR = "InvalidParameter.DnssecAddCnameError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords"
INVALIDPARAMETER_DOMAINNOTBEIAN = "InvalidParameter.DomainNotBeian"
INVALIDPARAMETER_DOMAINRECORDEXIST = "InvalidParameter.DomainRecordExist"
INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified"
INVALIDPARAMETER_INVALIDWEIGHT = "InvalidParameter.InvalidWeight"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified"
INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid"
INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid"
INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid"
INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid"
INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_SUBDOMAININVALID = "InvalidParameter.SubdomainInvalid"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_URLVALUEILLEGAL = "InvalidParameter.UrlValueIllegal"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_AAAACOUNTLIMIT = "LimitExceeded.AAAACountLimit"
LIMITEXCEEDED_ATNSRECORDLIMIT = "LimitExceeded.AtNsRecordLimit"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
LIMITEXCEEDED_HIDDENURLEXCEEDED = "LimitExceeded.HiddenUrlExceeded"
LIMITEXCEEDED_NSCOUNTLIMIT = "LimitExceeded.NsCountLimit"
LIMITEXCEEDED_RECORDTTLLIMIT = "LimitExceeded.RecordTtlLimit"
LIMITEXCEEDED_SRVCOUNTLIMIT = "LimitExceeded.SrvCountLimit"
LIMITEXCEEDED_SUBDOMAINLEVELLIMIT = "LimitExceeded.SubdomainLevelLimit"
LIMITEXCEEDED_SUBDOMAINROLLLIMIT = "LimitExceeded.SubdomainRollLimit"
LIMITEXCEEDED_SUBDOMAINWCARDLIMIT = "LimitExceeded.SubdomainWcardLimit"
LIMITEXCEEDED_URLCOUNTLIMIT = "LimitExceeded.UrlCountLimit"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

func (*Client) CreateRecordWithContext

func (c *Client) CreateRecordWithContext(ctx context.Context, request *CreateRecordRequest) (response *CreateRecordResponse, err error)

CreateRecord This API is used to add a record.

error code that may be returned:

FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned"
INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage"
INVALIDPARAMETER_DNSSECADDCNAMEERROR = "InvalidParameter.DnssecAddCnameError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords"
INVALIDPARAMETER_DOMAINNOTBEIAN = "InvalidParameter.DomainNotBeian"
INVALIDPARAMETER_DOMAINRECORDEXIST = "InvalidParameter.DomainRecordExist"
INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified"
INVALIDPARAMETER_INVALIDWEIGHT = "InvalidParameter.InvalidWeight"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified"
INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid"
INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid"
INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid"
INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid"
INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_SUBDOMAININVALID = "InvalidParameter.SubdomainInvalid"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_URLVALUEILLEGAL = "InvalidParameter.UrlValueIllegal"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_AAAACOUNTLIMIT = "LimitExceeded.AAAACountLimit"
LIMITEXCEEDED_ATNSRECORDLIMIT = "LimitExceeded.AtNsRecordLimit"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
LIMITEXCEEDED_HIDDENURLEXCEEDED = "LimitExceeded.HiddenUrlExceeded"
LIMITEXCEEDED_NSCOUNTLIMIT = "LimitExceeded.NsCountLimit"
LIMITEXCEEDED_RECORDTTLLIMIT = "LimitExceeded.RecordTtlLimit"
LIMITEXCEEDED_SRVCOUNTLIMIT = "LimitExceeded.SrvCountLimit"
LIMITEXCEEDED_SUBDOMAINLEVELLIMIT = "LimitExceeded.SubdomainLevelLimit"
LIMITEXCEEDED_SUBDOMAINROLLLIMIT = "LimitExceeded.SubdomainRollLimit"
LIMITEXCEEDED_SUBDOMAINWCARDLIMIT = "LimitExceeded.SubdomainWcardLimit"
LIMITEXCEEDED_URLCOUNTLIMIT = "LimitExceeded.UrlCountLimit"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

func (*Client) DeleteDomain

func (c *Client) DeleteDomain(request *DeleteDomainRequest) (response *DeleteDomainResponse, err error)

DeleteDomain This API is used to delete a domain.

error code that may be returned:

FAILEDOPERATION_DOMAINISKEYDOMAIN = "FailedOperation.DomainIsKeyDomain"
FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_DOMAINISVIP = "FailedOperation.DomainIsVip"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININEFFECTORINVALIDATED = "InvalidParameter.DomainInEffectOrInvalidated"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"

func (*Client) DeleteDomainWithContext

func (c *Client) DeleteDomainWithContext(ctx context.Context, request *DeleteDomainRequest) (response *DeleteDomainResponse, err error)

DeleteDomain This API is used to delete a domain.

error code that may be returned:

FAILEDOPERATION_DOMAINISKEYDOMAIN = "FailedOperation.DomainIsKeyDomain"
FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_DOMAINISVIP = "FailedOperation.DomainIsVip"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININEFFECTORINVALIDATED = "InvalidParameter.DomainInEffectOrInvalidated"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"

func (*Client) DeleteRecord

func (c *Client) DeleteRecord(request *DeleteRecordRequest) (response *DeleteRecordResponse, err error)

DeleteRecord This API is used to delete a record.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

func (*Client) DeleteRecordWithContext

func (c *Client) DeleteRecordWithContext(ctx context.Context, request *DeleteRecordRequest) (response *DeleteRecordResponse, err error)

DeleteRecord This API is used to delete a record.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

func (*Client) DescribeDomain

func (c *Client) DescribeDomain(request *DescribeDomainRequest) (response *DescribeDomainResponse, err error)

DescribeDomain This API is used to get the information of a domain.

error code that may be returned:

FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"

func (*Client) DescribeDomainWithContext

func (c *Client) DescribeDomainWithContext(ctx context.Context, request *DescribeDomainRequest) (response *DescribeDomainResponse, err error)

DescribeDomain This API is used to get the information of a domain.

error code that may be returned:

FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"

func (*Client) DescribeRecord

func (c *Client) DescribeRecord(request *DescribeRecordRequest) (response *DescribeRecordResponse, err error)

DescribeRecord This API is used to get the information of a record.

error code that may be returned:

FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

func (*Client) DescribeRecordList

func (c *Client) DescribeRecordList(request *DescribeRecordListRequest) (response *DescribeRecordListResponse, err error)

DescribeRecordList This API is used to get DNS records of a domain.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_NOTDOMAINOWNER = "FailedOperation.NotDomainOwner"
FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed"
INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid"
INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid"
INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid"
INVALIDPARAMETER_RESULTMORETHAN500 = "InvalidParameter.ResultMoreThan500"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_LIMITINVALID = "InvalidParameterValue.LimitInvalid"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"
RESOURCENOTFOUND_NODATAOFRECORD = "ResourceNotFound.NoDataOfRecord"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeRecordListWithContext

func (c *Client) DescribeRecordListWithContext(ctx context.Context, request *DescribeRecordListRequest) (response *DescribeRecordListResponse, err error)

DescribeRecordList This API is used to get DNS records of a domain.

error code that may be returned:

AUTHFAILURE = "AuthFailure"
FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_NOTDOMAINOWNER = "FailedOperation.NotDomainOwner"
FAILEDOPERATION_NOTREALNAMEDUSER = "FailedOperation.NotRealNamedUser"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INTERNALERROR = "InternalError"
INVALIDPARAMETER = "InvalidParameter"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_OPERATEFAILED = "InvalidParameter.OperateFailed"
INVALIDPARAMETER_PARAMINVALID = "InvalidParameter.ParamInvalid"
INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid"
INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid"
INVALIDPARAMETER_RESULTMORETHAN500 = "InvalidParameter.ResultMoreThan500"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_LIMITINVALID = "InvalidParameterValue.LimitInvalid"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
REQUESTLIMITEXCEEDED = "RequestLimitExceeded"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"
RESOURCENOTFOUND_NODATAOFRECORD = "ResourceNotFound.NoDataOfRecord"
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"

func (*Client) DescribeRecordWithContext

func (c *Client) DescribeRecordWithContext(ctx context.Context, request *DescribeRecordRequest) (response *DescribeRecordResponse, err error)

DescribeRecord This API is used to get the information of a record.

error code that may be returned:

FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

func (*Client) ModifyDomainRemark

func (c *Client) ModifyDomainRemark(request *ModifyDomainRemarkRequest) (response *ModifyDomainRemarkResponse, err error)

ModifyDomainRemark This API is used to set the remarks of a domain.

error code that may be returned:

FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_REMARKTOOLONG = "InvalidParameter.RemarkTooLong"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

func (*Client) ModifyDomainRemarkWithContext

func (c *Client) ModifyDomainRemarkWithContext(ctx context.Context, request *ModifyDomainRemarkRequest) (response *ModifyDomainRemarkResponse, err error)

ModifyDomainRemark This API is used to set the remarks of a domain.

error code that may be returned:

FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_REMARKTOOLONG = "InvalidParameter.RemarkTooLong"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

func (*Client) ModifyDomainStatus

func (c *Client) ModifyDomainStatus(request *ModifyDomainStatusRequest) (response *ModifyDomainStatusResponse, err error)

ModifyDomainStatus This API is used to modify the status of a domain.

error code that may be returned:

FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"

func (*Client) ModifyDomainStatusWithContext

func (c *Client) ModifyDomainStatusWithContext(ctx context.Context, request *ModifyDomainStatusRequest) (response *ModifyDomainStatusResponse, err error)

ModifyDomainStatus This API is used to modify the status of a domain.

error code that may be returned:

FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_TOOLSDOMAININVALID = "InvalidParameter.ToolsDomainInvalid"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"

func (*Client) ModifyRecord

func (c *Client) ModifyRecord(request *ModifyRecordRequest) (response *ModifyRecordResponse, err error)

ModifyRecord This API is used to modify a record.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned"
INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords"
INVALIDPARAMETER_DOMAINNOTBEIAN = "InvalidParameter.DomainNotBeian"
INVALIDPARAMETER_DOMAINRECORDEXIST = "InvalidParameter.DomainRecordExist"
INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified"
INVALIDPARAMETER_INVALIDWEIGHT = "InvalidParameter.InvalidWeight"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified"
INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid"
INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid"
INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid"
INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid"
INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid"
INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_SUBDOMAININVALID = "InvalidParameter.SubdomainInvalid"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_URLVALUEILLEGAL = "InvalidParameter.UrlValueIllegal"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_AAAACOUNTLIMIT = "LimitExceeded.AAAACountLimit"
LIMITEXCEEDED_ATNSRECORDLIMIT = "LimitExceeded.AtNsRecordLimit"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
LIMITEXCEEDED_HIDDENURLEXCEEDED = "LimitExceeded.HiddenUrlExceeded"
LIMITEXCEEDED_NSCOUNTLIMIT = "LimitExceeded.NsCountLimit"
LIMITEXCEEDED_RECORDTTLLIMIT = "LimitExceeded.RecordTtlLimit"
LIMITEXCEEDED_SRVCOUNTLIMIT = "LimitExceeded.SrvCountLimit"
LIMITEXCEEDED_SUBDOMAINLEVELLIMIT = "LimitExceeded.SubdomainLevelLimit"
LIMITEXCEEDED_SUBDOMAINROLLLIMIT = "LimitExceeded.SubdomainRollLimit"
LIMITEXCEEDED_SUBDOMAINWCARDLIMIT = "LimitExceeded.SubdomainWcardLimit"
LIMITEXCEEDED_URLCOUNTLIMIT = "LimitExceeded.UrlCountLimit"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

func (*Client) ModifyRecordWithContext

func (c *Client) ModifyRecordWithContext(ctx context.Context, request *ModifyRecordRequest) (response *ModifyRecordResponse, err error)

ModifyRecord This API is used to modify a record.

error code that may be returned:

FAILEDOPERATION = "FailedOperation"
FAILEDOPERATION_DOMAINISLOCKED = "FailedOperation.DomainIsLocked"
FAILEDOPERATION_DOMAINISSPAM = "FailedOperation.DomainIsSpam"
FAILEDOPERATION_LOGINAREANOTALLOWED = "FailedOperation.LoginAreaNotAllowed"
FAILEDOPERATION_LOGINFAILED = "FailedOperation.LoginFailed"
FAILEDOPERATION_UNKNOWERROR = "FailedOperation.UnknowError"
INVALIDPARAMETER_ACCOUNTISBANNED = "InvalidParameter.AccountIsBanned"
INVALIDPARAMETER_CUSTOMMESSAGE = "InvalidParameter.CustomMessage"
INVALIDPARAMETER_DOMAINIDINVALID = "InvalidParameter.DomainIdInvalid"
INVALIDPARAMETER_DOMAININVALID = "InvalidParameter.DomainInvalid"
INVALIDPARAMETER_DOMAINISALIASER = "InvalidParameter.DomainIsAliaser"
INVALIDPARAMETER_DOMAINNOTALLOWEDMODIFYRECORDS = "InvalidParameter.DomainNotAllowedModifyRecords"
INVALIDPARAMETER_DOMAINNOTBEIAN = "InvalidParameter.DomainNotBeian"
INVALIDPARAMETER_DOMAINRECORDEXIST = "InvalidParameter.DomainRecordExist"
INVALIDPARAMETER_EMAILNOTVERIFIED = "InvalidParameter.EmailNotVerified"
INVALIDPARAMETER_INVALIDWEIGHT = "InvalidParameter.InvalidWeight"
INVALIDPARAMETER_LOGINTOKENIDERROR = "InvalidParameter.LoginTokenIdError"
INVALIDPARAMETER_LOGINTOKENNOTEXISTS = "InvalidParameter.LoginTokenNotExists"
INVALIDPARAMETER_LOGINTOKENVALIDATEFAILED = "InvalidParameter.LoginTokenValidateFailed"
INVALIDPARAMETER_MOBILENOTVERIFIED = "InvalidParameter.MobileNotVerified"
INVALIDPARAMETER_MXINVALID = "InvalidParameter.MxInvalid"
INVALIDPARAMETER_RECORDIDINVALID = "InvalidParameter.RecordIdInvalid"
INVALIDPARAMETER_RECORDLINEINVALID = "InvalidParameter.RecordLineInvalid"
INVALIDPARAMETER_RECORDTYPEINVALID = "InvalidParameter.RecordTypeInvalid"
INVALIDPARAMETER_RECORDVALUEINVALID = "InvalidParameter.RecordValueInvalid"
INVALIDPARAMETER_RECORDVALUELENGTHINVALID = "InvalidParameter.RecordValueLengthInvalid"
INVALIDPARAMETER_REQUESTIPLIMITED = "InvalidParameter.RequestIpLimited"
INVALIDPARAMETER_SUBDOMAININVALID = "InvalidParameter.SubdomainInvalid"
INVALIDPARAMETER_UNREALNAMEUSER = "InvalidParameter.UnrealNameUser"
INVALIDPARAMETER_URLVALUEILLEGAL = "InvalidParameter.UrlValueIllegal"
INVALIDPARAMETER_USERNOTEXISTS = "InvalidParameter.UserNotExists"
INVALIDPARAMETERVALUE_DOMAINNOTEXISTS = "InvalidParameterValue.DomainNotExists"
INVALIDPARAMETERVALUE_USERIDINVALID = "InvalidParameterValue.UserIdInvalid"
LIMITEXCEEDED_AAAACOUNTLIMIT = "LimitExceeded.AAAACountLimit"
LIMITEXCEEDED_ATNSRECORDLIMIT = "LimitExceeded.AtNsRecordLimit"
LIMITEXCEEDED_FAILEDLOGINLIMITEXCEEDED = "LimitExceeded.FailedLoginLimitExceeded"
LIMITEXCEEDED_HIDDENURLEXCEEDED = "LimitExceeded.HiddenUrlExceeded"
LIMITEXCEEDED_NSCOUNTLIMIT = "LimitExceeded.NsCountLimit"
LIMITEXCEEDED_RECORDTTLLIMIT = "LimitExceeded.RecordTtlLimit"
LIMITEXCEEDED_SRVCOUNTLIMIT = "LimitExceeded.SrvCountLimit"
LIMITEXCEEDED_SUBDOMAINLEVELLIMIT = "LimitExceeded.SubdomainLevelLimit"
LIMITEXCEEDED_SUBDOMAINROLLLIMIT = "LimitExceeded.SubdomainRollLimit"
LIMITEXCEEDED_SUBDOMAINWCARDLIMIT = "LimitExceeded.SubdomainWcardLimit"
LIMITEXCEEDED_URLCOUNTLIMIT = "LimitExceeded.UrlCountLimit"
OPERATIONDENIED_DOMAINOWNERALLOWEDONLY = "OperationDenied.DomainOwnerAllowedOnly"
OPERATIONDENIED_IPINBLACKLISTNOTALLOWED = "OperationDenied.IPInBlacklistNotAllowed"
OPERATIONDENIED_NOPERMISSIONTOOPERATEDOMAIN = "OperationDenied.NoPermissionToOperateDomain"
OPERATIONDENIED_NOTADMIN = "OperationDenied.NotAdmin"
OPERATIONDENIED_NOTAGENT = "OperationDenied.NotAgent"
OPERATIONDENIED_NOTMANAGEDUSER = "OperationDenied.NotManagedUser"
REQUESTLIMITEXCEEDED_REQUESTLIMITEXCEEDED = "RequestLimitExceeded.RequestLimitExceeded"

type CreateDomainRequest

type CreateDomainRequest struct {
	*tchttp.BaseRequest

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain group ID
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

	// Whether the domain is starred. Valid values: yes, no.
	IsMark *string `json:"IsMark,omitempty" name:"IsMark"`
}

func NewCreateDomainRequest

func NewCreateDomainRequest() (request *CreateDomainRequest)

func (*CreateDomainRequest) FromJsonString

func (r *CreateDomainRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDomainRequest) ToJsonString

func (r *CreateDomainRequest) ToJsonString() string

type CreateDomainRequestParams

type CreateDomainRequestParams struct {
	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain group ID
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

	// Whether the domain is starred. Valid values: yes, no.
	IsMark *string `json:"IsMark,omitempty" name:"IsMark"`
}

Predefined struct for user

type CreateDomainResponse

type CreateDomainResponse struct {
	*tchttp.BaseResponse
	Response *CreateDomainResponseParams `json:"Response"`
}

func NewCreateDomainResponse

func NewCreateDomainResponse() (response *CreateDomainResponse)

func (*CreateDomainResponse) FromJsonString

func (r *CreateDomainResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateDomainResponse) ToJsonString

func (r *CreateDomainResponse) ToJsonString() string

type CreateDomainResponseParams

type CreateDomainResponseParams struct {
	// Domain information
	DomainInfo *DomainCreateInfo `json:"DomainInfo,omitempty" name:"DomainInfo"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type CreateRecordRequest

type CreateRecordRequest struct {
	*tchttp.BaseRequest

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Record type, which is obtained through the record type API. The value contains uppercase letters, such as `A`.
	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`

	// Record split zone, which is obtained through the record split zone API.
	RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"`

	// Record value, such as `IP : 200.200.200.200`, `CNAME : cname.dnspod.com`, and `MX : mail.dnspod.com`.
	Value *string `json:"Value,omitempty" name:"Value"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`

	// Host record such as `www`. If it is not passed in, it will be `@` by default.
	SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"`

	// Split zone ID, which is obtained through the record split zone API. The value is a string such as `10=1`. The `RecordLineId` parameter has a higher priority than `RecordLine`. If both of them are passed in, `RecordLineId` will be used first.
	RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"`

	// MX priority, which is required for an MX record and will take effect if the record type is MX. Value range: 1–20.
	MX *uint64 `json:"MX,omitempty" name:"MX"`

	// TTL. Value range: 1–604800. The minimum value varies by domain level.
	TTL *uint64 `json:"TTL,omitempty" name:"TTL"`

	// Weight information, which is an integer between 0 and 100. It is supported only for enterprise VIP domains. `0` indicates not to pass in this parameter, i.e., not to set the weight.
	Weight *uint64 `json:"Weight,omitempty" name:"Weight"`

	// Initial status of the record. Valid values: ENABLE, DISABLE. Default value: ENABLE. If `DISABLE` is passed in, the DNS record won't take effect, and the limit on round-robin DNS won't be verified.
	Status *string `json:"Status,omitempty" name:"Status"`
}

func NewCreateRecordRequest

func NewCreateRecordRequest() (request *CreateRecordRequest)

func (*CreateRecordRequest) FromJsonString

func (r *CreateRecordRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateRecordRequest) ToJsonString

func (r *CreateRecordRequest) ToJsonString() string

type CreateRecordRequestParams

type CreateRecordRequestParams struct {
	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Record type, which is obtained through the record type API. The value contains uppercase letters, such as `A`.
	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`

	// Record split zone, which is obtained through the record split zone API.
	RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"`

	// Record value, such as `IP : 200.200.200.200`, `CNAME : cname.dnspod.com`, and `MX : mail.dnspod.com`.
	Value *string `json:"Value,omitempty" name:"Value"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`

	// Host record such as `www`. If it is not passed in, it will be `@` by default.
	SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"`

	// Split zone ID, which is obtained through the record split zone API. The value is a string such as `10=1`. The `RecordLineId` parameter has a higher priority than `RecordLine`. If both of them are passed in, `RecordLineId` will be used first.
	RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"`

	// MX priority, which is required for an MX record and will take effect if the record type is MX. Value range: 1–20.
	MX *uint64 `json:"MX,omitempty" name:"MX"`

	// TTL. Value range: 1–604800. The minimum value varies by domain level.
	TTL *uint64 `json:"TTL,omitempty" name:"TTL"`

	// Weight information, which is an integer between 0 and 100. It is supported only for enterprise VIP domains. `0` indicates not to pass in this parameter, i.e., not to set the weight.
	Weight *uint64 `json:"Weight,omitempty" name:"Weight"`

	// Initial status of the record. Valid values: ENABLE, DISABLE. Default value: ENABLE. If `DISABLE` is passed in, the DNS record won't take effect, and the limit on round-robin DNS won't be verified.
	Status *string `json:"Status,omitempty" name:"Status"`
}

Predefined struct for user

type CreateRecordResponse

type CreateRecordResponse struct {
	*tchttp.BaseResponse
	Response *CreateRecordResponseParams `json:"Response"`
}

func NewCreateRecordResponse

func NewCreateRecordResponse() (response *CreateRecordResponse)

func (*CreateRecordResponse) FromJsonString

func (r *CreateRecordResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*CreateRecordResponse) ToJsonString

func (r *CreateRecordResponse) ToJsonString() string

type CreateRecordResponseParams

type CreateRecordResponseParams struct {
	// Record ID
	RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteDomainRequest

type DeleteDomainRequest struct {
	*tchttp.BaseRequest

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

func NewDeleteDomainRequest

func NewDeleteDomainRequest() (request *DeleteDomainRequest)

func (*DeleteDomainRequest) FromJsonString

func (r *DeleteDomainRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDomainRequest) ToJsonString

func (r *DeleteDomainRequest) ToJsonString() string

type DeleteDomainRequestParams

type DeleteDomainRequestParams struct {
	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

Predefined struct for user

type DeleteDomainResponse

type DeleteDomainResponse struct {
	*tchttp.BaseResponse
	Response *DeleteDomainResponseParams `json:"Response"`
}

func NewDeleteDomainResponse

func NewDeleteDomainResponse() (response *DeleteDomainResponse)

func (*DeleteDomainResponse) FromJsonString

func (r *DeleteDomainResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteDomainResponse) ToJsonString

func (r *DeleteDomainResponse) ToJsonString() string

type DeleteDomainResponseParams

type DeleteDomainResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type DeleteRecordRequest

type DeleteRecordRequest struct {
	*tchttp.BaseRequest

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Record ID.
	RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

func NewDeleteRecordRequest

func NewDeleteRecordRequest() (request *DeleteRecordRequest)

func (*DeleteRecordRequest) FromJsonString

func (r *DeleteRecordRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteRecordRequest) ToJsonString

func (r *DeleteRecordRequest) ToJsonString() string

type DeleteRecordRequestParams

type DeleteRecordRequestParams struct {
	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Record ID.
	RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

Predefined struct for user

type DeleteRecordResponse

type DeleteRecordResponse struct {
	*tchttp.BaseResponse
	Response *DeleteRecordResponseParams `json:"Response"`
}

func NewDeleteRecordResponse

func NewDeleteRecordResponse() (response *DeleteRecordResponse)

func (*DeleteRecordResponse) FromJsonString

func (r *DeleteRecordResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DeleteRecordResponse) ToJsonString

func (r *DeleteRecordResponse) ToJsonString() string

type DeleteRecordResponseParams

type DeleteRecordResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeDomainRequest

type DescribeDomainRequest struct {
	*tchttp.BaseRequest

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

func NewDescribeDomainRequest

func NewDescribeDomainRequest() (request *DescribeDomainRequest)

func (*DescribeDomainRequest) FromJsonString

func (r *DescribeDomainRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDomainRequest) ToJsonString

func (r *DescribeDomainRequest) ToJsonString() string

type DescribeDomainRequestParams

type DescribeDomainRequestParams struct {
	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

Predefined struct for user

type DescribeDomainResponse

type DescribeDomainResponse struct {
	*tchttp.BaseResponse
	Response *DescribeDomainResponseParams `json:"Response"`
}

func NewDescribeDomainResponse

func NewDescribeDomainResponse() (response *DescribeDomainResponse)

func (*DescribeDomainResponse) FromJsonString

func (r *DescribeDomainResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeDomainResponse) ToJsonString

func (r *DescribeDomainResponse) ToJsonString() string

type DescribeDomainResponseParams

type DescribeDomainResponseParams struct {
	// Domain information
	DomainInfo *DomainInfo `json:"DomainInfo,omitempty" name:"DomainInfo"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeRecordListRequest

type DescribeRecordListRequest struct {
	*tchttp.BaseRequest

	// The domain for which DNS records are to be obtained.
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// The ID of the domain for which DNS records are to be obtained. If `DomainId` is passed in, the system will omit the parameter `Domain`.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`

	// The host header of a DNS record. If this parameter is passed in, only the DNS record corresponding to this host header will be returned.
	Subdomain *string `json:"Subdomain,omitempty" name:"Subdomain"`

	// The type of DNS record, such as A, CNAME, NS, AAAA, explicit URL, implicit URL, CAA, or SPF record.
	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`

	// The split zone name.
	RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"`

	// The split zone ID. If `RecordLineId` is passed in, the system will omit the parameter `RecordLine`.
	RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"`

	// The group ID.
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

	// The keyword for searching for DNS records. Host headers and record values are supported.
	Keyword *string `json:"Keyword,omitempty" name:"Keyword"`

	// The sorting field. Available values: `name`, `line`, `type`, `value`, `weight`, `mx`, and `ttl,updated_on`.
	SortField *string `json:"SortField,omitempty" name:"SortField"`

	// The sorting type. Valid values: `ASC` (ascending, default), `DESC` (descending).
	SortType *string `json:"SortType,omitempty" name:"SortType"`

	// The offset. Default value: `0`.
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// The limit. It defaults to 100 and can be up to 3,000.
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

func NewDescribeRecordListRequest

func NewDescribeRecordListRequest() (request *DescribeRecordListRequest)

func (*DescribeRecordListRequest) FromJsonString

func (r *DescribeRecordListRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeRecordListRequest) ToJsonString

func (r *DescribeRecordListRequest) ToJsonString() string

type DescribeRecordListRequestParams

type DescribeRecordListRequestParams struct {
	// The domain for which DNS records are to be obtained.
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// The ID of the domain for which DNS records are to be obtained. If `DomainId` is passed in, the system will omit the parameter `Domain`.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`

	// The host header of a DNS record. If this parameter is passed in, only the DNS record corresponding to this host header will be returned.
	Subdomain *string `json:"Subdomain,omitempty" name:"Subdomain"`

	// The type of DNS record, such as A, CNAME, NS, AAAA, explicit URL, implicit URL, CAA, or SPF record.
	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`

	// The split zone name.
	RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"`

	// The split zone ID. If `RecordLineId` is passed in, the system will omit the parameter `RecordLine`.
	RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"`

	// The group ID.
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

	// The keyword for searching for DNS records. Host headers and record values are supported.
	Keyword *string `json:"Keyword,omitempty" name:"Keyword"`

	// The sorting field. Available values: `name`, `line`, `type`, `value`, `weight`, `mx`, and `ttl,updated_on`.
	SortField *string `json:"SortField,omitempty" name:"SortField"`

	// The sorting type. Valid values: `ASC` (ascending, default), `DESC` (descending).
	SortType *string `json:"SortType,omitempty" name:"SortType"`

	// The offset. Default value: `0`.
	Offset *uint64 `json:"Offset,omitempty" name:"Offset"`

	// The limit. It defaults to 100 and can be up to 3,000.
	Limit *uint64 `json:"Limit,omitempty" name:"Limit"`
}

Predefined struct for user

type DescribeRecordListResponse

type DescribeRecordListResponse struct {
	*tchttp.BaseResponse
	Response *DescribeRecordListResponseParams `json:"Response"`
}

func NewDescribeRecordListResponse

func NewDescribeRecordListResponse() (response *DescribeRecordListResponse)

func (*DescribeRecordListResponse) FromJsonString

func (r *DescribeRecordListResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeRecordListResponse) ToJsonString

func (r *DescribeRecordListResponse) ToJsonString() string

type DescribeRecordListResponseParams

type DescribeRecordListResponseParams struct {
	// The record count info.
	RecordCountInfo *RecordCountInfo `json:"RecordCountInfo,omitempty" name:"RecordCountInfo"`

	// The record list result.
	RecordList []*RecordListItem `json:"RecordList,omitempty" name:"RecordList"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type DescribeRecordRequest

type DescribeRecordRequest struct {
	*tchttp.BaseRequest

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Record ID.
	RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

func NewDescribeRecordRequest

func NewDescribeRecordRequest() (request *DescribeRecordRequest)

func (*DescribeRecordRequest) FromJsonString

func (r *DescribeRecordRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeRecordRequest) ToJsonString

func (r *DescribeRecordRequest) ToJsonString() string

type DescribeRecordRequestParams

type DescribeRecordRequestParams struct {
	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Record ID.
	RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

Predefined struct for user

type DescribeRecordResponse

type DescribeRecordResponse struct {
	*tchttp.BaseResponse
	Response *DescribeRecordResponseParams `json:"Response"`
}

func NewDescribeRecordResponse

func NewDescribeRecordResponse() (response *DescribeRecordResponse)

func (*DescribeRecordResponse) FromJsonString

func (r *DescribeRecordResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*DescribeRecordResponse) ToJsonString

func (r *DescribeRecordResponse) ToJsonString() string

type DescribeRecordResponseParams

type DescribeRecordResponseParams struct {
	// Record information
	RecordInfo *RecordInfo `json:"RecordInfo,omitempty" name:"RecordInfo"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type DomainCreateInfo

type DomainCreateInfo struct {
	// Domain ID
	Id *uint64 `json:"Id,omitempty" name:"Id"`

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain Punycode
	Punycode *string `json:"Punycode,omitempty" name:"Punycode"`

	// NS list of the domain
	GradeNsList []*string `json:"GradeNsList,omitempty" name:"GradeNsList"`
}

type DomainInfo

type DomainInfo struct {
	// Domain ID
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`

	// Domain status
	Status *string `json:"Status,omitempty" name:"Status"`

	// DNS plan level
	Grade *string `json:"Grade,omitempty" name:"Grade"`

	// Domain group ID
	GroupId *uint64 `json:"GroupId,omitempty" name:"GroupId"`

	// Whether the domain is starred
	IsMark *string `json:"IsMark,omitempty" name:"IsMark"`

	// TTL (DNS record cache time)
	TTL *uint64 `json:"TTL,omitempty" name:"TTL"`

	// Whether CNAME flattening is enabled
	CnameSpeedup *string `json:"CnameSpeedup,omitempty" name:"CnameSpeedup"`

	// Domain remarks
	// Note: This field may return null, indicating that no valid values can be obtained.
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// Domain Punycode
	Punycode *string `json:"Punycode,omitempty" name:"Punycode"`

	// DNS status of the domain
	DnsStatus *string `json:"DnsStatus,omitempty" name:"DnsStatus"`

	// NS list of the domain
	DnspodNsList []*string `json:"DnspodNsList,omitempty" name:"DnspodNsList"`

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain level ID
	GradeLevel *uint64 `json:"GradeLevel,omitempty" name:"GradeLevel"`

	// Domain user ID
	UserId *uint64 `json:"UserId,omitempty" name:"UserId"`

	// Whether the domain is a VIP domain
	IsVip *string `json:"IsVip,omitempty" name:"IsVip"`

	// Domain owner account
	Owner *string `json:"Owner,omitempty" name:"Owner"`

	// Domain level description
	GradeTitle *string `json:"GradeTitle,omitempty" name:"GradeTitle"`

	// Domain creation time
	CreatedOn *string `json:"CreatedOn,omitempty" name:"CreatedOn"`

	// Last update time
	UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"`

	// Tencent Cloud account `Uin`
	Uin *string `json:"Uin,omitempty" name:"Uin"`

	// NS list actually used by the domain
	// Note: This field may return null, indicating that no valid values can be obtained.
	ActualNsList []*string `json:"ActualNsList,omitempty" name:"ActualNsList"`

	// Number of domain records
	RecordCount *uint64 `json:"RecordCount,omitempty" name:"RecordCount"`

	// Alias of the domain account owner
	// Note: This field may return null, indicating that no valid values can be obtained.
	OwnerNick *string `json:"OwnerNick,omitempty" name:"OwnerNick"`
}

type ModifyDomainRemarkRequest

type ModifyDomainRemarkRequest struct {
	*tchttp.BaseRequest

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`

	// Domain remarks. To delete the remarks, submit empty content.
	Remark *string `json:"Remark,omitempty" name:"Remark"`
}

func NewModifyDomainRemarkRequest

func NewModifyDomainRemarkRequest() (request *ModifyDomainRemarkRequest)

func (*ModifyDomainRemarkRequest) FromJsonString

func (r *ModifyDomainRemarkRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDomainRemarkRequest) ToJsonString

func (r *ModifyDomainRemarkRequest) ToJsonString() string

type ModifyDomainRemarkRequestParams

type ModifyDomainRemarkRequestParams struct {
	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`

	// Domain remarks. To delete the remarks, submit empty content.
	Remark *string `json:"Remark,omitempty" name:"Remark"`
}

Predefined struct for user

type ModifyDomainRemarkResponse

type ModifyDomainRemarkResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDomainRemarkResponseParams `json:"Response"`
}

func NewModifyDomainRemarkResponse

func NewModifyDomainRemarkResponse() (response *ModifyDomainRemarkResponse)

func (*ModifyDomainRemarkResponse) FromJsonString

func (r *ModifyDomainRemarkResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDomainRemarkResponse) ToJsonString

func (r *ModifyDomainRemarkResponse) ToJsonString() string

type ModifyDomainRemarkResponseParams

type ModifyDomainRemarkResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyDomainStatusRequest

type ModifyDomainStatusRequest struct {
	*tchttp.BaseRequest

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain status. Valid values: enable; disable.
	Status *string `json:"Status,omitempty" name:"Status"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

func NewModifyDomainStatusRequest

func NewModifyDomainStatusRequest() (request *ModifyDomainStatusRequest)

func (*ModifyDomainStatusRequest) FromJsonString

func (r *ModifyDomainStatusRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDomainStatusRequest) ToJsonString

func (r *ModifyDomainStatusRequest) ToJsonString() string

type ModifyDomainStatusRequestParams

type ModifyDomainStatusRequestParams struct {
	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Domain status. Valid values: enable; disable.
	Status *string `json:"Status,omitempty" name:"Status"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

Predefined struct for user

type ModifyDomainStatusResponse

type ModifyDomainStatusResponse struct {
	*tchttp.BaseResponse
	Response *ModifyDomainStatusResponseParams `json:"Response"`
}

func NewModifyDomainStatusResponse

func NewModifyDomainStatusResponse() (response *ModifyDomainStatusResponse)

func (*ModifyDomainStatusResponse) FromJsonString

func (r *ModifyDomainStatusResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyDomainStatusResponse) ToJsonString

func (r *ModifyDomainStatusResponse) ToJsonString() string

type ModifyDomainStatusResponseParams

type ModifyDomainStatusResponseParams struct {
	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type ModifyRecordRequest

type ModifyRecordRequest struct {
	*tchttp.BaseRequest

	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Record type, which is obtained through the record type API. The value contains uppercase letters, such as `A`.
	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`

	// Record split zone, which is obtained through the record split zone API.
	RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"`

	// Record value, such as `IP : 200.200.200.200`, `CNAME : cname.dnspod.com`, and `MX : mail.dnspod.com`.
	Value *string `json:"Value,omitempty" name:"Value"`

	// Record ID.
	RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`

	// Host record such as `www`. If it is not passed in, it will be `@` by default.
	SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"`

	// Split zone ID, which is obtained through the record split zone API. The value is a string such as `10=1`. The `RecordLineId` parameter has a higher priority than `RecordLine`. If both of them are passed in, `RecordLineId` will be used first.
	RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"`

	// MX priority, which is required for an MX record and will take effect if the record type is MX. Value range: 1–20.
	MX *uint64 `json:"MX,omitempty" name:"MX"`

	// TTL. Value range: 1–604800. The minimum value varies by domain level.
	TTL *uint64 `json:"TTL,omitempty" name:"TTL"`

	// Weight information, which is an integer between 0 and 100. It is supported only for enterprise VIP domains. `0` indicates not to pass in this parameter, i.e., not to set the weight.
	Weight *uint64 `json:"Weight,omitempty" name:"Weight"`

	// Initial status of the record. Valid values: ENABLE, DISABLE. Default value: ENABLE. If `DISABLE` is passed in, the DNS record won't take effect, and the limit on round-robin DNS won't be verified.
	Status *string `json:"Status,omitempty" name:"Status"`
}

func NewModifyRecordRequest

func NewModifyRecordRequest() (request *ModifyRecordRequest)

func (*ModifyRecordRequest) FromJsonString

func (r *ModifyRecordRequest) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyRecordRequest) ToJsonString

func (r *ModifyRecordRequest) ToJsonString() string

type ModifyRecordRequestParams

type ModifyRecordRequestParams struct {
	// Domain
	Domain *string `json:"Domain,omitempty" name:"Domain"`

	// Record type, which is obtained through the record type API. The value contains uppercase letters, such as `A`.
	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`

	// Record split zone, which is obtained through the record split zone API.
	RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"`

	// Record value, such as `IP : 200.200.200.200`, `CNAME : cname.dnspod.com`, and `MX : mail.dnspod.com`.
	Value *string `json:"Value,omitempty" name:"Value"`

	// Record ID.
	RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"`

	// Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`

	// Host record such as `www`. If it is not passed in, it will be `@` by default.
	SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"`

	// Split zone ID, which is obtained through the record split zone API. The value is a string such as `10=1`. The `RecordLineId` parameter has a higher priority than `RecordLine`. If both of them are passed in, `RecordLineId` will be used first.
	RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"`

	// MX priority, which is required for an MX record and will take effect if the record type is MX. Value range: 1–20.
	MX *uint64 `json:"MX,omitempty" name:"MX"`

	// TTL. Value range: 1–604800. The minimum value varies by domain level.
	TTL *uint64 `json:"TTL,omitempty" name:"TTL"`

	// Weight information, which is an integer between 0 and 100. It is supported only for enterprise VIP domains. `0` indicates not to pass in this parameter, i.e., not to set the weight.
	Weight *uint64 `json:"Weight,omitempty" name:"Weight"`

	// Initial status of the record. Valid values: ENABLE, DISABLE. Default value: ENABLE. If `DISABLE` is passed in, the DNS record won't take effect, and the limit on round-robin DNS won't be verified.
	Status *string `json:"Status,omitempty" name:"Status"`
}

Predefined struct for user

type ModifyRecordResponse

type ModifyRecordResponse struct {
	*tchttp.BaseResponse
	Response *ModifyRecordResponseParams `json:"Response"`
}

func NewModifyRecordResponse

func NewModifyRecordResponse() (response *ModifyRecordResponse)

func (*ModifyRecordResponse) FromJsonString

func (r *ModifyRecordResponse) FromJsonString(s string) error

FromJsonString It is highly **NOT** recommended to use this function because it has no param check, nor strict type check

func (*ModifyRecordResponse) ToJsonString

func (r *ModifyRecordResponse) ToJsonString() string

type ModifyRecordResponseParams

type ModifyRecordResponseParams struct {
	// Record ID
	RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"`

	// The unique request ID, which is returned for each request. RequestId is required for locating a problem.
	RequestId *string `json:"RequestId,omitempty" name:"RequestId"`
}

Predefined struct for user

type RecordCountInfo

type RecordCountInfo struct {
	// The subdomain count.
	SubdomainCount *uint64 `json:"SubdomainCount,omitempty" name:"SubdomainCount"`

	// The count of records returned in the list.
	ListCount *uint64 `json:"ListCount,omitempty" name:"ListCount"`

	// The total record count.
	TotalCount *uint64 `json:"TotalCount,omitempty" name:"TotalCount"`
}

type RecordInfo

type RecordInfo struct {
	// Record ID.
	Id *uint64 `json:"Id,omitempty" name:"Id"`

	// Subdomain (host record).
	SubDomain *string `json:"SubDomain,omitempty" name:"SubDomain"`

	// Record type. For more information, see the `DescribeRecordType` API.
	RecordType *string `json:"RecordType,omitempty" name:"RecordType"`

	// Split zone of the DNS record. For more information, see the `DescribeRecordLineList` API.
	RecordLine *string `json:"RecordLine,omitempty" name:"RecordLine"`

	// Split zone ID of the DNS record. For more information, see the `DescribeRecordLineList` API.
	RecordLineId *string `json:"RecordLineId,omitempty" name:"RecordLineId"`

	// Record value.
	Value *string `json:"Value,omitempty" name:"Value"`

	// Record weight.
	// Note: This field may return null, indicating that no valid values can be obtained.
	Weight *uint64 `json:"Weight,omitempty" name:"Weight"`

	// MX record value. It is 0 by default for non-MX records.
	MX *uint64 `json:"MX,omitempty" name:"MX"`

	// TTL value of the record.
	TTL *uint64 `json:"TTL,omitempty" name:"TTL"`

	// Record status. Valid values: 0 (disabled); 1 (enabled).
	Enabled *uint64 `json:"Enabled,omitempty" name:"Enabled"`

	// D-Monitor status of the record.
	// "Ok" : The server is normal.
	// "Warn" : There is an alarm on this record, and the server returns 4XX.
	// "Down" : The server is down.
	// "" : D-Monitor is disabled for this record.
	MonitorStatus *string `json:"MonitorStatus,omitempty" name:"MonitorStatus"`

	// Record remarks.
	// Note: This field may return null, indicating that no valid values can be obtained.
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// Last update time of the record.
	UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"`

	// Domain ID.
	DomainId *uint64 `json:"DomainId,omitempty" name:"DomainId"`
}

type RecordListItem

type RecordListItem struct {
	// The record ID.
	RecordId *uint64 `json:"RecordId,omitempty" name:"RecordId"`

	// The record value.
	Value *string `json:"Value,omitempty" name:"Value"`

	// The record status. Valid values: `ENABLE` (enabled), `DISABLE` (disabled).
	Status *string `json:"Status,omitempty" name:"Status"`

	// The update time.
	UpdatedOn *string `json:"UpdatedOn,omitempty" name:"UpdatedOn"`

	// The host name.
	Name *string `json:"Name,omitempty" name:"Name"`

	// The record split zone.
	Line *string `json:"Line,omitempty" name:"Line"`

	// The split zone ID.
	LineId *string `json:"LineId,omitempty" name:"LineId"`

	// The record type.
	Type *string `json:"Type,omitempty" name:"Type"`

	// The record weight, which is required for round-robin DNS records.
	// Note: This field may return null, indicating that no valid values can be obtained.
	Weight *uint64 `json:"Weight,omitempty" name:"Weight"`

	// The monitoring status of the record. Valid values: `OK` (normal), `WARN` (warning), and `DOWN` (downtime). It is empty if no monitoring is set or the monitoring is suspended.
	MonitorStatus *string `json:"MonitorStatus,omitempty" name:"MonitorStatus"`

	// The record remarks.
	Remark *string `json:"Remark,omitempty" name:"Remark"`

	// The record cache time.
	TTL *uint64 `json:"TTL,omitempty" name:"TTL"`

	// The MX value, applicable to the MX record only.
	// Note: This field may return null, indicating that no valid values can be obtained.
	MX *uint64 `json:"MX,omitempty" name:"MX"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL