Help Center> CodeArts Deploy> API Reference> APIs> Managing Application Permissions> Configuring Authentication Levels for Applications in Batches
Updated on 2024-07-05 GMT+08:00

Configuring Authentication Levels for Applications in Batches

Function

This API is used to configure the authentication level to project-level or instance-level for applications in batches.

Calling Method

For details, see Calling APIs.

URI

PUT /v3/applications/permission-level

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token.

Minimum: 0

Maximum: 20000

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

permission_level

Yes

String

Application authentication level: instance and project.

Enumeration values:

  • project

  • instance

application_ids

Yes

Array of strings

Application ID list

Array Length: 1 - 1000

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

status

String

Request success or failure status

Example Requests

https://{endpoint}/v3/applications/permission-level

{
  "application_ids" : [ "eac65c10c5c34df1824af96ec93a9eea", "3ba2ad194ff141e39b1d3d0749242858" ],
  "project_id" : "0a38ce9ba3c740c199a0f872b6163661",
  "permission_level" : "instance"
}

Example Responses

Status code: 200

OK: The request is successful.

{
  "status" : "success"
}

Status Codes

Status Code

Description

200

OK: The request is successful.

Error Codes

See Error Codes.