Updated on 2025-07-24 GMT+08:00

Modifying the Tenant Configuration

Function

This API is used to modify the tenant configuration. Currently, it allows you to enable OBS and SCM authorization.

Calling Method

For details, see Calling APIs.

URI

PUT /v1.0/cdn/configuration/account-configs

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition

User token, which can be obtained by calling the IAM API (value of X-Subject-Token in the response header).

Constraints

N/A

Range

N/A

Default Value

N/A

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

obs_agency_status

No

String

Definition

OBS authorization status. Enable it when an OBS private bucket is used as the origin server.

Constraints

N/A

Range

The value can only be on, indicating that OBS authorization is enabled.

Default Value

N/A

scm_agency_status

No

String

Definition

SCM authorization status. Enable it when an SCM certificate is used to configure HTTPS.

Constraints

N/A

Range

The value can only be on, indicating that SCM authorization is enabled.

Default Value

N/A

Response Parameters

Status code: 204

Request succeeded.

None

Example Requests

PUT https://cdn.myhuaweicloud.com/v1.0/cdn/configuration/account-configs

{
  "obs_agency_status" : "on",
  "scm_agency_status" : "on"
}

Example Responses

None

Status Codes

Status Code

Description

204

Request succeeded.

Error Codes

See Error Codes.