Installe l'agent Cloud Assistant sur des instances Elastic Compute Service (ECS). Après avoir installé l'agent Cloud Assistant sur des instances ECS, redémarrez les instances pour que l'installation prenne effet.
Description de l'opération
Notes d'utilisation
Après avoir appelé l'opération InstallCloudAssistant pour installer l'agent Cloud Assistant sur une instance ECS, appelez l'opération RebootInstance pour redémarrer l'instance afin que l'installation prenne effet.
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
|
ecs:InstallCloudAssistant |
update |
*Instance
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| RegionId |
string |
Oui |
Les identifiants des instances. Vous pouvez spécifier jusqu'à 50 identifiants d'instances dans une seule requête. |
cn-hangzhou |
| InstanceId |
array |
Oui |
Les identifiants des instances. Vous pouvez spécifier jusqu'à 50 identifiants d'instances dans une seule requête. |
cn-hangzhou |
|
string |
Non |
The instance ID. |
i-bp1iudwa5b1tqa**** |
|
|
Non |
L'identifiant de l'instance. |
i-bp1iudwa5b1tqa**** |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
L'identifiant de la requête. |
||
| RequestId |
string |
L'identifiant de la requête. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
Exemples
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 400 | RegionId.ApiNotSupported | The api is not supported in this region. | The API operation cannot be called in the specified region. Check whether the specified RegionId parameter is valid. |
| 400 | MissingParam.InstanceId | The parameter instanceId is missing or empty. | The instance ID is empty. |
| 500 | InternalError.Dispatch | An error occurred when you dispatched the request. | An error occurred while the request is being sent. Try again later. |
| 403 | InstanceIds.ExceedLimit | The number of instance IDs exceeds the upper limit. | The number of specified instance IDs exceeds the upper limit. |
| 403 | Operation.Forbidden | The operation is not permitted. | The operation is not supported. |
| 403 | InvalidInstanceId.OSTypeUnsupported | The OS type of the instance %s corresponding to the parameter InstanceId does not support the operation. | The operating system type of the instance corresponding to the parameter InstanceId does not support this operation. |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | Region information error |
| 404 | InvalidInstance.NotFound | The specified instance does not exist. | The specified instance does not exist. |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.