Modifies a project.
Try it now
Test
RAM authorization
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The instance ID of the bastion host for which you want to modify project information. Note
You can invoke the DescribeInstances operation to obtain this parameter. |
bastionhost-cn-7mz2v120f0y |
| RegionId |
string |
No |
The region ID of the bastion host. Note
For the mapping between region IDs and region names, see Regions and zones. |
cn-hangzhou |
| ProjectId |
integer |
Yes |
The ID of the project that you want to modify. Note
You can call the ListProjects operation to obtain this parameter. |
2 |
| Name |
string |
No |
The new name of the project. The name must be 1 to 128 characters in length, cannot start with a special character, and can contain only the following special characters: periods (.), underscores (_), hyphens (-), backslashes (\), and spaces. |
projectname |
| Description |
string |
No |
The new description of the project. The description can be up to 500 characters in length. |
Bastionhost demo |
| MemberIds |
string |
No |
The UIDs of the member accounts to associate with the project after modification. Note
You can call the ListMembersNotForProject operation to obtain this parameter. If you do not specify this parameter, no changes are made. |
160****5312 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| ProjectId |
string |
The project ID. |
2 |
| RequestId |
string |
The unique request ID generated by Alibaba Cloud for this request. |
EC9BF0F4-8983-491A-BC8C-1B4DD94976DE |
Examples
Success response
JSON format
{
"ProjectId": "2",
"RequestId": "EC9BF0F4-8983-491A-BC8C-1B4DD94976DE"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.