Manage Serverless Asset Authorization
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- For mandatory resource types, indicate with a prefix of * .
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ModifyServerlessAuthToMachine | update | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
BindUuidList | array | No | List of asset UUIDs to be bound. | |
BindUuidList | string | No | Asset UUID to be bound. | 96a005f3-*051a698* |
UnBindUuidList | array | No | List of asset UUIDs to be unbound. | |
UnBindUuidList | string | No | Asset UUID to be unbound. | 96a005f3-*051a698* |
Criteria | string | No | Set the conditions for searching assets. This parameter is in JSON format, and case sensitivity should be noted when entering parameters. Note
Supports searching assets using instance ID, instance name, VPC ID, region, public IP address, etc. You can call the DescribeCriteria interface to query supported search conditions.
| [{"name":"vulStatus","value":"YES","logicalExp":"AND"}] |
LogicalExp | string | No | Set the logical relationship between multiple search conditions. Values:
| OR |
BindAll | boolean | No | Whether to bind all. Default is false. Values:
| false |
AutoBind | integer | No | Enable auto-binding. Values:
| 1 |
PreBindOrderId | long | No | Pre-bind order ID. | 233016**0482 |
PreBind | integer | No | Whether it is a pre-bind operation. Values:
Note
After enabling pre-binding, the specified server will automatically bind the corresponding version's authorization count after the purchase is completed.
| 1 |
NtmVersion | string | No | NTM version code, used for pre-binding. | level2 |
AuthItem | string | No | Instance type. Values:
| SERVERLESS |
BindAssetType | string | No | Type of asset to operate on. Values:
| APP |
BindAppList | array | No | List of application IDs to be bound. Note
Obtained through the ListMachineApps interface.
| |
BindAppIdList | string | No | Application ID. | **7ad7e3a |
UnBindAppList | array | No | List of application IDs to be unbound. Note
Obtained through the ListMachineApps interface.
| |
UbBindAppIdList | string | No | Application ID to be unbound. | **7ad7e3a |
AppCriteria | string | No | Application query condition. | **7ad7e3a |
ResourceDirectoryUid | long | No | UID of the associated resource directory. | 123456 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Data": {
"ResultCode": 0
},
"RequestId": "A47F77A1***8CD37050E"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.