diff --git a/docs/apiu/guidelines/apig-en-api-180328002.html b/docs/apiu/guidelines/apig-en-api-180328002.html index 309246c41..ecb3da14e 100644 --- a/docs/apiu/guidelines/apig-en-api-180328002.html +++ b/docs/apiu/guidelines/apig-en-api-180328002.html @@ -98,7 +98,7 @@

Type (or format) of the message body.

-

Mandatory

+

Mandatory if the request body is available.

application/json

diff --git a/docs/apiu/guidelines/apig-en-api-180328003.html b/docs/apiu/guidelines/apig-en-api-180328003.html index 6b41a7474..904d6c703 100644 --- a/docs/apiu/guidelines/apig-en-api-180328003.html +++ b/docs/apiu/guidelines/apig-en-api-180328003.html @@ -7,7 +7,7 @@

Procedure

  1. Send POST https://IAM endpoint/v3/auth/tokens to obtain the IAM endpoint and the region name in the message body.

    See Regions and Endpoints.

    A cloud service can be deployed globally or at the project level.

    -
    • A project-level service requires a project-level token. When you call the API, set auth.scope in the request body to project. The following services are at the project level: AOM, APIG, AS, BMS, CBR, CCE, Cloud Eye, CSBS, CSS, CTS, DataArts Studio, DC, DCS, DDS, Dedicated WAF, DeH, DIS, DLI, DMS, DNS, DRS, DWS, ECS, EIP, ELB, EVS, GaussDB (for MySQL), GaussDB NoSQL, IMS, KMS, LTS, ModelArts, MRS, NAT, PLAS, RDS, RTS, SDRS, SFS, SMN, SWR, VBS, VPC, VPCEP, VPN, and WAF.
    • A global service requires a global token. When you call the API, set auth.scope in the request body to domain. The following services are global ones: Anti-DDoS, IAM, OBS, TMS, and TMS.
    +
    • A project-level service requires a project-level token. When you call the API, set auth.scope in the request body to project. The following services are at the project level: AOM, APIG, AS, BMS, CBR, CCE, Cloud Eye, CSBS, CSS, CTS, DataArts Studio, DC, DCS, DDS, Dedicated WAF, DeH, DIS, DLI, DMS, DNS, DRS, DWS, ECS, EIP, ELB, EVS, GaussDB (for MySQL), GaussDB NoSQL, IMS, KMS, LTS, ModelArts, MRS, NAT, PLAS, RDS, RTS, SDRS, SFS, SMN, SWR, VBS, VPC, VPCEP, VPN, and WAF.
    • A global service requires a global token. When you call the API, set auth.scope in the request body to domain. The following services are global ones: Anti-DDoS, IAM, OBS, and TMS.
    The following shows an example of a project-level service request:

    Replace the texts in italic with actual ones. For details, see Identity and Access Management API Reference.

    Log in to the management console, click your username in the upper right corner, and choose My Credential from the drop-down list. On the My Credentials page, obtain your username, domain name, and project ID.

    @@ -19,17 +19,17 @@ ], "password": { "user": { - "name": "username", // IAM username - "password": "password", // IAM user password + "name": "username", // IAM username + "password": "password", // IAM user password "domain": { - "name": "domainname" // Name of the domain to which the IAM user belongs + "name": "domainname" // Name of the domain to which the IAM user belongs } } } }, "scope": { "project": { - "id": "0215ef11e49d4743be23dd97a1561e91" // Project ID + "id": "0215ef11e49d4743be23dd97a1561e91" // Project ID } } } @@ -44,17 +44,17 @@ ], "password": { "user": { - "name": "username", // IAM username - "password": "password", // IAM user password + "name": "username", // IAM username + "password": "password", // IAM user password "domain": { - "name": "domainname" // Name of the domain to which the IAM user belongs + "name": "domainname" // Name of the domain to which the IAM user belongs } } } }, "scope": { "domain": { - "name": "domainname" // Name of the domain to which the IAM user belongs + "name": "domainname" // Name of the domain to which the IAM user belongs } } }