Help Center/ ModelArts/ API Reference/ Authorization Management/ One-Click Provisioning of Dependent Services
Updated on 2026-11-12 GMT+08:00

One-Click Provisioning of Dependent Services

Function

This API is used to perform one-click provisioning for dependent services, such as AOM, CCE, Cloud Eye, and SWR-EE. It is used when you use ModelArts for the first time or need to perform one-click provisioning for dependent services in batches. Before using this API, ensure that you have logged in to the system, have the required permissions, and have sufficient account balance. After one-click provisioning, the system automatically provisions the specified dependent services, which can then be used properly. If you do not have the operation permission, your account balance is insufficient, or the service fails to be provisioned, an error message is returned.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, no identity policy-based permissions are required for calling this API.

URI

POST /v1/{project_id}/services/batch-open

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Definition: Project ID. For details, see Obtaining a Project ID and Name.

Constraints: N/A

Range: N/A

Default Value: N/A

Request Parameters

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

service_list

No

Array of ServiceOpenItem objects

Definition: List of services to be enabled.

Range: N/A

Table 3 ServiceOpenItem

Parameter

Mandatory

Type

Description

service_name

Yes

String

Definition: Service code.

Constraints: N/A

Range: N/A

Default Value: N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

service_list

Array of ServiceStatusItem objects

Definition: Service enabling status.

Range: N/A

Table 5 ServiceStatusItem

Parameter

Type

Description

service_name

String

Definition: Service code.

Range: N/A

status

Boolean

Definition: Service enabling status.

Range: N/A

  • true: enabled

  • false: not enabled

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

Example Requests

{
  "service_list" : [ {
    "service_name" : "aom"
  }, {
    "service_name" : "cce"
  } ]
}

Example Responses

Status code: 200

{
  "service_list" : [ {
    "service_name" : "aom",
    "status" : true
  }, {
    "service_name" : "cce",
    "status" : false
  } ]
}

Status Codes

Status Code

Description

200

Service provisioned.

400

Error response

Error Codes

See Error Codes.