All Products
Search
Document Center

ApsaraVideo VOD:AddVodDomain

Last Updated:Jul 19, 2024

Adds a domain name to accelerate in ApsaraVideo VOD.

Operation description

  • This operation is available only in the China (Shanghai) region.
  • Before you add a domain name to accelerate, you must activate ApsaraVideo VOD and apply for an Internet content provider (ICP) filing for the domain name. For more information about how to activate ApsaraVideo VOD, see Activate ApsaraVideo VOD.
  • If the content on the origin server is not stored on Alibaba Cloud, the content must be reviewed by Alibaba Cloud. The review will be complete by the end of the next business day after you submit an application.
  • You can add only one domain name to accelerate in a request. You can add a maximum of 20 accelerated domain names within an Alibaba Cloud account.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringYes

The domain name that you want to accelerate. Wildcard domain names that start with periods (.) are supported. Example: .example.com.

example.com
SourcesstringYes

The information about the addresses of origin servers. For more information, see the Sources table in this topic.

[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80}]
CheckUrlstringNo

The URL that is used for health checks.

www.example.com/test.html
ScopestringNo

This parameter is applicable to users of level 3 or higher in the Chinese mainland and users outside the Chinese mainland. Default value: domestic. Valid values:

  • domestic: Chinese mainland
  • overseas: outside the Chinese mainland
  • global: regions in and outside the Chinese mainland
domestic
TopLevelDomainstringNo

The top-level domain.

example.com

Sources

ParameterTypeRequiredDescription
typeStringYesThe type of the origin server. Valid values:
ipaddr: an IP address.
domain: a domain name.
oss: the domain of an Object Storage Service (OSS) bucket.
contentStringYesThe address of the origin server. You can specify an IP address or a domain name.
portIntegerNoThe port number. Valid values: 443 and 80. Default value: 80. If you specify 443, requests are redirected to the origin server over HTTPS. You can also specify a custom port.
priorityStringNoThe priority of the origin server if multiple origin servers are specified. Valid values: 20 and 30. Default value: 20. 20 indicates that the origin server is the primary origin server. 30 indicates that the origin server is a secondary origin server.

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The ID of the request.

15C66C7B-671A-4297-****-2C4477247A74

Examples

Sample success responses

JSONformat

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

Error codes

For a list of error codes, visit the Service error codes.

Common errors

The following table describes the error codes that this operation can return.

Error codeError messageHTTP status codeDescription
InvalidDomainName.MalformedSpecified DomainName is malformed.400The error message returned because the value of the DomainName parameter is invalid.
InvalidCdnType.MalformedSpecified CdnType is malformed.400The error message returned because the value of the CdnType parameter is invalid.
InvalidSourceType.MalformedSpecified SourceType is malformed.400The error message returned because the value of the SourceType parameter is invalid.
InvalidSources.MalformedSpecified Sources is malformed.400The error message returned because the origin address does not match the origin type.
InvalidScope.MalformedSpecified Scope is malformed.400The error message returned because the value of the Scope parameter is invalid.
InvaildParameterThe Certificate you provided is malformed!400The error message returned because the total length of the HTTPS certificate and private key exceeds the upper limit.
BusinessExistBusiness exist do not repeated submission400The error message returned because the domain name is being added. You cannot add duplicate domain names.
DomainAlreadyExistThis domain name is exist already400The error message returned because the domain name is already added.
DomainOverLimitThe Number of Domain is over the limit403The error message returned because the number of accelerated domain names exceeds the upper limit.
DomainNotRegistrationThe Domain name is not registered404The error message returned because the domain name does not have an ICP filing.
IllegalOperationIllegal domain operate is not permitted.403The error message returned because you are not authorized to perform this operation.
ServiceBusyThe specified Domain is configuring, please retry later.403The error message returned because the domain name is being configured. Try again later.
InvalidDomain.NotFoundThe domain provided does not belong to you.404The error message returned because the specified domain name does not exist or does not belong to the current account.
InnerAddDomainDeniedYour account haven't bind aoneId, can not add domain.400The error message returned because an internal account is not bound to an Aone ID. You cannot add a domain name by using the internal account.
ExtensiveAndAllBothExistExtensive domain and the domain begins with 'all.' can not exist at the same time.400The error message returned because a wildcard domain name and a domain name that starts with all. exist. They cannot exist at the same time.
CdnTypeNotSupportExtensiveDomainExtensive domain not supported for this cdn type.400The error message returned because wildcard domain names are not supported for the specified business type.
ExtensiveAndSpecificDomainConflictExtensive domain and corresponding specific domain are mutually exclusive.400The error message returned because the specified domain name is an exact match of an existing wildcard domain name at the same level.
InvalidParameterAdd live region parameters have error.400The error message returned because the system failed to specify the region for live streaming.
InvalidRegion.MalformedSpecified Region is malformed.400The error message returned because the value of the region parameter is invalid.
InvalidResourceGroupId.MalformedSpecified ResourceGroupId is malformed.400The error message returned because the value of the ResourceGroupId parameter is invalid.
EntityNotExists.ResourceGroupThe resource group does not exist.400The error message returned because the specified resource group does not exist.
InvalidStatus.ResourceGroupIt's now allowed to do this operation because of the current status of resource-group.400The error message returned because the resource group is in an invalid state.
InvalidPriorities.MalformedThe length of priorities is not the same with source.400The error message returned because the number of priorities does not match the number of origin servers.
NotInternationRealIdentityYou need to do real name authentication when you use Chinese mainland resources.400The error message returned because you have not completed real-name verification that is required to use resources in the Chinese mainland.