All Products
Search
Document Center

Security Center:ModifyServerlessAuthToMachine

Last Updated:Feb 17, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

Manage Serverless Asset Authorization

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-sas:ModifyServerlessAuthToMachineupdate
*All Resources
*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
BindUuidListarrayNo

List of asset UUIDs to be bound.

BindUuidListstringNo

Asset UUID to be bound.

96a005f3-*051a698*
UnBindUuidListarrayNo

List of asset UUIDs to be unbound.

UnBindUuidListstringNo

Asset UUID to be unbound.

96a005f3-*051a698*
CriteriastringNo

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"}]
LogicalExpstringNo

Set the logical relationship between multiple search conditions. Values:

  • OR: Indicates an or relationship between multiple conditions.
  • AND: Indicates an and relationship between multiple conditions.
OR
BindAllbooleanNo

Whether to bind all. Default is false. Values:

  • true: Yes
  • false: No
false
AutoBindintegerNo

Enable auto-binding. Values:

  • 0: Off
  • 1: On
1
PreBindOrderIdlongNo

Pre-bind order ID.

233016**0482
PreBindintegerNo

Whether it is a pre-bind operation. Values:

  • 0: No
  • 1: Yes
Note After enabling pre-binding, the specified server will automatically bind the corresponding version's authorization count after the purchase is completed.
1
NtmVersionstringNo

NTM version code, used for pre-binding.

level2
AuthItemstringNo

Instance type. Values:

  • SERVERLESS: Serverless asset
SERVERLESS
BindAssetTypestringNo

Type of asset to operate on. Values:

  • INSTANCE: Instance
  • APP: Application
APP
BindAppListarrayNo

List of application IDs to be bound.

Note Obtained through the ListMachineApps interface.
BindAppIdListstringNo

Application ID.

**7ad7e3a
UnBindAppListarrayNo

List of application IDs to be unbound.

Note Obtained through the ListMachineApps interface.
UbBindAppIdListstringNo

Application ID to be unbound.

**7ad7e3a
AppCriteriastringNo

Application query condition.

**7ad7e3a
ResourceDirectoryUidlongNo

UID of the associated resource directory.

123456

Response parameters

ParameterTypeDescriptionExample
object

PlainResult

Dataobject

Details of the returned data.

ResultCodeinteger

Result code. Values:

  • 0: Success
  • 1: Parameter error
0

Examples

Sample success responses

JSONformat

{
  "Data": {
    "ResultCode": 0
  },
  "RequestId": "A47F77A1***8CD37050E"
}

Error codes

HTTP status codeError codeError messageDescription
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.