Consulte la liste et l'état des fichiers envoyés par Cloud Assistant.
Description de l'opération
Description de l'opération :
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:DescribeSendFileResults |
get |
Instance
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| RegionId |
string |
Oui |
L'identifiant de la région de l'instance ECS. Vous pouvez appeler DescribeRegions pour consulter la liste des régions la plus récente. |
cn-hangzhou |
| ResourceGroupId |
string |
Non |
L'identifiant du groupe de ressources auquel appartient la tâche d'envoi de fichier. Après avoir spécifié ce paramètre, vous devez également spécifier ResourceGroupId lors de l'envoi d'un fichier. Ce paramètre vous permet de filtrer les résultats d'envoi de fichiers par groupe de ressources. |
rg-bp67acfmxazb4p**** |
| InvokeId |
string |
Non |
L'identifiant d'exécution. |
f-hz0jdfwd9f**** |
| Name |
string |
Non |
Le nom du fichier. Si vous spécifiez ce paramètre, tous les enregistrements d'envoi du fichier portant le nom spécifié sont interrogés. |
test.txt |
| InstanceId |
string |
Non |
L'identifiant de l'instance. Si vous spécifiez ce paramètre, tous les enregistrements d'envoi de fichiers de l'instance spécifiée sont interrogés. |
i-hz0jdfwd9f**** |
| PageNumber |
integer |
Non |
Remarque
Ce paramètre est sur le point d'être mis hors service. Utilisez NextToken et MaxResults pour effectuer des opérations de requête paginée. |
1 |
| PageSize |
integer |
Non |
Remarque
Ce paramètre est sur le point d'être mis hors service. Utilisez NextToken et MaxResults pour effectuer des opérations de requête paginée. |
10 |
| MaxResults |
integer |
Non |
Le nombre maximal d'entrées par page dans une requête paginée. |
10 |
| NextToken |
string |
Non |
Le jeton de pagination. Définissez ce paramètre sur la valeur NextToken renvoyée dans l'appel d'API précédent. |
AAAAAdDWBF2 |
| InvocationStatus |
string |
Non |
L'état d'envoi global du fichier. L'état global dépend de l'état d'exécution combiné de toutes les instances cibles. Valeurs valides : |
Success |
| Tag |
array<object> |
Non |
Les balises. |
|
|
object |
Non |
Les balises. |
||
| Key |
string |
Non |
La clé de balise pour la tâche d'envoi de fichier. Valeurs valides de N : 1 à 20. La clé de balise ne peut pas être une chaîne vide. |
TestKey |
| Value |
string |
Non |
La valeur de balise pour la tâche d'envoi de fichier. Valeurs valides de N : 1 à 20. La valeur de balise peut être une chaîne vide. |
TestValue |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| PageSize |
integer |
Le nombre d'entrées par page. |
10 |
| RequestId |
string |
L'identifiant de la requête. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| PageNumber |
integer |
Le numéro de page du résultat de la requête. |
1 |
| TotalCount |
integer |
Le nombre total de scripts. |
2 |
| NextToken |
string |
Le jeton de pagination renvoyé dans cet appel. |
AAAAAdDWBF2 |
| Invocations |
object |
||
| Invocation |
array<object> |
Les enregistrements d'envoi de fichiers. |
|
|
array<object> |
|||
| CreationTime |
string |
The time when the file sending task was created. |
2019-12-20T06:15:54Z |
| InvocationStatus |
string |
The overall sending status of the file. The overall status depends on the combined execution status of all instances in the sending task. Valid values:
|
Success |
| ContentType |
string |
The content type of the file. Valid values:
|
PlainText |
| TargetDir |
string |
The destination path. |
/home/user |
| FileOwner |
string |
The owner of the file. |
test |
| Description |
string |
The description. |
This is a test file. |
| VmCount |
integer |
The number of instances to which the file was sent. |
1 |
| FileMode |
string |
The permissions on the file. |
777 |
| FileGroup |
string |
The user group of the file. |
test |
| InvokeId |
string |
The execution ID. |
f-hz0jdfwd9f**** |
| Name |
string |
The file name. |
test.txt |
| Content |
string |
The file content. |
#!/bin/bash echo "Current User is :" echo $(ps | grep "$$" | awk '{print $2}') |
| Overwrite |
string |
Indicates whether overwriting is allowed. |
false |
| InvokeInstances |
object |
||
| InvokeInstance |
array<object> |
The target instances for file sending. |
|
|
object |
|||
| CreationTime |
string |
The time when the file sending task was created. |
2019-12-20T06:15:54Z |
| StartTime |
string |
The time when the sending task started to run on the instance. |
2019-12-20T06:15:54Z |
| InvocationStatus |
string |
The sending status of the file on a single instance. Valid values:
|
Success |
| FinishTime |
string |
The time when the sending task ended. |
2019-12-20T06:15:54Z |
| UpdateTime |
string |
The time when the task status was updated. |
2019-12-20T06:15:54Z |
| ErrorInfo |
string |
The details of the failure or execution failure reason for file sending. Valid values:
|
the instance is not running when create task |
| ErrorCode |
string |
The error code for file sending failure. Valid values:
|
InstanceNotExists |
| InstanceId |
string |
The instance ID. |
i-uf614fhehhz**** |
| Tags |
object |
||
| Tag |
array<object> |
The tag information of the file sending task. |
|
|
object |
The tag information of the file sending task. |
||
| TagKey |
string |
The tag key of the file sending task. |
owner |
| TagValue |
string |
The tag value of the file sending task. |
zhangsan |
Exemples
JSON format
{
"PageSize": 10,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"PageNumber": 1,
"TotalCount": 2,
"NextToken": "AAAAAdDWBF2",
"Invocations": {
"Invocation": [
{
"CreationTime": "2019-12-20T06:15:54Z",
"InvocationStatus": "Success",
"ContentType": "PlainText",
"TargetDir": "/home/user",
"FileOwner": "test",
"Description": "This is a test file.",
"VmCount": 1,
"FileMode": "777",
"FileGroup": "test",
"InvokeId": "f-hz0jdfwd9f****",
"Name": "test.txt",
"Content": "#!/bin/bash echo \"Current User is :\" echo $(ps | grep \"$$\" | awk '{print $2}')",
"Overwrite": "false",
"InvokeInstances": {
"InvokeInstance": [
{
"CreationTime": "2019-12-20T06:15:54Z",
"StartTime": "2019-12-20T06:15:54Z",
"InvocationStatus": "Success",
"FinishTime": "2019-12-20T06:15:54Z",
"UpdateTime": "2019-12-20T06:15:54Z",
"ErrorInfo": "the instance is not running when create task",
"ErrorCode": "InstanceNotExists",
"InstanceId": "i-uf614fhehhz****"
}
]
},
"Tags": {
"Tag": [
{
"TagKey": "owner",
"TagValue": "zhangsan"
}
]
}
}
]
}
}
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 | NumberExceed.Tags | The Tags parameter number is exceed. | The number of tags exceeds the maximum limit. |
| 400 | MissingParameter.TagKey | You must specify Tag.N.Key. | The tag key is not specified. |
| 400 | Duplicate.TagKey | The Tag.N.Key contain duplicate key. | The specified tag key already exists. Tag keys must be unique. |
| 400 | InvalidTagKey.Malformed | The specified Tag.n.Key is not valid. | The specified Tag.N.Key parameter is invalid. |
| 400 | InvalidTagValue.Malformed | The specified Tag.n.Value is not valid. | The specified tag value is invalid. |
| 400 | InvalidParam.PageNumber | The specified parameter is invalid. | |
| 400 | InvalidParam.PageSize | The specified parameter is invalid. | |
| 400 | InvalidParameter.NextToken | The specified parameter NextToken is not valid. | The specified parameter NextToken is illegal. |
| 400 | InvalidParameter.MaxResults | The specified parameter MaxResults is not valid. | The specified parameter MaxResults is illegal. |
| 500 | InternalError.Dispatch | An error occurred when you dispatched the request. | An error occurred while the request is being sent. Try again later. |
| 403 | Operation.Forbidden | The operation is not permitted. | The operation is not supported. |
| 404 | InvalidRegionId.NotFound | The RegionId provided does not exist in our records. | Region information error |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.