Modifies an accelerated domain name.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes UpdateDcdnIpaDomain

The operation that you want to perform. Set the value to UpdateDcdnIpaDomain.

DomainName String Yes example.com

The accelerated domain name that you want to modify. You can specify only one domain name in each call.

Sources String No [{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80,"weight":"15"}]

The list of origin URLs.

ResourceGroupId String No rg-acfmyuji4b6r4**

The ID of the resource group.

TopLevelDomain String No yourDomain.com

The top-level domain name.

The following table describes the fields in the Sources parameter.

Parameter

Type

Required

Description

type

String

Yes

The type of origin server. Valid values:

ipaddr: the IP address of the origin server.

domain: the domain name of the origin server.

oss: Object Storage Service (OSS) buckets are not supported.

content

String

Yes

The address of the origin server. You can specify an IP address or a domain name.

port

Integer

No

The port number. Valid values: 0 to 65535.

priority

String

No

The priority of the origin server if multiple origin servers are specified. Valid values: 20 and 30. The default value: 20. A value of 20 indicates a primary origin server. A value of 30 indicates a secondary origin server.

weight

String

No

The weight of the origin server. You must specify a value that is less than 100. The default value is 10.

Response parameters

Parameter Type Example Description
RequestId String 15C66C7B-671A-4297-9187-2C4477247A74

The ID of the request.

Examples

Sample requests

http(s)://dcdn.aliyuncs.com/? Action=UpdateDcdnIpaDomain
&DomainName=example.com
&Sources=[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80}]
&<Common request parameters>

Sample success responses

XML format

<UpdateDcdnIpaDomainResponse>
      <RequestId>15C66C7B-671A-4297-9187-2C4477247A74</RequestId>
</UpdateDcdnIpaDomainResponse>

JSON format

{
  "RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}

Error codes

HttpCode Error code Error message Description
400 MissingDomainName The domainName parameter is required. The error message returned because the value of the DomainName parameter is not specified.
400 InvalidDomainName.Malformed The specified DomainName is invalid. The error message returned because the domain name format is invalid.
400 InvalidSource.Content.Malformed The specified Source Content is invalid. The error message returned because the specified value of the Sources parameter is invalid. Specify a valid value.
400 InvalidTypeContent.Mismatch The specified source type does not match the specified source content. The error message returned because the type and content fields that are specified in the Sources parameter do not match.
400 MissingSource.Content The Source Content must be specified. The error message returned because the content field in the Sources parameter is not specified. Specify the field and try again later.
400 MissingSource.Type The Source Type must be specified. The error message returned because the type field in the Sources parameter is not specified. Specify the field and try again later.
400 InvalidSource.Type.Malformed The specified Source Type is invalid. The error message returned because the specified value of the type field in the Sources parameter is invalid. Specify a value that is in the required format.
400 InvalidSource.Priority.Malformed The specified Source Priority is invalid. The error message returned because the specified value of the priority field in the Sources parameter is invalid. Specify a value that is in the required format.
400 InvalidResourceGroupId.Malformed The specified ResourceGroupId is invalid. The error message returned because the specified value of the ResourceGroupId parameter is invalid. Specify a valid value.
400 EntityNotExists.ResourceGroup The resource group does not exist. The error message returned because the specified resource group does not exist.
400 InvalidStatus.ResourceGroup The current status of the resource group does not support this operation. The error message returned because the operation is not supported by the current state of the resource group.
403 DomainInProtectedMode The domain is in protection mode. To request permission, contact Customer Service. The error message returned because the specified domain name is being protected. To call this operation, contact Alibaba Cloud customer services.
400 TopLevelDomain.NotFound The specified TopLevelDomain does not exist. The error message returned because the specified top-level domain does not exist.
400 InvalidSource.Port.Malformed The source port is empty, or it is outside the range 0-65535. The error message returned because the origin port number is not specified or the specified origin port number is invalid. Valid port numbers are from 0 to 65535.
403 DcdnIpaServiceNotFound The DCDN IPA service has not been activated. The error message returned because the IPA service is not activated.

For a list of error codes, visit the API Error Center.