Modifie un pool d'adresses d'origine unique spécifié par l'identifiant du pool d'adresses d'origine.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
esa:UpdateOriginPool |
update |
*Site
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| Id |
integer |
Oui |
L'identifiant du pool d'adresses d'origine. Vous pouvez appeler l'opération ListOriginPools pour obtenir cet identifiant. |
1038520525196928 |
| Enabled |
boolean |
Non |
Indique si le pool d'adresses d'origine est activé. Valeurs valides :
|
true |
| Origins |
array<object> |
Non |
Les informations des serveurs d'origine ajoutés au pool d'adresses d'origine. Utilisez un tableau pour transmettre plusieurs serveurs d'origine. |
|
|
array<object> |
Non |
Les informations du serveur d'origine ajouté au pool d'adresses d'origine. |
||
| Name |
string |
Non |
Le nom du serveur d'origine. Le nom doit être unique au sein d'un pool d'adresses d'origine. |
origin1 |
| Address |
string |
Non |
L'adresse du serveur d'origine, par exemple www.example.com. |
www.example.com |
| Enabled |
boolean |
Non |
Indique si le serveur d'origine est activé. Valeurs valides :
|
true |
| Header |
any |
Non |
L'en-tête de requête inclus dans les requêtes de retour à l'origine. Seul Host est pris en charge. |
{ "Host": [ "example.com" ] } |
| Weight |
integer |
Non |
Le poids. La valeur est un entier compris entre 0 et 100. |
50 |
| Type |
string |
Non |
Le type de serveur d'origine. Valeurs valides :
|
OSS |
| AuthConf |
object |
Non |
Les informations d'authentification. Ce paramètre est requis lorsque le serveur d'origine est OSS, S3 ou un autre serveur d'origine nécessitant une authentification. |
|
| AuthType |
string |
Non |
Le type d'authentification. Valeurs valides :
|
public |
| AccessKey |
string |
Non |
L'AccessKey requise pour l'authentification privée. |
yourAccessKeyID |
| SecretKey |
string |
Non |
La SecretKey requise pour l'authentification privée. |
yourAccessKeySecret |
| Version |
string |
Non |
La version de signature requise lorsque le serveur d'origine est AWS S3. |
v2 |
| Region |
string |
Non |
La région du serveur d'origine requise lorsque le serveur d'origine est AWS S3. |
us-east-1 |
| IpVersionPolicy |
string |
Non |
La version du protocole IP utilisée pour les requêtes de retour à l'origine. Valeurs valides :
|
round_robin |
| SiteId |
integer |
Oui |
L'identifiant du site. Vous pouvez appeler l'opération ListSites pour obtenir cet identifiant. |
216558609793952 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Schéma de la réponse. |
||
| RequestId |
string |
L'identifiant de la requête. |
15C66C7B-671A-4297-9187-2C4477247A74 |
| Id |
integer |
L'identifiant du pool d'adresses d'origine. |
1038520525196928 |
Exemples
JSON format
{
"RequestId": "15C66C7B-671A-4297-9187-2C4477247A74",
"Id": 1038520525196928
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | InvalidParameter | The specified parameter is invalid. | The specified parameter is invalid. |
| 400 | SourceNumberExceedLimit | The number of sources in the origin pool exceeds the quota limit. | The number of sources that can be created in the origin pool has reached the upper limit of the package. Please check your package quota and upgrade the package to obtain more quota. |
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
| 400 | OriginPoolNotExist | The specified origin pool does not exist or does not belong to your account or website. Check and try again. | The specified origin pool does not exist or does not belong to your account or website. Check and try again. |
| 400 | Instance.NotOnline | Your plan is unavailable due to an overdue payment. Complete the payment first. | Your plan is unavailable due to an overdue payment. Complete the payment first. |
| 400 | OriginPoolNameConflict | The specified origin pool name already exists or its hostname conflicts with a load balancer name. Try again with a unique name. | The specified origin pool name already exists or its hostname conflicts with a load balancer name. Try again with a unique name. |
| 400 | SourceAddressInvalid | Invalid origin address. Check whether the IP address or domain name is in the valid format. | Invalid origin address. Check whether the IP address or domain name is in the valid format. |
| 400 | LockFailed | The system is handling requests you previously submitted. Try again later. | The system is handling requests you previously submitted. Try again later. |
| 400 | InvalidParameter.AddressConflict | Duplicate origin addresses. Make sure that each origin address for the same pool is unique. | Duplicate origin addresses. Make sure that each origin address for the same pool is unique. |
| 400 | SourceCircleExist | The host record of the resource to be operated on is already the source station of another resource, or the source station of the current resource has been added as a host record. To avoid loopback, modify the host record or source station and retry. | The host record of the resource to be operated on is already the source station of another resource, or the source station of the current resource has been added as a host record. To avoid loopback, modify the host record or source station and retry. |
| 400 | SourceInBlackList | The source is in the black list. | The source is in the black list. |
| 400 | InvalidParameter.SourceIpInBlacklist | The provided origin is an invalid private IP address. Please verify and resubmit. | The provided origin is an invalid private IP address. Please verify and resubmit. |
| 400 | InvalidParameter.PrivateIpAsSourceUnsupported | The provided origin is an invalid private IP address. Please verify and resubmit. | The provided origin is an invalid private IP address. Please verify and resubmit. |
| 400 | OriginPool.TypeNotSupport | The origin address pool type is not supported. | The origin address pool type is not supported. |
| 400 | OriginPool.CheckQuotaFailed | Failed to check source pool quota for site, please try again later. | Failed to check source pool quota for site, please try again later. |
| 404 | SiteNotFound | The website does not exist or does not belong to you. | The website does not exist or does not belong to you. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.