AssociateRenderingProjectInstances

Updated at:

Associates cloud application service instances with a project.

Operation description

Request description

  • This operation associates instances that meet specific conditions with a specified project.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

vs:AssociateRenderingProjectInstances

update

*All Resource

*

None None

Request syntax

POST / HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

ProjectId

string

Yes

The project ID.

project-422bc38dfgh5eb44149f135ef76304f63b

RenderingInstanceIds

array

Yes

The instance IDs of the cloud application service.

string

No

The instance ID of the cloud application service.

render-4523e7b93ca246febd10cd12347d70c0

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

BEA5625F-8FCF-48F4-851B-CA63946DA664

SuccessInstanceCount

string

The number of successfully associated cloud application service instances.

5

FailedInstanceCount

string

The number of cloud application service instances that failed to be associated.

0

SuccessInstances

array<object>

The list of successfully associated instances.

object

The instance ID of the cloud application service and the description of the associate result.

RenderingInstanceId

string

The instance ID of the cloud application service.

render-5130e2feb23f442fb9456a3d977f03d4

Message

string

The description.

SUCCESS

FailedInstances

array<object>

The list of instances that failed to be associated.

object

The instance ID of the cloud application service and the information about the failed associate operation.

RenderingInstanceId

string

The instance ID of the cloud application service.

render-b45f28650ffe4591bf4c5c95996a428c

Message

string

The cause of the failure.

invalid id

Examples

Success response

JSON format

{
  "RequestId": "BEA5625F-8FCF-48F4-851B-CA63946DA664",
  "SuccessInstanceCount": "5",
  "FailedInstanceCount": "0",
  "SuccessInstances": [
    {
      "RenderingInstanceId": "render-5130e2feb23f442fb9456a3d977f03d4",
      "Message": "SUCCESS"
    }
  ],
  "FailedInstances": [
    {
      "RenderingInstanceId": "render-b45f28650ffe4591bf4c5c95996a428c",
      "Message": "invalid id"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.