Chama `BatchAddDcdnDomain` para adicionar múltiplos nomes de domínio.
Descrição da operação
Pré-requisitos:
-
Você deve ativar o DCDN antes de adicionar um nome de domínio acelerado.
-
Se você selecionar Somente China continental ou Global como a região de aceleração, o nome de domínio acelerado deve ter um registro ICP válido.
-
Você deve concluir a verificação de propriedade do domínio ao adicionar um nome de domínio ao Alibaba Cloud DCDN pela primeira vez. Para mais informações, consulte VerifyDcdnDomainOwner.
-
Você pode adicionar apenas um nome de domínio acelerado por chamada. Cada usuário tem uma cota padrão de 50 nomes de domínio. Para adicionar mais, envie uma solicitação no Quota Center.
-
Cada usuário pode chamar esta operação até 100 vezes por hora.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
dcdn:BatchAddDcdnDomain |
create |
*Domain
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| DomainName |
string |
Sim |
Os nomes de domínio a serem acelerados com DCDN. Você pode especificar até 20 nomes de domínio, separados por vírgulas. |
example.com,example.org |
| ResourceGroupId |
string |
Não |
O ID do grupo de recursos. Se você omitir este parâmetro, o sistema utilizará o grupo de recursos padrão. |
testID |
| Sources |
string |
Sim |
Uma string JSON especificando os servidores de origem. |
[{"content":"10.10.10.10","type":"ipaddr","priority":"20","port":80,"weight":"15"}] |
| CheckUrl |
string |
Não |
A URL de verificação de integridade. |
www.example.com/test.html |
| Scope |
string |
Não |
A região de aceleração. Valores válidos:
|
domestic |
| TopLevelDomain |
string |
Não |
O domínio principal. |
example.com |
A tabela a seguir descreve os campos do parâmetro Sources.
| Parâmetro | Tipo | Obrigatório | Descrição |
| type | String | Sim | O tipo da origem. Valores válidos: ipaddr: Uma origem IP. domain: Uma origem de domínio. oss: Um bucket OSS. fc_domain: Uma origem Function Compute. |
| content | String | Sim | O endereço IP ou nome de domínio da origem. |
| port | Integer | Não | A porta de origem. Valores válidos: 80: A porta padrão. 443: Para conexões HTTPS. Um número de porta personalizado. |
| priority | String | Não | A prioridade da origem. Valores válidos: 20: Origem primária (padrão). 30: Origem de backup. |
| weight | String | Não | O peso da origem, um número inteiro de 1 a 100 (padrão: 10). |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação. |
15C66C7B-671A-4297-9187-2C4477247A74 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74"
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 400 | InvalidDomainName.Malformed | The specified DomainName is invalid. | The specified domain name is invalid. |
| 400 | InvalidSources.Malformed | The specified Sources is invalid. | The specified Sources parameter is invalid. It can be IP address or domain name. Up to 20 IP addresses are supported and they must be separated by commas (,). Only a single domain name is supported. |
| 400 | InvalidScope.Malformed | The specified Scope is invalid. | The value specified for the Scope parameter is invalid. |
| 400 | InvalidSource.Priority.Malformed | The specified Source Priority is invalid. | The value specified for the priority field in the Sources parameter is invalid. |
| 400 | SourceIp.Exceed | The maximum number of back-to-origin IP addresses is exceeded. | The number of origin IP addresses exceeds the upper limit. |
| 400 | InvalidCertificate | The specified certificate format is invalid. | The format of the specified certificate is invalid. |
| 400 | InvalidCertificate.TooLong | The maximum length of the certificate is exceeded. | The maximum length of the specified certificate content has been reached. |
| 400 | CheckSourceHealthFailed | Error checking the security. Provide the valid origin site information. | The origin check failed. Please provide the correct origin information. |
| 400 | ExtensiveAndAllBothExist | A wildcard domain name and a domain name with an all. prefix cannot be both specified. | Wildcard domain names and domain names that start with "all." cannot both exist. |
| 400 | CdnTypeNotSupportExtensiveDomain | Wildcard domain names are not supported. | Wildcard domain names are not supported. |
| 400 | ExtensiveAndSpecificDomainConflict | The wildcard domain name overlaps a domain name at the same level. | Wildcard domain names and specific domain names of the same level as the wildcard domain names are mutually exclusive. Enter another domain name. |
| 400 | InvalidResourceGroupId.Malformed | The specified ResourceGroupId is invalid. | The value specified for the ResourceGroupId parameter is invalid. Specify a valid value and try again. |
| 400 | DomainReserved | The root domain of your domain is reserved by another account. Submit a ticket to contact customer support. | The root domain name of this domain name is used by another account. Submit a ticket to apply for new domain names. |
| 400 | InvalidDomainNameLevel | The alicdn.com domain supports a maximum of three levels of domain. | alicdn.com supports up to three domain levels for wildcard domain names. |
| 400 | TopLevelDomain.NotFound | The specified TopLevelDomain does not exist. | The specified top-level domain name does not exist. |
| 400 | EntityNotExists.ResourceGroup | The resource group does not exist. | The specified resource group does not exist. |
| 400 | EntityNotExist.ResourceGroup | The resource group does not exist. | The specified resource group does not exist. |
| 400 | InvalidStatus.ResourceGroup | The current status of the resource group does not support this operation. | This operation is not supported while the resource group is in the current state. |
| 400 | NotInternationRealIdentity | Real-name registration is required for services offered in Mainland China. | You have not passed real-name verification. According to the regulations issued by MIIT, you must pass real-name verification if you want to purchase information services in the Chinese mainland. |
| 400 | RecordCheckNotAvailable | The ICP filing interface is unavailable. Please try again later. | The operation for ICP filing is unavailable. Try again later. |
| 400 | IcpBlack | The domain is on the ICP blacklist. | The domain name is on the blacklist of the MIIT. |
| 400 | IspBlack | The domain is on the ISP blacklist. | The domain name is on the blacklist of Alibaba Cloud. |
| 400 | DomainOwnerVerifyFail | Owner verification of the root domain failed. | The first time a domain name is added to DCDN, you must prove the ownership of the domain name. You must add a DNS record or upload a verification file for the domain name before it can be added to DCDN. |
| 400 | TopLevelDomain.Mismatch | The specified TopLevelDomain does not match webSiteType. | The top-level domain name does not match the domain name type. |
| 400 | DomainOverLimit | The maximum number of domains is exceeded. | The maximum number of domain names has been reached. |
| 400 | DomainInRiskList | The domain you added may be at risk. If you have any questions, please submit a ticket. | The domain name you added may be at risk. If you have any questions, please submit a work order. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.