Updated on 2024-07-05 GMT+08:00

Cloning an Application

Function

This API is used to clone an application.

Calling Method

For details, see Calling APIs.

URI

POST /v1/applications/{app_id}/duplicate

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

app_id

Yes

String

Application ID

Minimum: 32

Maximum: 32

Request Parameters

Table 2 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

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

result

AppBaseInfo object

Basic application information

status

String

Request success or failure status

Table 4 AppBaseInfo

Parameter

Type

Description

id

String

Application ID

name

String

Application name

region

String

Region information

is_disable

Boolean

Whether the application is disabled

Example Requests

https://{endpoint}/v1/applications/42cf463ae2ab4c2e9825a8932874782f/duplicate

Example Responses

Status code: 200

OK: The request is successful.

{
  "result" : {
    "id" : "a21d1951433c47a9b72cb72933d27df8",
    "name" : "Test_Copy_92131",
    "region" : "cn-north-7",
    "is_disable" : false
  },
  "status" : "success"
}

Status Codes

Status Code

Description

200

OK: The request is successful.

Error Codes

See Error Codes.