Modifies a command's parameters.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
swas-open:UpdateCommandAttribute |
update |
*Command
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Call the ListRegions operation to query available regions. |
cn-hangzhou |
| CommandId |
string |
Yes |
The command ID. Call the DescribeCommands operation to query available command IDs. |
c-sh02yh0932w**** |
| Name |
string |
No |
The command name. Supports all character sets. Maximum length: 128 characters. |
testName |
| Description |
string |
No |
The command description. Supports all character sets. Maximum length: 512 characters. |
test |
| WorkingDir |
string |
No |
The working directory of the command. Maximum length: 200 characters. |
/home/ |
| Timeout |
integer |
No |
The timeout period for command execution on the ECS instance. Unit: seconds. If the command cannot complete within this period, the process is forcefully terminated and the PID of the command is canceled. Default value: 60. |
60 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.