diff --git a/docs/apig/api-ref/AcceptOrRejectEndpointConnections.html b/docs/apig/api-ref/AcceptOrRejectEndpointConnections.html new file mode 100644 index 00000000..c3248813 --- /dev/null +++ b/docs/apig/api-ref/AcceptOrRejectEndpointConnections.html @@ -0,0 +1,506 @@ + + +

Accepting or Rejecting a VPC Endpoint Connection

+

Function

This API is used to accept or reject a VPC endpoint connection for a gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/connections/action

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

Allow or reject connections.

+
  • receive

    +
  • reject

    +
+

Enumeration values:

+
  • receive

    +
  • reject

    +
+

endpoints

+

Yes

+

Array of strings

+

VPC endpoints.

+

Array Length: 1 - 50

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

connections

+

Array of EndpointConnection objects

+

Connections.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 EndpointConnection

Parameter

+

Type

+

Description

+

id

+

String

+

Connection ID.

+

marker_id

+

Integer

+

Connection packet ID.

+

created_at

+

String

+

Connection creation time. UTC time in the format YYYY-MM-DDTHH:MM:SSZ.

+

updated_at

+

String

+

Connection update time. UTC time in the format YYYY-MM-DDTHH:MM:SSZ.

+

domain_id

+

String

+

Domain ID.

+

status

+

String

+

Connection status.

+
  • pendingAcceptance

    +
  • creating

    +
  • accepted

    +
  • rejected

    +
  • failed

    +
  • deleting

    +
+

Enumeration values:

+
  • pendingAcceptance

    +
  • creating

    +
  • accepted

    +
  • rejected

    +
  • failed

    +
  • deleting

    +
+
+
+

Status code: 401

+ +
+ + + + + + + + + +
Table 7 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + +
Table 9 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + +
Table 11 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 13 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "connections" : [ {
+    "id" : "9cf102d8-aaa0-44cf-8222-fd6f2c073887",
+    "marker_id" : 167792784,
+    "created_at" : "2021-05-07T14:20:14Z",
+    "updated_at" : "2021-05-07T14:30:25Z",
+    "domain_id" : "c90f12a0f1ee43bc90a1f4d17bce35bc",
+    "status" : "accepted"
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Resource Not Found

+
{
+  "error_code" : "APIC.7314",
+  "error_msg" : "Endpoint service not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9007",
+  "error_msg" : "Failed to execute VCPEP request"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Resource Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AclPolicyBinding.html b/docs/apig/api-ref/AclPolicyBinding.html new file mode 100644 index 00000000..4394b707 --- /dev/null +++ b/docs/apig/api-ref/AclPolicyBinding.html @@ -0,0 +1,26 @@ + + +

Binding/Unbinding Access Control Policies

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/AclPolicyManagement.html b/docs/apig/api-ref/AclPolicyManagement.html new file mode 100644 index 00000000..f9c63414 --- /dev/null +++ b/docs/apig/api-ref/AclPolicyManagement.html @@ -0,0 +1,26 @@ + + +

Access Control Policy Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/AddEipV2.html b/docs/apig/api-ref/AddEipV2.html new file mode 100644 index 00000000..c303a23f --- /dev/null +++ b/docs/apig/api-ref/AddEipV2.html @@ -0,0 +1,351 @@ + + +

Updating or Binding an EIP to a Dedicated Gateway

+

Function

This API is used to bind an EIP to a dedicated gateway or update the EIP bound to a dedicated gateway(only available for LVS gateways).

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/eip

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

eip_id

+

No

+

String

+

EIP ID.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

eip_id

+

String

+

EIP ID.

+

eip_address

+

String

+

EIP.

+

eip_status

+

String

+

EIP status.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding an EIP to a gateway

+
{
+  "eip_id" : "85392b45-685c-4f77-b19a-14ad875b8190"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "eip_id" : "85392b45-685c-4f77-b19a-14ad875b8190",
+  "eip_address" : "xxx.xxx.xxx.xxx",
+  "eip_status" : "ACTIVE"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIC.7211",
+  "error_msg" : "Parameter value does not match the rules, parameter name[eip_id]"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AddEndpointPermissions.html b/docs/apig/api-ref/AddEndpointPermissions.html new file mode 100644 index 00000000..8a61ffbc --- /dev/null +++ b/docs/apig/api-ref/AddEndpointPermissions.html @@ -0,0 +1,396 @@ + + +

Adding Whitelist Records for a VPC Endpoint Service

+

Function

This API is used to add whitelist records in batches for a gateway's VPC endpoint service.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/permissions/batch-add

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

permissions

+

Yes

+

Array of strings

+

Whitelist records. Each whitelist record is in the format of "iam:domain::Authorized_account_ID".

+

The account ID contains 32 characters, including only letters (a–f) and digits. An asterisk (*) means that all users have access.

+

Array Length: 1 - 50

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

permissions

+

Array of strings

+

Whitelist records. Each whitelist record is in the format of "iam:domain::Authorized_account_ID".

+

The account ID contains 32 characters, including only letters (a–f) and digits. An asterisk (*) means that all users have access.

+

Array Length: 1 - 50

+
+
+

Status code: 401

+ +
+ + + + + + + + + +
Table 6 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + +
Table 8 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + +
Table 10 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 12 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Add whitelist records for a vpc endpoint service.

+
{
+  "permissions" : [ "iam:domain::7cc2018e40394f7c9692f1713e76234d" ]
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "permissions" : [ "iam:domain::930ba6b0ea64457e8ed1861e596c7a9a" ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Resource Not Found

+
{
+  "error_code" : "APIC.7314",
+  "error_msg" : "Endpoint service not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9007",
+  "error_msg" : "Failed to execute VCPEP request"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Resource Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AddEngressEipV2.html b/docs/apig/api-ref/AddEngressEipV2.html new file mode 100644 index 00000000..4fb594ac --- /dev/null +++ b/docs/apig/api-ref/AddEngressEipV2.html @@ -0,0 +1,325 @@ + + +

Enabling Public Access for a Dedicated Gateway

+

Function

This API is used to enable public access for a dedicated gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/nat-eip

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

bandwidth_size

+

Yes

+

String

+

Outbound access bandwidth.

+

Unit: Mbit/s

+

bandwidth_charging_mode

+

No

+

String

+

Billing type of the public outbound access bandwidth.

+
  • bandwidth: billed by bandwidth
+

Default: bandwidth

+

Enumeration values:

+
  • bandwidth
+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Enabling public access for a gateway

+
{
+  "bandwidth_size" : "5",
+  "bandwidth_charging_mode" : "bandwidth"
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIC.9210",
+  "error_msg" : "create cloud nat eip failed"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AddIngressEipV2.html b/docs/apig/api-ref/AddIngressEipV2.html new file mode 100644 index 00000000..57c5c4ac --- /dev/null +++ b/docs/apig/api-ref/AddIngressEipV2.html @@ -0,0 +1,366 @@ + + +

Enabling Public Inbound Access

+

Function

This API is used to enable public inbound access for a gateway that uses ELB for load balancing.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/ingress-eip

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

bandwidth_size

+

No

+

Integer

+

Public inbound access bandwidth.

+

Unit: Mbit/s

+

bandwidth_charging_mode

+

No

+

String

+

Billing type of the public inbound access bandwidth.

+
  • bandwidth: billed by bandwidth
+

Default: bandwidth

+

Enumeration values:

+
  • bandwidth
+
+
+
+

Response Parameters

Status code: 202

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

instance_id

+

String

+

Gateway ID.

+

message

+

String

+

Public access address change task.

+

job_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Enabling public inbound access for a gateway

+
{
+  "bandwidth_size" : 5,
+  "bandwidth_charging_mode" : "bandwidth"
+}
+
+

Example Responses

Status code: 202

+

Accepted

+
{
+  "instance_id" : "6a7d71827fd54572b1f31aa9548fcc81",
+  "message" : "JOB_ASSIGNED_FOR_UPDATE_0077I:The job JOB-a7c1241c33334490a3fdcd11102bcbda is assigned to the instance 6a7d71827fd54572b1f31aa9548fcc81 for running updating",
+  "job_id" : "JOB-a7c1241c33334490a3fdcd11102bcbda"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIC.9210",
+  "error_msg" : "create cloud nat eip failed"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

202

+

Accepted

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AddingBackendInstancesV2.html b/docs/apig/api-ref/AddingBackendInstancesV2.html new file mode 100644 index 00000000..910abc0b --- /dev/null +++ b/docs/apig/api-ref/AddingBackendInstancesV2.html @@ -0,0 +1,645 @@ + + +

Adding or Updating Backend Instances

+

Function

This API is used to add backend instances to a VPC channel.

+

If a backend instance with the specified address already exists, the instance information is updated. If the request body contains multiple backend instance definitions with the same address, the first definition is used.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

members

+

Yes

+

Array of MemberInfo objects

+

Backend instances.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 MemberInfo

Parameter

+

Mandatory

+

Type

+

Description

+

host

+

No

+

String

+

Backend server address.

+

This parameter is required when the member type is IP address.

+

Maximum: 64

+

weight

+

No

+

Integer

+

Weight.

+

The higher the weight is, the more requests a backend service will receive.

+

Minimum: 0

+

Maximum: 10000

+

is_backup

+

No

+

Boolean

+

Indicates whether the backend service is a standby node.

+

After you enable this function, the backend service serves as a standby node. It works only when all non-standby nodes are faulty.

+

This function is supported only when your gateway has been upgraded to the corresponding version. If your gateway does not support this function, contact technical support.

+

Default: false

+

member_group_name

+

No

+

String

+

Backend server group name. The server group facilitates backend service address modification.

+

status

+

No

+

Integer

+

Backend server status.

+
  • 1: available

    +
  • 2: unavailable

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

port

+

No

+

Integer

+

Backend server port.

+

Minimum: 0

+

Maximum: 65535

+

ecs_id

+

No

+

String

+

Backend server ID.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

+

Maximum: 255

+

ecs_name

+

No

+

String

+

Backend server name.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

Maximum: 64

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

members

+

Array of VpcMemberInfo objects

+

Cloud server list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 VpcMemberInfo

Parameter

+

Type

+

Description

+

host

+

String

+

Backend server address.

+

This parameter is required when the member type is IP address.

+

Maximum: 64

+

weight

+

Integer

+

Weight.

+

The higher the weight is, the more requests a backend service will receive.

+

Minimum: 0

+

Maximum: 10000

+

is_backup

+

Boolean

+

Indicates whether the backend service is a standby node.

+

After you enable this function, the backend service serves as a standby node. It works only when all non-standby nodes are faulty.

+

This function is supported only when your gateway has been upgraded to the corresponding version. If your gateway does not support this function, contact technical support.

+

Default: false

+

member_group_name

+

String

+

Backend server group name. The server group facilitates backend service address modification.

+

status

+

Integer

+

Backend server status.

+
  • 1: available

    +
  • 2: unavailable

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

port

+

Integer

+

Backend server port.

+

Minimum: 0

+

Maximum: 65535

+

ecs_id

+

String

+

Backend server ID.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

+

Maximum: 255

+

ecs_name

+

String

+

Backend server name.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

Maximum: 64

+

id

+

String

+

Backend instance ID.

+

vpc_channel_id

+

String

+

VPC channel ID.

+

create_time

+

String

+

Time when the backend server is added to the VPC channel.

+

member_group_id

+

String

+

Backend server group ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 201

+

Created

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2004",
+  "error_msg" : "The parameter value is outside the allowable range,parameterName:weight. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ApiGroupManagement.html b/docs/apig/api-ref/ApiGroupManagement.html new file mode 100644 index 00000000..3e9fa4cf --- /dev/null +++ b/docs/apig/api-ref/ApiGroupManagement.html @@ -0,0 +1,26 @@ + + +

API Group Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ApiImportExport.html b/docs/apig/api-ref/ApiImportExport.html new file mode 100644 index 00000000..986d6650 --- /dev/null +++ b/docs/apig/api-ref/ApiImportExport.html @@ -0,0 +1,18 @@ + + +

API Import and Export

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ApiManagement.html b/docs/apig/api-ref/ApiManagement.html new file mode 100644 index 00000000..a6968139 --- /dev/null +++ b/docs/apig/api-ref/ApiManagement.html @@ -0,0 +1,42 @@ + + +

API Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ApicInstanceManagement.html b/docs/apig/api-ref/ApicInstanceManagement.html new file mode 100644 index 00000000..aaa8443c --- /dev/null +++ b/docs/apig/api-ref/ApicInstanceManagement.html @@ -0,0 +1,48 @@ + + +

Gateway Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ApigTagManagement.html b/docs/apig/api-ref/ApigTagManagement.html new file mode 100644 index 00000000..5a156b5e --- /dev/null +++ b/docs/apig/api-ref/ApigTagManagement.html @@ -0,0 +1,16 @@ + + +

Tag Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/AppAuthoringManagement.html b/docs/apig/api-ref/AppAuthoringManagement.html new file mode 100644 index 00000000..94e0c244 --- /dev/null +++ b/docs/apig/api-ref/AppAuthoringManagement.html @@ -0,0 +1,24 @@ + + +

App Authorization Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/AssociateAppsForAppQuota.html b/docs/apig/api-ref/AssociateAppsForAppQuota.html new file mode 100644 index 00000000..9c0a096a --- /dev/null +++ b/docs/apig/api-ref/AssociateAppsForAppQuota.html @@ -0,0 +1,380 @@ + + +

Binding a Credential Quota with Credentials

+

Function

This API is used to bind a credential quota with credentials.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}/binding-apps

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_quota_id

+

Yes

+

String

+

Credential Quota ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

app_ids

+

Yes

+

Array of strings

+

Credential ID List.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

applies

+

Array of AppQuotaAppBinding objects

+

Credential and credential quota binding list.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 AppQuotaAppBinding

Parameter

+

Type

+

Description

+

app_quota_id

+

String

+

Credential quota ID.

+

app_id

+

String

+

Credential ID.

+

bound_time

+

String

+

Binding time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

{
+  "app_ids" : [ "98df09fb-d459-4cbf-83a7-2b55ca6f3d5d" ]
+}
+
+

Example Responses

Status code: 201

+

OK

+
{
+  "applies" : [ {
+    "app_id" : "98df09fb-d459-4cbf-83a7-2b55ca6f3d5d",
+    "app_quota_id" : "c900c5612dbe451bb43cbcc49cfaf2f3",
+    "bound_time" : "2020-09-19T07:43:11.948178051Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "The App quota c900c5612dbe451bb43cbcc49cfaf2f3 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AssociateCertificateV2.html b/docs/apig/api-ref/AssociateCertificateV2.html new file mode 100644 index 00000000..7dff013e --- /dev/null +++ b/docs/apig/api-ref/AssociateCertificateV2.html @@ -0,0 +1,440 @@ + + +

Adding a Certificate to a Domain Name

+

Function

When you create an API to be accessed through HTTPS, you must add an SSL certificate to the independent domain name that has been bound to the group the API belongs to.

+

This API is used to add a certificate to a specific domain name.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificate

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

domain_id

+

Yes

+

String

+

Domain ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

cert_content

+

Yes

+

String

+

Certificate content.

+

name

+

Yes

+

String

+

Certificate name. It can contain 4 to 50 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

private_key

+

Yes

+

String

+

Private key.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

url_domain

+

String

+

Custom domain name.

+

id

+

String

+

Domain ID.

+

status

+

Integer

+

CNAME resolution status.

+
  • 1: not resolved

    +
  • 2: resolving

    +
  • 3: resolved

    +
  • 4: resolution failed

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
  • 3

    +
  • 4

    +
+

min_ssl_version

+

String

+

Minimum SSL version supported.

+

is_http_redirect_to_https

+

Boolean

+

Whether to enable HTTP redirection to HTTPS. The value false means disable and true means enable. The default value is false.

+

Default: false

+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

ssl_name

+

String

+

Certificate name.

+

ssl_id

+

String

+

Certificate ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding a certificate to a domain name

+
{
+  "name" : "cert_demo",
+  "private_key" : "'-----BEGIN PRIVATE KEY-----THIS IS YOUR PRIVATE KEY-----END PRIVATE KEY-----\\n'",
+  "cert_content" : "'-----BEGIN CERTIFICATE-----THIS IS YOUR CERT CONTENT-----END CERTIFICATE-----\\n'"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "ssl_name" : "cert_demo",
+  "url_domain" : "www.example.com",
+  "ssl_id" : "a27be832f2e9441c8127fe48e3b5ac67",
+  "id" : " f6bb84ccf1c34035878aa51b7253b21c",
+  "status" : 3
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AssociateDomainV2.html b/docs/apig/api-ref/AssociateDomainV2.html new file mode 100644 index 00000000..d55cc2d0 --- /dev/null +++ b/docs/apig/api-ref/AssociateDomainV2.html @@ -0,0 +1,422 @@ + + +

Binding a Domain Name

+

Function

A user-defined domain name takes effect only after an A record set has been added. For details, see section "Adding an A Record Set" in the Domain Name Service User Guide.

+

An API group can be bound with a maximum of five domain names. After you bind a domain name to an API group, APIs in the group can be called using the domain name.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

min_ssl_version

+

No

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1

    +
  • TLSv1.2

    +
+

is_http_redirect_to_https

+

No

+

Boolean

+

Whether to enable HTTP redirection to HTTPS. The value false means disable and true means enable. The default value is false.

+

Default: false

+

url_domain

+

Yes

+

String

+

Custom domain name. It can contain a maximum of 255 characters and must comply with domain name specifications.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

url_domain

+

String

+

Custom domain name.

+

id

+

String

+

Domain ID.

+

status

+

Integer

+

CNAME resolution status.

+
  • 1: not resolved

    +
  • 2: resolving

    +
  • 3: resolved

    +
  • 4: resolution failed

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
  • 3

    +
  • 4

    +
+

min_ssl_version

+

String

+

Minimum SSL version supported.

+

is_http_redirect_to_https

+

Boolean

+

Whether to enable HTTP redirection to HTTPS. The value false means disable and true means enable. The default value is false.

+

Default: false

+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding a domain name to an API group

+
{
+  "url_domain" : "www.company.com"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "url_domain" : "www.company.com",
+  "id" : "c5e0d5ba62a34d26ad5c709ae22c1a17",
+  "status" : 3,
+  "min_ssl_version" : "TLSv1.1",
+  "is_http_redirect_to_https" : false,
+  "verified_client_certificate_enabled" : false
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2024",
+  "error_msg" : "Invalid URL domain name"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AssociateRequestThrottlingPolicyV2.html b/docs/apig/api-ref/AssociateRequestThrottlingPolicyV2.html new file mode 100644 index 00000000..ef6c916a --- /dev/null +++ b/docs/apig/api-ref/AssociateRequestThrottlingPolicyV2.html @@ -0,0 +1,374 @@ + + +

Binding a Request Throttling Policy

+

Function

The request throttling policy bound to an API will control access of all users to the API.

+

If the number of API calls within a specified period reaches the limit, subsequent access will be rejected, protecting the backend API from abnormal traffic and ensuring stable service running.

+

This API is used to bind a request throttling policy to an API that has been published in an environment. You can bind different request throttling policies to an API in different environments, but can bind only one request throttling policy to the API in each environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

strategy_id

+

Yes

+

String

+

Request throttling policy ID.

+

Minimum: 1

+

Maximum: 65

+

publish_ids

+

Yes

+

Array of strings

+

API publication record ID.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

throttle_applys

+

Array of ThrottleApiBinding objects

+

Request throttling policy binding records.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ThrottleApiBinding

Parameter

+

Type

+

Description

+

publish_id

+

String

+

API publication record ID.

+

scope

+

Integer

+

Scope of the policy.

+
  • 1: the API

    +
  • 2: a user

    +
  • 3: an app

    +
+

Currently, only "1" is supported.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
  • 3

    +
+

strategy_id

+

String

+

Request throttling policy ID.

+

apply_time

+

String

+

Binding time.

+

id

+

String

+

Binding record ID.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding a request throttling policy to an API

+
{
+  "publish_ids" : [ "40e7162dc6b94bbbbb1a60d2a24b1b0c" ],
+  "strategy_id" : "3437448ad06f4e0c91a224183116e965"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "throttle_applys" : [ {
+    "publish_id" : "40e7162dc6b94bbbbb1a60d2a24b1b0c",
+    "scope" : 1,
+    "strategy_id" : "3437448ad06f4e0c91a224183116e965",
+    "apply_time" : "2020-08-03T12:25:52.257613934Z",
+    "id" : "3e06ac135e18477e918060d3c59d6f6a"
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3005",
+  "error_msg" : "Request throttling policy 3437448ad06f4e0c91a224183116e965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AssociateSignatureKeyV2.html b/docs/apig/api-ref/AssociateSignatureKeyV2.html new file mode 100644 index 00000000..4950d5c9 --- /dev/null +++ b/docs/apig/api-ref/AssociateSignatureKeyV2.html @@ -0,0 +1,519 @@ + + +

Binding a Signature Key

+

Function

A signature key takes effect only after being bound to an API.

+

When requesting the backend service, APIG uses the signature key to cryptographically sign requests. The backend service verifies the signature to identify request sources.

+

This API is used to bind a signature key to one or more published APIs. You can bind different signature keys to an API in different environments, but can bind only one signature key to the API in each environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

sign_id

+

Yes

+

String

+

Signature key ID.

+

publish_ids

+

Yes

+

Array of strings

+

API publication record ID.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

bindings

+

Array of SignApiBindingInfo objects

+

APIs bound to the signature key.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 SignApiBindingInfo

Parameter

+

Type

+

Description

+

publish_id

+

String

+

API publication record ID.

+

api_id

+

String

+

API ID.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

binding_time

+

String

+

Binding time.

+

env_id

+

String

+

ID of the environment in which the API has been published.

+

env_name

+

String

+

Name of the environment in which the API has been published.

+

api_type

+

Integer

+

API type.

+

api_name

+

String

+

API name.

+

id

+

String

+

Binding record ID.

+

api_remark

+

String

+

API description.

+

sign_id

+

String

+

Signature key ID.

+

sign_name

+

String

+

Signature key name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • DELETE

    +
  • PUT

    +
  • PATCH

    +
  • HEAD

    +
  • OPTIONS

    +
  • ANY

    +
+

sign_key

+

String

+

Signature key.

+
  • hmac: The value contains 8 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • basic: The value contains 4 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter. If not specified, a key is automatically generated.

    +
  • public_key: The value contains 8 to 512 characters, including letters, digits, and special characters (_-+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
  • aes: The value contains 16 characters if the aes-128-cfb algorithm is used, or 32 characters if the aes-256-cfb algorithm is used. Letters, digits, and special characters (_-!@#$%+/=) are allowed. It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
+

sign_secret

+

String

+

Signature secret.

+
  • hmac: The value contains 16 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a value is automatically generated.

    +
  • basic: The value contains 8 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a value is automatically generated.

    +
  • public_key: The value contains 15 to 2048 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a value is automatically generated.

    +
  • aes: The value contains 16 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a value is automatically generated.

    +
+

sign_type

+

String

+

Signature key type.

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+

To use a basic signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

To use a public_key signature key, ensure that the public_key feature has been configured for your gateway. For details, see "Appendix" > "Supported Features". If your gateway does not support this feature, contact technical support to enable it.

+

To use an AES signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

Enumeration values:

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding a signature key to a published API

+
{
+  "sign_id" : "0b0e8f456b8742218af75f945307173c",
+  "publish_ids" : [ "40e7162dc6b94bbbbb1a60d2a24b1b0c" ]
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "bindings" : [ {
+    "api_id" : "5f918d104dc84480a75166ba99efff21",
+    "sign_secret" : "dc0************2b3",
+    "group_name" : "api_group_001",
+    "sign_id" : "0b0e8f456b8742218af75f945307173c",
+    "sign_key" : "a071a20d460a4f639a636c3d7e3d8163",
+    "binding_time" : "2020-08-03T04:00:11.638167852Z",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "sign_name" : "signature_demo",
+    "api_type" : 1,
+    "api_name" : "Api_http",
+    "id" : "25082bd52f74442bb1d273993d567938",
+    "api_remark" : "Web backend API"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:sign_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3017",
+  "error_msg" : "Signature key 0b0e8f456b8742218af75f945307173c does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AsynchronousTaskManagement.html b/docs/apig/api-ref/AsynchronousTaskManagement.html new file mode 100644 index 00000000..3508668b --- /dev/null +++ b/docs/apig/api-ref/AsynchronousTaskManagement.html @@ -0,0 +1,20 @@ + + +

Asynchronous Task Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/AttachApiToPlugin.html b/docs/apig/api-ref/AttachApiToPlugin.html new file mode 100644 index 00000000..64765c9d --- /dev/null +++ b/docs/apig/api-ref/AttachApiToPlugin.html @@ -0,0 +1,471 @@ + + +

Binding a Plug-in to APIs

+

Function

This API is used to bind a plug-in to APIs.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/attach

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

plugin_id

+

Yes

+

String

+

Plug-in ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

env_id

+

Yes

+

String

+

ID of the environment for binding to the API.

+

api_ids

+

Yes

+

Array of strings

+

IDs of bound APIs.

+

Array Length: 1 - 500

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

attached_plugins

+

Array of PluginApiAttachInfo objects

+

Bound plug-ins.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 PluginApiAttachInfo

Parameter

+

Type

+

Description

+

plugin_attach_id

+

String

+

Plug-in binding record ID.

+

plugin_id

+

String

+

Plug-in ID.

+

plugin_name

+

String

+

Plug-in name. Start with a letter, and include only letters, digits, hyphens (-), and underscores(_). (3 to 255 characters)

+

plugin_type

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.

    +
  • set_resp_headers: HTTP response header management.

    +
  • kafka_log: Kafka log push.

    +
  • breaker: Circuit breaker.

    +
  • rate_limit: Request throttling.

    +
  • third_auth: Third-party authentication.

    +
+

Enumeration values:

+
  • cors

    +
  • set_resp_headers

    +
  • kafka_log

    +
  • breaker

    +
  • rate_limit

    +
  • third_auth

    +
+

plugin_scope

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global

    +
+

env_id

+

String

+

ID of the environment for binding to the API.

+

env_name

+

String

+

Name of the environment for binding to the API.

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

attached_time

+

String

+

Binding time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding an API with plug-ins

+
{
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "api_ids" : [ "8aa097b00e9843efabc9c593d11b769d" ]
+}
+
+

Example Responses

Status code: 201

+

OK

+
{
+  "attached_plugins" : [ {
+    "plugin_attach_id" : "8aa097b00e9843efacb9c593d11b769e",
+    "plugin_id" : "5b729aa252764739b3s237ef0d66dc63",
+    "plugin_name" : "CORS",
+    "plugin_type" : "cors",
+    "plugin_scope" : "global",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "api_id" : "8aa097b00e9843efabc9c593d11b769d",
+    "api_name" : "api_name",
+    "attached_time" : "2022-11-02T12:31:23.353Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3068",
+  "error_msg" : "Plugin b294018ee0554156a875b3513e02e5b9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/AttachPluginToApi.html b/docs/apig/api-ref/AttachPluginToApi.html new file mode 100644 index 00000000..6791c529 --- /dev/null +++ b/docs/apig/api-ref/AttachPluginToApi.html @@ -0,0 +1,471 @@ + + +

Binding an API with Plug-ins

+

Function

This API is used to bind an API with plug-ins.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/plugins/attach

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

env_id

+

Yes

+

String

+

ID of the environment for binding to the API.

+

plugin_ids

+

Yes

+

Array of strings

+

IDs of bound plug-ins.

+

Array Length: 1 - 500

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

attached_plugins

+

Array of PluginApiAttachInfo objects

+

Bound plug-ins.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 PluginApiAttachInfo

Parameter

+

Type

+

Description

+

plugin_attach_id

+

String

+

Plug-in binding record ID.

+

plugin_id

+

String

+

Plug-in ID.

+

plugin_name

+

String

+

Plug-in name. Start with a letter, and include only letters, digits, hyphens (-), and underscores(_). (3 to 255 characters)

+

plugin_type

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.

    +
  • set_resp_headers: HTTP response header management.

    +
  • kafka_log: Kafka log push.

    +
  • breaker: Circuit breaker.

    +
  • rate_limit: Request throttling.

    +
  • third_auth: Third-party authentication.

    +
+

Enumeration values:

+
  • cors

    +
  • set_resp_headers

    +
  • kafka_log

    +
  • breaker

    +
  • rate_limit

    +
  • third_auth

    +
+

plugin_scope

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global

    +
+

env_id

+

String

+

ID of the environment for binding to the API.

+

env_name

+

String

+

Name of the environment for binding to the API.

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

attached_time

+

String

+

Binding time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding a plug-in to APIs

+
{
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "plugin_ids" : [ "5b729aa252764739b3s237ef0d66dc63" ]
+}
+
+

Example Responses

Status code: 201

+

OK

+
{
+  "attached_plugins" : [ {
+    "plugin_attach_id" : "8aa097b00e9843efacb9c593d11b769e",
+    "plugin_id" : "5b729aa252764739b3s237ef0d66dc63",
+    "plugin_name" : "CORS",
+    "plugin_type" : "cors",
+    "plugin_scope" : "global",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "api_id" : "8aa097b00e9843efabc9c593d11b769d",
+    "api_name" : "api_name",
+    "attached_time" : "2022-11-02T12:31:23.353Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3068",
+  "error_msg" : "Plugin b294018ee0554156a875b3513e02e5b9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchAssociateCertsV2.html b/docs/apig/api-ref/BatchAssociateCertsV2.html new file mode 100644 index 00000000..af2ef188 --- /dev/null +++ b/docs/apig/api-ref/BatchAssociateCertsV2.html @@ -0,0 +1,337 @@ + + +

Binding a Domain Name with SSL Certificates

+

Function

This API is used to bind a domain name with SSL certificates. Currently, only one certificate ID can be specified in certificate_ids.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificates/attach

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

domain_id

+

Yes

+

String

+

Domain ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

certificate_ids

+

Yes

+

Array of strings

+

Certificate IDs.

+

verified_client_certificate_enabled

+

No

+

Boolean

+

Whether to enable client certificate verification. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding a domain name with SSL certificates

+
{
+  "certificate_ids" : [ "a27be832f2e9441c8127fe48e3b5ac67" ]
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:domain_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchAssociateDomainsV2.html b/docs/apig/api-ref/BatchAssociateDomainsV2.html new file mode 100644 index 00000000..61c5258d --- /dev/null +++ b/docs/apig/api-ref/BatchAssociateDomainsV2.html @@ -0,0 +1,354 @@ + + +

Binding an SSL Certificate to a Domain Name

+

Function

This API is used to bind an SSL certificate to a domain name.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/certificates/{certificate_id}/domains/attach

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

certificate_id

+

Yes

+

String

+

Certificate ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

domains

+

Yes

+

Array of AttachOrDetachDomainInfo objects

+

Domain names the certificate is bound to or unbound from.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 AttachOrDetachDomainInfo

Parameter

+

Mandatory

+

Type

+

Description

+

domain

+

Yes

+

String

+

Domain name.

+

instance_ids

+

No

+

Array of strings

+

Gateway IDs.

+

verified_client_certificate_enabled

+

No

+

Boolean

+

Whether to enable client certificate verification. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding an SSL certificate to a domain name

+
{
+  "domains" : [ {
+    "domain" : "apigtest.example.com",
+    "instance_ids" : [ "f0fa1789-3b76-433b-a787-9892951c620e", "7d39549681c54d968ec2910da9da95cd" ]
+  } ]
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:domain_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchCreateOrDeleteInstanceTags.html b/docs/apig/api-ref/BatchCreateOrDeleteInstanceTags.html new file mode 100644 index 00000000..b5d36c64 --- /dev/null +++ b/docs/apig/api-ref/BatchCreateOrDeleteInstanceTags.html @@ -0,0 +1,304 @@ + + +

Adding or Deleting Tags of a Gateway

+

Function

This API is used to add tags to a gateway or delete the tags of a gateway.

+
+

Constraints

Only users who have been authorized with a policy containing actions apig:instances:get, apig:instanceTags:create, and apig:instanceTags:delete can call this API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/instance-tags/action

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

Operation: create and delete.

+

Enumeration values:

+
  • create

    +
  • delete

    +
+

tags

+

Yes

+

Array of TmsKeyValue objects

+

Tags.

+

A maximum of 20 tags can be created for a gateway.

+

Array Length: 0 - 20

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 TmsKeyValue

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

Key.

+

Include UTF-8 letters, digits, spaces, or special characters (_.:=+-@).

+

Do not start with _sys_ because it is a system label.

+

Minimum: 1

+

Maximum: 128

+

value

+

No

+

String

+

Value.

+

You can enter letters, digits, and spaces or other special characters (_.:/=+-@) in UTF-8 format.

+

Minimum: 0

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchDeleteAclV2.html b/docs/apig/api-ref/BatchDeleteAclV2.html new file mode 100644 index 00000000..68979140 --- /dev/null +++ b/docs/apig/api-ref/BatchDeleteAclV2.html @@ -0,0 +1,412 @@ + + +

Deleting Multiple Access Control Policies

+

Function

This API is used to delete multiple access control policies.

+

Access control policies bound to APIs cannot be deleted.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/acls

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

The value must be delete.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

acls

+

No

+

Array of strings

+

IDs of the access control policies to be deleted.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

success_count

+

Integer

+

Number of access control policies that have been successfully deleted.

+

failure

+

Array of AclBatchResultFailureResp objects

+

Error message and access control policies that fail to be deleted.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 AclBatchResultFailureResp

Parameter

+

Type

+

Description

+

acl_id

+

String

+

ID of an access control policy that fails to be deleted.

+

acl_name

+

String

+

Name of the access control policy.

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Deleting multiple access control policies

+
{
+  "acls" : [ "7eb619ecf2a24943b099833cd24a01ba", "3a68d39f115d4c128fccd6f624ea6109" ]
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "failure" : [ {
+    "acl_id" : "7eb619ecf2a24943b099833cd24a01ba",
+    "acl_name" : "acl_demo",
+    "error_code" : "APIG.3447",
+    "error_msg" : "The access control policy has been bound to APIs"
+  } ],
+  "success_count" : 1
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value: parameter action should be \\\"delete\\\""
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchDeleteApiAclBindingV2.html b/docs/apig/api-ref/BatchDeleteApiAclBindingV2.html new file mode 100644 index 00000000..8fb466a3 --- /dev/null +++ b/docs/apig/api-ref/BatchDeleteApiAclBindingV2.html @@ -0,0 +1,417 @@ + + +

Unbinding Access Control Policies

+

Function

This API is used to unbind multiple access control policies from APIs.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

The value must be delete.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

acl_bindings

+

No

+

Array of strings

+

IDs of the access control policy binding records to be canceled.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

success_count

+

Integer

+

Number of access control policies that have been successfully unbound.

+

failure

+

Array of AclBindingBatchFailure objects

+

Error message and access control policies that fail to be unbound.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 AclBindingBatchFailure

Parameter

+

Type

+

Description

+

bind_id

+

String

+

ID of an access control policy binding record that fails to be canceled.

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+

api_id

+

String

+

ID of an API from which unbinding fails.

+

api_name

+

String

+

Name of the API from which unbinding fails.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Unbinding multiple access control policies from APIs

+
{
+  "acl_bindings" : [ "332c5db1458a477b89b2ea741fec94a3" ]
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "failure" : [ {
+    "bind_id" : "3a68d39f115d4c128fccd6f624ea6109",
+    "error_code" : "APIG.3010",
+    "error_msg" : "The access control policy binding record does not exist"
+  } ],
+  "success_count" : 1
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value: parameter action should be \\\"delete\\\""
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchDisableMembers.html b/docs/apig/api-ref/BatchDisableMembers.html new file mode 100644 index 00000000..7b68c0af --- /dev/null +++ b/docs/apig/api-ref/BatchDisableMembers.html @@ -0,0 +1,319 @@ + + +

Disabling Backend Servers

+

Function

This API is used to disable backend servers of a VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/batch-disable

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

member_ids

+

No

+

Array of strings

+

Backend server IDs.

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Disabling backend servers of a VPC channel

+
{
+  "member_ids" : [ "b20a5be94ded40cc8f2872ea3005cfb7", "5f918d104dc84480a75166ba99efff21" ]
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchDisassociateCertsV2.html b/docs/apig/api-ref/BatchDisassociateCertsV2.html new file mode 100644 index 00000000..fc6d2ec9 --- /dev/null +++ b/docs/apig/api-ref/BatchDisassociateCertsV2.html @@ -0,0 +1,337 @@ + + +

Unbinding a Domain Name's SSL Certificates

+

Function

This API is used to unbind a domain name's SSL certificates. Currently, only one certificate ID can be specified in certificate_ids.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificates/detach

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

domain_id

+

Yes

+

String

+

Domain ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

certificate_ids

+

Yes

+

Array of strings

+

Certificate IDs.

+

verified_client_certificate_enabled

+

No

+

Boolean

+

Whether to enable client certificate verification. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Unbinding a domain name's SSL certificates

+
{
+  "certificate_ids" : [ "a27be832f2e9441c8127fe48e3b5ac67" ]
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:domain_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchDisassociateDomainsV2.html b/docs/apig/api-ref/BatchDisassociateDomainsV2.html new file mode 100644 index 00000000..01a8b1ab --- /dev/null +++ b/docs/apig/api-ref/BatchDisassociateDomainsV2.html @@ -0,0 +1,354 @@ + + +

Unbinding an SSL Certificate from a Domain Name

+

Function

This API is used to unbind an SSL certificate from a domain name.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/certificates/{certificate_id}/domains/detach

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

certificate_id

+

Yes

+

String

+

Certificate ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

domains

+

Yes

+

Array of AttachOrDetachDomainInfo objects

+

Domain names the certificate is bound to or unbound from.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 AttachOrDetachDomainInfo

Parameter

+

Mandatory

+

Type

+

Description

+

domain

+

Yes

+

String

+

Domain name.

+

instance_ids

+

No

+

Array of strings

+

Gateway IDs.

+

verified_client_certificate_enabled

+

No

+

Boolean

+

Whether to enable client certificate verification. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Unbinding an SSL certificate from a domain name

+
{
+  "domains" : [ {
+    "domain" : "apigtest.example.com",
+    "instance_ids" : [ "f0fa1789-3b76-433b-a787-9892951c620e", "7d39549681c54d968ec2910da9da95cd" ]
+  } ]
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:domain_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchDisassociateThrottlingPolicyV2.html b/docs/apig/api-ref/BatchDisassociateThrottlingPolicyV2.html new file mode 100644 index 00000000..942c4a41 --- /dev/null +++ b/docs/apig/api-ref/BatchDisassociateThrottlingPolicyV2.html @@ -0,0 +1,379 @@ + + +

Unbinding Request Throttling Policies

+

Function

This API is used to unbind request throttling policies from APIs.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

The value must be delete.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

throttle_bindings

+

No

+

Array of strings

+

IDs of the request throttling policy binding records to be canceled.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

success_count

+

Integer

+

Number of request throttling policies that have been successfully unbound.

+

failure

+

Array of ThrottleBindingBatchFailure objects

+

Error message and request throttling policies that fail to be unbound.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 ThrottleBindingBatchFailure

Parameter

+

Type

+

Description

+

bind_id

+

String

+

ID of a request throttling policy binding record that fails to be canceled.

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+

api_id

+

String

+

ID of an API from which unbinding fails.

+

api_name

+

String

+

Name of the API from which unbinding fails.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Unbinding request throttling policies from APIs

+
{
+  "throttle_bindings" : [ "6a6a75b425df416cbdcd7821da30be8d", "b11e5970f732440dbea647580647d57f" ]
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "failure" : [ {
+    "bind_id" : "b11e5970f732440dbea647580647d57f",
+    "error_code" : "APIG.3012",
+    "error_msg" : "The request throttling policy binding record does not exist"
+  } ],
+  "success_count" : 1
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "parameter action should be \\\"delete\\\""
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchEnableMembers.html b/docs/apig/api-ref/BatchEnableMembers.html new file mode 100644 index 00000000..31cb6786 --- /dev/null +++ b/docs/apig/api-ref/BatchEnableMembers.html @@ -0,0 +1,319 @@ + + +

Enabling Backend Servers

+

Function

This API is used to enable backend servers of a VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/batch-enable

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

member_ids

+

No

+

Array of strings

+

Backend server IDs.

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Enabling backend servers of a VPC channel

+
{
+  "member_ids" : [ "b20a5be94ded40cc8f2872ea3005cfb7", "5f918d104dc84480a75166ba99efff21" ]
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/BatchPublishOrOfflineApiV2.html b/docs/apig/api-ref/BatchPublishOrOfflineApiV2.html new file mode 100644 index 00000000..ff80959a --- /dev/null +++ b/docs/apig/api-ref/BatchPublishOrOfflineApiV2.html @@ -0,0 +1,474 @@ + + +

Publishing APIs or Taking APIs Offline

+

Function

This API is used to publish multiple APIs in an environment or to remove multiple APIs from the environment in which they have been published.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/apis/publish

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+
  • online: publish APIs

    +
  • offline: take APIs offline

    +
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

apis

+

No

+

Array of strings

+

IDs of APIs to be published or taken offline. A maximum of 1000 APIs are allowed at a time. Either apis or group_id must be specified.

+

env_id

+

Yes

+

String

+

Environment ID.

+

group_id

+

No

+

String

+

API group ID. Either apis or group_id must be specified.

+

remark

+

No

+

String

+

Description of the publication.

+

It cannot exceed 255 characters.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

success

+

Array of PublishResp objects

+

Message for successful API publication or taking offline.

+

failure

+

Array of BatchFailure objects

+

Error message and APIs that fail to be published or taken offline.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 PublishResp

Parameter

+

Type

+

Description

+

publish_id

+

String

+

Publication record ID.

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

env_id

+

String

+

ID of the environment in which the API has been published.

+

remark

+

String

+

Description about the publication.

+

publish_time

+

String

+

Publication time.

+

version_id

+

String

+

API version currently in use.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 7 BatchFailure

Parameter

+

Type

+

Description

+

api_id

+

String

+

ID of an API that fails to be published or taken offline.

+

api_name

+

String

+

Name of an API that fails to be published or taken offline.

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Publishing APIs

+
{
+  "apis" : [ "3a955b791bd24b1c9cd94c745f8d1aad", "abd9c4b2ff974888b0ba79be7e6b2762" ],
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "remark" : "Published to the production environment"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "success" : [ {
+    "publish_id" : "9f27d1dc4f4242a9abf88e563dbfc33d",
+    "api_id" : "3a955b791bd24b1c9cd94c745f8d1aad",
+    "api_name" : "Api_mock",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "version_id" : "632b2c9e022941969af9a1d45735ae2c",
+    "remark" : "Published to the production environment",
+    "publish_time" : "2020-08-03T03:01:31.26522821Z"
+  } ],
+  "failure" : [ {
+    "api_id" : "abd9c4b2ff974888b0ba79be7e6b2762",
+    "error_code" : "APIG.3002",
+    "error_msg" : "Api abd9c4b2ff974888b0ba79be7e6b2762 not found"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value: parameter action should be \\\"online\\\" or \\\"offline\\\""
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CancelingAuthorizationV2.html b/docs/apig/api-ref/CancelingAuthorizationV2.html new file mode 100644 index 00000000..0545bf2e --- /dev/null +++ b/docs/apig/api-ref/CancelingAuthorizationV2.html @@ -0,0 +1,293 @@ + + +

Canceling Authorization

+

Function

This API is used to cancel the authorization of an app for accessing an API. After this operation, the app can no longer call the API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/app-auths/{app_auth_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_auth_id

+

Yes

+

String

+

Authorization record ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3009",
+  "error_msg" : "The app authorization record does not exist,id:dd29b33ae4394e3b924b582c6b40880b"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ChangeApiVersionV2.html b/docs/apig/api-ref/ChangeApiVersionV2.html new file mode 100644 index 00000000..00c84954 --- /dev/null +++ b/docs/apig/api-ref/ChangeApiVersionV2.html @@ -0,0 +1,391 @@ + + +

Switching the Version of an API

+

Function

This API is used to switch the version of an API. A version is generated based on the current definition of an API when the API is published. The version records the definition and status of the API when it is published.

+

You can switch between multiple versions of an API, but only one version of an API takes effect in the same environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/apis/publish/{api_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

version_id

+

Yes

+

String

+

API version ID.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

publish_id

+

String

+

Publication record ID.

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

env_id

+

String

+

ID of the environment in which the API has been published.

+

remark

+

String

+

Description about the publication.

+

publish_time

+

String

+

Publication time.

+

version_id

+

String

+

API version currently in use.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Switching an API to a specified version

+
{
+  "version_id" : "ee1a5a38d3d3493abf1dc4ed6cacfa0b"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "publish_id" : "9191cdb430724d4b8586ed7f1b962ca2",
+  "api_id" : "5f918d104dc84480a75166ba99efff21",
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "version_id" : "ee1a5a38d3d3493abf1dc4ed6cacfa0b",
+  "publish_time" : "2020-08-03T03:27:49.483295655Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2000",
+  "error_msg" : "Parameter error: Serialization error: unexpected end of JSON input"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3022",
+  "error_msg" : "The API version does not exist,id:ee1a5a38d3d3493abf1dc4ed6cacfa0b"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CheckApiGroupsV2.html b/docs/apig/api-ref/CheckApiGroupsV2.html new file mode 100644 index 00000000..45a8d693 --- /dev/null +++ b/docs/apig/api-ref/CheckApiGroupsV2.html @@ -0,0 +1,319 @@ + + +

Verifying an API Group Name

+

Function

This API is used to check whether the API group name exists.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/check

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

group_name

+

Yes

+

String

+

Name of the API group to be verified.

+

roma_app_id

+

No

+

String

+

Integration application ID.

+

This is not supported currently.

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

{
+  "group_name" : "ApiGroup_demo"
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3201",
+  "error_msg" : "The API group name already exists"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CheckApisV2.html b/docs/apig/api-ref/CheckApisV2.html new file mode 100644 index 00000000..29e2237f --- /dev/null +++ b/docs/apig/api-ref/CheckApisV2.html @@ -0,0 +1,403 @@ + + +

Verifying the API Definition

+

Function

This API is used to verify the API definition, that is, whether the API path or name already exists.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/apis/check

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

API name.

+

This parameter is mandatory when type is set to name.

+

req_method

+

No

+

String

+

Request method.

+

This parameter is mandatory when type is set to path.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

No

+

String

+

Access address of the API.

+

This parameter is mandatory when type is set to path.

+

match_mode

+

No

+

String

+

API matching mode:

+
  • SWA: Prefix match

    +
  • NORMAL: Exact match

    +
+

This parameter is mandatory when type is set to path.

+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

group_id

+

No

+

String

+

Group ID.

+

This parameter is mandatory for checking for duplicate API definitions in the group.

+

roma_app_id

+

No

+

String

+

Integration application ID.

+

This is not supported currently.

+

api_id

+

No

+

String

+

ID of the API to be compared.

+

type

+

Yes

+

String

+

Verification type:

+
  • path: path type

    +
  • name: name type

    +
+

Enumeration values:

+
  • path

    +
  • name

    +
+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

{
+  "type" : "name",
+  "name" : "api_demo"
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3202",
+  "error_msg" : "The API name already exists, api_name:api_demo"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CheckAppV2.html b/docs/apig/api-ref/CheckAppV2.html new file mode 100644 index 00000000..4b4a11ea --- /dev/null +++ b/docs/apig/api-ref/CheckAppV2.html @@ -0,0 +1,334 @@ + + +

Verifying an App

+

Function

This API is provided for users (excluding app owner) to check whether an app exists. Only the basic information, such as ID, name, and remark, of the app is displayed.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apps/validation/{app_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

Name.

+

remark

+

String

+

Description.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "name" : "app_demo",
+  "remark" : "Demo app",
+  "id" : "356de8eb7a8742168586e5daf5339965"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ConfigManagement.html b/docs/apig/api-ref/ConfigManagement.html new file mode 100644 index 00000000..1b350d58 --- /dev/null +++ b/docs/apig/api-ref/ConfigManagement.html @@ -0,0 +1,18 @@ + + +

Configuration Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/CreateAclStrategyV2.html b/docs/apig/api-ref/CreateAclStrategyV2.html new file mode 100644 index 00000000..2c862d9a --- /dev/null +++ b/docs/apig/api-ref/CreateAclStrategyV2.html @@ -0,0 +1,432 @@ + + +

Creating an Access Control Policy

+

Function

This API is used to create an access control policy to allow or deny API access from certain IP addresses or tenants. The acl_value value of a domain is a tenant name rather than a domain name (such as www.exampleDomain.com).

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/acls

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

acl_name

+

Yes

+

String

+

Access control policy name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

acl_type

+

Yes

+

String

+

Type.

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

Enumeration values:

+
  • PERMIT

    +
  • DENY

    +
+

acl_value

+

Yes

+

String

+

One or more objects from which the access will be controlled. Separate multiple objects with commas.

+
  • If entity_type is set to IP, enter up to 100 IP addresses.

    +
  • If entity_type is set to DOMAIN, enter account names. Each account name can contain up to 64 ASCII characters except commas (,). Do not use only digits. The total length cannot exceed 1024 characters.

    +
  • If entity_type is set to DOMAIN_ID, enter account IDs. For details about how to obtain an account ID, see "Appendix" > "Obtaining an Account Name and Account ID" in this document.

    +
+

entity_type

+

Yes

+

String

+

Object type.

+
  • IP: IP address.

    +
  • DOMAIN: Account name.

    +
  • DOMAIN_ID: Account ID.

    +
+

Enumeration values:

+
  • IP

    +
  • DOMAIN

    +
  • DOMAIN_ID

    +
+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

acl_name

+

String

+

Name.

+

acl_type

+

String

+

Type.

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

acl_value

+

String

+

Access control objects.

+

entity_type

+

String

+

Object type.

+
  • IP

    +
  • DOMAIN

    +
  • DOMAIN_ID

    +
+

id

+

String

+

ID.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating an access control policy to allow access from specified IP addresses

+
{
+  "acl_name" : "acl_demo",
+  "acl_type" : "PERMIT",
+  "acl_value" : "192.168.1.5,192.168.10.1",
+  "entity_type" : "IP"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "id" : "7eb619ecf2a24943b099833cd24a01ba",
+  "acl_name" : "acl_demo",
+  "entity_type" : "IP",
+  "acl_type" : "PERMIT",
+  "acl_value" : "192.168.1.5,192.168.10.1",
+  "update_time" : "2020-08-04T08:42:43.461276217Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:acl_type. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateAnAppV2.html b/docs/apig/api-ref/CreateAnAppV2.html new file mode 100644 index 00000000..bcc13c2c --- /dev/null +++ b/docs/apig/api-ref/CreateAnAppV2.html @@ -0,0 +1,430 @@ + + +

Creating an App

+

Function

An app is an identity for accessing an API. An app can call the APIs to which it has been authorized.

+

This API is used to create an app.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/apps

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

App name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

remark

+

No

+

String

+

App description. It cannot exceed 255 characters.

+

app_key

+

No

+

String

+

AppKey, which can contain 8 to 200 characters, starting with a letter or digit. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

app_secret

+

No

+

String

+

Secret, which can contain 8 to 128 characters, starting with a letter or digit. Only letters, digits, and the following special characters are allowed: _-!@#$%

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

Name.

+

remark

+

String

+

Description.

+

creator

+

String

+

Creator of the app.

+
  • USER: The app is created by an API user.

    +
  • MARKET: The app is allocated by KooGallery.

    +
+

The value MARKET is currently not supported.

+

Enumeration values:

+
  • USER

    +
  • MARKET

    +
+

update_time

+

String

+

Update time.

+

app_key

+

String

+

AppKey.

+

app_secret

+

String

+

AppSecret.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

app_type

+

String

+

App type.

+
  • apig: APIG app, which is not recommended.

    +
  • roma: ROMA integration application.

    +
+

The default value is apig. Other types are not supported currently.

+

Enumeration values:

+
  • apig

    +
  • roma

    +
+

roma_app_type

+

String

+

ROMA application type.

+
  • subscription: subscription application

    +
  • integration: integration application

    +
+

Currently, this parameter is not supported.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating an app

+
{
+  "name" : "app_demo",
+  "remark" : "Demo app"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "creator" : "USER",
+  "update_time" : "2020-08-03T13:09:13.122211909Z",
+  "app_key" : "ee8f878c252747028f07eb116c2cd91b",
+  "name" : "app_demo",
+  "remark" : "Demo app",
+  "id" : "356de8eb7a8742168586e5daf5339965",
+  "app_secret" : "416************ab8",
+  "register_time" : "2020-08-03T13:09:13.122211659Z",
+  "status" : 1,
+  "app_type" : "apig"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateApiAclBindingV2.html b/docs/apig/api-ref/CreateApiAclBindingV2.html new file mode 100644 index 00000000..ba8d18fc --- /dev/null +++ b/docs/apig/api-ref/CreateApiAclBindingV2.html @@ -0,0 +1,399 @@ + + +

Binding an Access Control Policy to an API

+

Function

This API is used to bind an access control policy to a specified API.

+

You can bind different access control policies to an API in different environments, but you can bind only one access control policy to the API in each environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

acl_id

+

Yes

+

String

+

Access control policy ID.

+

publish_ids

+

Yes

+

Array of strings

+

API publication record ID.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

acl_bindings

+

Array of AclApiBindingInfo objects

+

Access control policy binding records.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 AclApiBindingInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Binding record ID.

+

api_id

+

String

+

API ID.

+

env_id

+

String

+

Environment ID.

+

acl_id

+

String

+

Access control policy ID.

+

create_time

+

String

+

Binding time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Binding an access control policy to an API

+
{
+  "acl_id" : "7eb619ecf2a24943b099833cd24a01ba",
+  "publish_ids" : [ "40e7162dc6b94bbbbb1a60d2a24b1b0c" ]
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "acl_bindings" : [ {
+    "id" : "332c5db1458a477b89b2ea741fec94a3",
+    "api_id" : "5f918d104dc84480a75166ba99efff21",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "acl_id" : "7eb619ecf2a24943b099833cd24a01ba",
+    "create_time" : "2020-08-04T08:58:03.001228747Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:acl_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3006",
+  "error_msg" : "Access control policy 7eb619ecf2a24943b099833cd24a01ba does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateApiGroupV2.html b/docs/apig/api-ref/CreateApiGroupV2.html new file mode 100644 index 00000000..52c54c56 --- /dev/null +++ b/docs/apig/api-ref/CreateApiGroupV2.html @@ -0,0 +1,551 @@ + + +

Creating an API Group

+

Function

This API is used to create an API group. An API group is an API management unit and the entry to a service. A subdomain name is returned as the access entry when an API group is created. APIs in an API group should be correlated with each other.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

API group name.

+

The value can contain 3 to 255 characters, including letters, digits, and special characters (-_./():). It must start with a letter or digit.

+

Minimum: 3

+

Maximum: 255

+

remark

+

No

+

String

+

API group description.

+

Maximum: 1000

+

roma_app_id

+

No

+

String

+

ID of the integration application to which the API group belongs.

+

This parameter is required when the group version is V2.

+

Currently, this parameter is not supported.

+

version

+

No

+

String

+

Group version.

+
  • V1: global group
  • V2: application-level group
+

The default value is V1. This parameter is not supported currently.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

API group name.

+

status

+

Integer

+

Status.

+
  • 1: valid
+

Enumeration values:

+
  • 1
+

sl_domain

+

String

+

Subdomain name that APIG automatically allocates to the API group.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Last modification time.

+

on_sell_status

+

Integer

+

Indicates whether the API group has been listed on KooGallery.

+
  • 1: listed
  • 2: not listed
  • 3: under review
+

Not supported currently.

+

url_domains

+

Array of UrlDomain objects

+

Independent domain names bound to the API group.

+

sl_domain_access_enabled

+

Boolean

+

Whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+

sl_domains

+

Array of strings

+

Automatically allocated subdomain names.

+

remark

+

String

+

Description.

+

call_limits

+

Integer

+

Total number of times all APIs in the API group can be accessed. Consider the payload capacity of the backend service when setting this parameter. By default, there is no limit on the number of API calls.

+

Currently, this parameter is not supported.

+

time_interval

+

Integer

+

Period of time for limiting the number of API calls.

+

Currently, this parameter is not supported.

+

time_unit

+

String

+

Time unit for limiting the number of API calls.

+

Currently, this parameter is not supported.

+

is_default

+

Integer

+

Indicates whether the API group is the default group.

+
  • 1: Yes
  • 2: No
+

version

+

String

+

Group version.

+
  • V1: global group
  • V2: application-level group
+

The default value is V1. This parameter is not supported currently.

+

roma_app_id

+

String

+

ID of the integration application to which the API group belongs.

+

This parameter is required when the group version is V2.

+

Currently, this parameter is not supported.

+

roma_app_name

+

String

+

Name of the integration application to which the API group belongs.

+

Currently, this parameter is not supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 UrlDomain

Parameter

+

Type

+

Description

+

id

+

String

+

Domain ID.

+

domain

+

String

+

Domain name.

+

cname_status

+

Integer

+

CNAME resolution status of the domain name.

+
  • 1: not resolved
  • 2: resolving
  • 3: resolved
  • 4: resolution failed
+

ssl_id

+

String

+

SSL certificate ID.

+

ssl_name

+

String

+

SSL certificate name.

+

min_ssl_version

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1
  • TLSv1.2
+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating an API group

+
{
+  "name" : "api_group_001",
+  "remark" : "API group 1"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "update_time" : "2020-07-31T06:55:55.383169299Z",
+  "name" : "api_group_001",
+  "on_sell_status" : 2,
+  "remark" : "API group 1",
+  "sl_domains" : [ "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com", "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.cn" ],
+  "sl_domain" : "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com",
+  "id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "register_time" : "2020-07-31T06:55:55.383169068Z",
+  "status" : 1,
+  "is_default" : 2,
+  "sl_domain_access_enabled" : true
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateApiV2.html b/docs/apig/api-ref/CreateApiV2.html new file mode 100644 index 00000000..8e733db8 --- /dev/null +++ b/docs/apig/api-ref/CreateApiV2.html @@ -0,0 +1,3992 @@ + + +

Creating an API

+

Function

This API is used to create an API. An API is an interface that encapsulates a set of service capabilities.

+

The definition of an API defines how the API is called by users and how APIG accesses the actual backend service requested by users. APIG supports four backend types: HTTP/HTTPS, gRPC, FunctionGraph, and Mock.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

API name.

+

It can contain 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Yes

+

Integer

+

API type.

+
  • 1: public API

    +
  • 2: private API

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

version

+

No

+

String

+

API version.

+

Maximum: 16

+

req_protocol

+

Yes

+

String

+

API request protocol:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
  • GRPCS

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
  • GRPCS

    +
+

req_method

+

Yes

+

String

+

API request method. If the request protocol is set to GRPC, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

Yes

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

Yes

+

String

+

API authentication mode. Options:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER: custom authentication. When auth_type is set to AUTHORIZER, the authorizer_id field is mandatory.

    +
+

Custom authentication is unavailable if the request protocol is set to GRPC.

+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

auth_opt

+

No

+

AuthOpt object

+

Security authentication parameter.

+

cors

+

No

+

Boolean

+

Indicates whether CORS is supported.

+
  • TRUE: supported

    +
  • FALSE: not supported

    +
+

Default: false

+

Enumeration values:

+
  • true

    +
  • false

    +
+

match_mode

+

No

+

String

+

API matching mode:

+
  • SWA: Prefix match

    +
  • NORMAL: Exact match Default value: NORMAL

    +
+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

backend_type

+

Yes

+

String

+

Backend type. Options:

+
  • HTTP: web backend

    +
  • FUNCTION: FunctionGraph backend. When backend_type is set to FUNCTION, the func_info field is mandatory.

    +
  • MOCK: mock backend. When backend_type is set to MOCK, the mock_info field is mandatory.

    +
  • GRPC: gRPC backend.

    +
+

Enumeration values:

+
  • HTTP

    +
  • FUNCTION

    +
  • MOCK

    +
  • GRPC

    +
+

remark

+

No

+

String

+

API description. It cannot exceed 255 characters.

+

group_id

+

Yes

+

String

+

ID of the API group to which the API belongs.

+

body_remark

+

No

+

String

+

API request body, which can be an example request body, media type, or parameters. Ensure that the request body does not exceed 20,480 characters.

+

result_normal_sample

+

No

+

String

+

Example response for a successful request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

result_failure_sample

+

No

+

String

+

Example response for a failed request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

tags

+

No

+

Array of strings

+

Tag.

+

Use letters, digits, and special characters (-*#%.:_) and start with a letter.

+

By default, 10 tags are supported. To increase the quota, contact technical support to modify the API_TAG_NUM_LIMIT configuration.

+

Minimum: 1

+

Maximum: 128

+

response_id

+

No

+

String

+

Group response ID.

+

roma_app_id

+

No

+

String

+

Integration application ID.

+

Currently, this parameter is not supported.

+

domain_name

+

No

+

String

+

Custom domain name bound to the API.

+

Currently, this parameter is not supported.

+

tag

+

No

+

String

+

Tag.

+

This field will be deprecated. You can use the tags field instead.

+

content_type

+

No

+

String

+

Request content type:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

Coming soon.

+

Enumeration values:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

mock_info

+

No

+

ApiMockCreate object

+

Mock backend details.

+

func_info

+

No

+

ApiFuncCreate object

+

FunctionGraph backend details.

+

req_params

+

No

+

Array of ReqParamBase objects

+

Request parameters. This is unavailable if the request protocol is set to GRPC.

+

backend_params

+

No

+

Array of BackendParamBase objects

+

Backend parameters. This is unavailable if the request protocol is set to GRPC.

+

policy_mocks

+

No

+

Array of ApiPolicyMockCreate objects

+

Mock backend policies.

+

policy_functions

+

No

+

Array of ApiPolicyFunctionCreate objects

+

FunctionGraph backend policies.

+

backend_api

+

No

+

BackendApiCreate object

+

Web backend details.

+

policy_https

+

No

+

Array of ApiPolicyHttpCreate objects

+

Web backend policies.

+
+
+ +
+ + + + + + + + + + + +
Table 4 AuthOpt

Parameter

+

Mandatory

+

Type

+

Description

+

app_code_auth_type

+

No

+

String

+

Indicates whether AppCode authentication is enabled. This parameter is valid only if auth_type is set to App. The default value is DISABLE.

+
  • DISABLE: AppCode authentication is disabled.

    +
  • HEADER: AppCode authentication is enabled and the AppCode is located in the header.

    +
+

Default: DISABLE

+

Enumeration values:

+
  • DISABLE

    +
  • HEADER

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiMockCreate

Parameter

+

Mandatory

+

Type

+

Description

+

remark

+

No

+

String

+

Description. It cannot exceed 255 characters.

+

result_content

+

No

+

String

+

Response.

+

version

+

No

+

String

+

Function version. It cannot exceed 64 characters.

+

authorizer_id

+

No

+

String

+

Backend custom authorizer ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 ApiFuncCreate

Parameter

+

Mandatory

+

Type

+

Description

+

function_urn

+

Yes

+

String

+

Function URN.

+

remark

+

No

+

String

+

Description. It cannot exceed 255 characters.

+

invocation_type

+

Yes

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

Yes

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

No

+

String

+

Function version.

+

If both a function alias URN and version are passed, only the alias URN will be used.

+

Maximum: 64

+

alias_urn

+

No

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Yes

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

authorizer_id

+

No

+

String

+

Backend custom authorizer ID.

+

req_protocol

+

No

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 ReqParamBase

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Parameter name.

+

The parameter name can contain 1 to 32 characters and must start with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

type

+

Yes

+

String

+

Parameter type.

+

Enumeration values:

+
  • STRING

    +
  • NUMBER

    +
+

location

+

Yes

+

String

+

Parameter location.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

default_value

+

No

+

String

+

Default value.

+

sample_value

+

No

+

String

+

Example value.

+

required

+

No

+

Integer

+

Indicates whether the parameter is required. 1: yes 2: no

+

The value of this parameter is 1 if Location is set to PATH, and 2 if Location is set to another value.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

valid_enable

+

No

+

Integer

+

Indicates whether validity check is enabled.

+
  • 1: enabled

    +
  • 2: disabled

    +
+

Default: 2

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

remark

+

No

+

String

+

Description. It cannot exceed 255 characters.

+

enumerations

+

No

+

String

+

Enumerated value.

+

min_num

+

No

+

Integer

+

Minimum value.

+

This parameter is valid when type is set to NUMBER.

+

max_num

+

No

+

Integer

+

Maximum value.

+

This parameter is valid when type is set to NUMBER.

+

min_size

+

No

+

Integer

+

Minimum length.

+

This parameter is valid when type is set to STRING.

+

max_size

+

No

+

Integer

+

Maximum length.

+

This parameter is valid when type is set to STRING.

+

regular

+

No

+

String

+

Regular expression validation rule.

+

Currently, this parameter is not supported.

+

json_schema

+

No

+

String

+

JSON validation rule.

+

Currently, this parameter is not supported.

+

pass_through

+

No

+

Integer

+

Indicates whether to transparently transfer the parameter. 1: yes 2: no

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 ApiPolicyMockCreate

Parameter

+

Mandatory

+

Type

+

Description

+

result_content

+

No

+

String

+

Response.

+

effect_mode

+

Yes

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

Yes

+

String

+

Backend name. It must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

No

+

Array of BackendParamBase objects

+

Backend parameters. This is unavailable for the GRPC backend.

+

conditions

+

Yes

+

Array of ApiConditionBase objects

+

Policy conditions.

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 ApiPolicyFunctionCreate

Parameter

+

Mandatory

+

Type

+

Description

+

function_urn

+

Yes

+

String

+

Function URN.

+

invocation_type

+

Yes

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

Yes

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

No

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

alias_urn

+

No

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

No

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

req_protocol

+

No

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

effect_mode

+

Yes

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

Yes

+

String

+

Backend name. It must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

No

+

Array of BackendParamBase objects

+

Backend parameters. This is unavailable for the GRPC backend.

+

conditions

+

Yes

+

Array of ApiConditionBase objects

+

Policy conditions.

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 BackendApiCreate

Parameter

+

Mandatory

+

Type

+

Description

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

url_domain

+

No

+

String

+

Backend service address.

+

A backend service address consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Host name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

Yes

+

String

+

Request protocol. You can select GRPCS for the GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

remark

+

No

+

String

+

Description. It cannot exceed 255 characters.

+

req_method

+

Yes

+

String

+

Request method. For the GRPC backend, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

version

+

No

+

String

+

Web backend version, which can contain a maximum of 16 characters.

+

req_uri

+

Yes

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Yes

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

enable_client_ssl

+

No

+

Boolean

+

Indicates whether to enable two-way authentication.

+

retry_count

+

No

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

vpc_channel_info

+

No

+

ApiBackendVpcReq object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

No

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 ApiPolicyHttpCreate

Parameter

+

Mandatory

+

Type

+

Description

+

url_domain

+

No

+

String

+

Endpoint of the policy backend.

+

An endpoint consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Domain name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

Yes

+

String

+

Request protocol. Options include HTTP, HTTPS, and GRPCS. You can select GRPCS for a GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

req_method

+

Yes

+

String

+

Request method. Options include GET, POST, PUT, DELETE, HEAD, PATCH, OPTIONS, and ANY. This is fixed to POST for the GRPC backend.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

Yes

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

No

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

retry_count

+

No

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

effect_mode

+

Yes

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

Yes

+

String

+

Backend name. It must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

No

+

Array of BackendParamBase objects

+

Backend parameters. This is unavailable for the GRPC backend.

+

conditions

+

Yes

+

Array of ApiConditionBase objects

+

Policy conditions.

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

vpc_channel_info

+

No

+

ApiBackendVpcReq object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

No

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 BackendParamBase

Parameter

+

Mandatory

+

Type

+

Description

+

origin

+

Yes

+

String

+

Parameter type.

+
  • REQUEST: backend parameter

    +
  • CONSTANT: constant parameter

    +
  • SYSTEM: system parameter

    +
+

Enumeration values:

+
  • REQUEST

    +
  • CONSTANT

    +
  • SYSTEM

    +
+

name

+

Yes

+

String

+

Parameter name.

+

The parameter name must start with a letter and can only contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Minimum: 1

+

Maximum: 32

+

remark

+

No

+

String

+

Description, which can contain a maximum of 255 characters.

+

location

+

Yes

+

String

+

Parameter location. The value can be PATH, QUERY, or HEADER.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

value

+

Yes

+

String

+

Parameter value, which can contain a maximum of 255 characters.

+

If the origin type is REQUEST, the value of this parameter is the parameter name in req_params.

+

If the origin type is CONSTANT, the value is a constant.

+

If the origin type is SYSTEM, the value is a system parameter name. System parameters include gateway parameters, frontend authentication parameters, and backend authentication parameters. You can set the frontend or backend authentication parameters after enabling custom frontend or backend authentication.

+

The gateway parameters are as follows:

+
  • $context.sourceIp: source IP address of the API caller.

    +
  • $context.stage: deployment environment in which the API is called.

    +
  • $context.apiId: API ID.

    +
  • $context.appId: ID of the app used by the API caller.

    +
  • $context.requestId: request ID generated when the API is called.

    +
  • $context.serverAddr: address of the gateway server.

    +
  • $context.serverName: name of the gateway server.

    +
  • $context.handleTime: time when the API request is processed.

    +
  • $context.providerAppId: ID of the app used by the API owner. This parameter is currently not supported.

    +
+

Frontend authentication parameter: prefixed with "$context.authorizer.frontend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.frontend.aaa".

+

Backend authentication parameter: prefixed with "$context.authorizer.backend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.backend.aaa".

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 13 ApiConditionBase

Parameter

+

Mandatory

+

Type

+

Description

+

req_param_name

+

No

+

String

+

Input parameter name. This parameter is required if the policy type is param.

+

sys_param_name

+

No

+

String

+

Name of a built-in gateway parameter. This parameter is required if the policy type is system. The following parameters are supported:

+
  • req_path: request path. For example, /a/b.

    +
  • req_method: request method. For example, GET.

    +
  • reqPath: request path, which is discarded. For example, /a/b.

    +
  • reqMethod: request method, which is discarded. For example, GET.

    +
+

Enumeration values:

+
  • req_path

    +
  • req_method

    +
  • reqPath

    +
  • reqMethod

    +
+

cookie_param_name

+

No

+

String

+

COOKIE parameter name. This parameter is required if the policy type is cookie.

+

Minimum: 0

+

Maximum: 255

+

frontend_authorizer_param_name

+

No

+

String

+

System parameter: frontend authentication parameter name. This parameter is mandatory when the policy type is frontend_authorizer. The frontend authentication parameter name is prefixed with $context.authorizer.frontend. For example, if the frontend authentication parameter name is user_name, the name with the prefix will be $context.authorizer.frontend.user_name.

+

condition_type

+

No

+

String

+

Policy condition.

+
  • exact: Exact match

    +
  • enum: Enumeration

    +
  • pattern: Regular expression

    +
+

This parameter is required when the policy type is param, system, cookie, or frontend_authorizer.

+

Enumeration values:

+
  • exact

    +
  • enum

    +
  • pattern

    +
+

condition_origin

+

Yes

+

String

+

Policy type

+
  • param: parameter

    +
  • source: source IP address

    +
  • system: system parameter - gateway built-in parameter

    +
  • cookie: COOKIE parameter

    +
  • frontend_authorizer: system parameter - frontend authentication parameter

    +
+

Enumeration values:

+
  • param

    +
  • source

    +
  • system

    +
  • cookie

    +
  • frontend_authorizer

    +
+

condition_value

+

Yes

+

String

+

Policy value. This parameter is required when the policy type is param, source, cookie, or frontend_authorizer.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 14 ApiBackendVpcReq

Parameter

+

Mandatory

+

Type

+

Description

+

vpc_channel_proxy_host

+

No

+

String

+

Proxy host.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

API name.

+

It can contain 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Integer

+

API type.

+
  • 1: public API

    +
  • 2: private API

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

version

+

String

+

API version.

+

Maximum: 16

+

req_protocol

+

String

+

API request protocol:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
  • GRPCS

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
  • GRPCS

    +
+

req_method

+

String

+

API request method. If the request protocol is set to GRPC, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

String

+

API authentication mode. Options:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER: custom authentication. When auth_type is set to AUTHORIZER, the authorizer_id field is mandatory.

    +
+

Custom authentication is unavailable if the request protocol is set to GRPC.

+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

auth_opt

+

AuthOpt object

+

Security authentication parameter.

+

cors

+

Boolean

+

Indicates whether CORS is supported.

+
  • TRUE: supported

    +
  • FALSE: not supported

    +
+

Default: false

+

Enumeration values:

+
  • true

    +
  • false

    +
+

match_mode

+

String

+

API matching mode:

+
  • SWA: Prefix match

    +
  • NORMAL: Exact match Default value: NORMAL

    +
+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

backend_type

+

String

+

Backend type. Options:

+
  • HTTP: web backend

    +
  • FUNCTION: FunctionGraph backend. When backend_type is set to FUNCTION, the func_info field is mandatory.

    +
  • MOCK: mock backend. When backend_type is set to MOCK, the mock_info field is mandatory.

    +
  • GRPC: gRPC backend.

    +
+

Enumeration values:

+
  • HTTP

    +
  • FUNCTION

    +
  • MOCK

    +
  • GRPC

    +
+

remark

+

String

+

API description. It cannot exceed 255 characters.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

body_remark

+

String

+

API request body, which can be an example request body, media type, or parameters. Ensure that the request body does not exceed 20,480 characters.

+

result_normal_sample

+

String

+

Example response for a successful request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

result_failure_sample

+

String

+

Example response for a failed request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

tags

+

Array of strings

+

Tag.

+

Use letters, digits, and special characters (-*#%.:_) and start with a letter.

+

By default, 10 tags are supported. To increase the quota, contact technical support to modify the API_TAG_NUM_LIMIT configuration.

+

Minimum: 1

+

Maximum: 128

+

response_id

+

String

+

Group response ID.

+

roma_app_id

+

String

+

Integration application ID.

+

Currently, this parameter is not supported.

+

domain_name

+

String

+

Custom domain name bound to the API.

+

Currently, this parameter is not supported.

+

tag

+

String

+

Tag.

+

This field will be deprecated. You can use the tags field instead.

+

content_type

+

String

+

Request content type:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

Coming soon.

+

Enumeration values:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

id

+

String

+

API ID.

+

status

+

Integer

+

App status.

+
  • 1: valid

    +
+

arrange_necessary

+

Integer

+

Indicates whether to enable orchestration.

+

register_time

+

String

+

Time when the API is registered.

+

update_time

+

String

+

Time when the API was last modified.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

group_version

+

String

+

Version of the API group to which the API belongs.

+

The default value is V1. Other versions are not supported.

+

Default: V1

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

Separate multiple environment IDs with vertical bars (|).

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

Separate multiple environment names with vertical bars (|).

+

publish_id

+

String

+

Publication record ID.

+

Separate multiple publication record IDs with vertical bars (|).

+

publish_time

+

String

+

Publication time.

+

Separate the time of multiple publication records with vertical bars (|).

+

roma_app_name

+

String

+

Name of the integration application to which the API belongs.

+

Currently, this parameter is not supported.

+

ld_api_id

+

String

+

ID of the corresponding custom backend API.

+

Currently, this parameter is not supported.

+

backend_api

+

BackendApi object

+

Web backend details.

+

api_group_info

+

ApiGroupCommonInfo object

+

API group information.

+

func_info

+

ApiFunc object

+

FunctionGraph backend details.

+

mock_info

+

ApiMock object

+

Mock backend details.

+

req_params

+

Array of ReqParam objects

+

Request parameters.

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

policy_functions

+

Array of ApiPolicyFunctionResp objects

+

FunctionGraph backend policies.

+

policy_mocks

+

Array of ApiPolicyMockResp objects

+

Mock backend policies.

+

policy_https

+

Array of ApiPolicyHttpResp objects

+

Web backend policies.

+
+
+ +
+ + + + + + + + + +
Table 16 AuthOpt

Parameter

+

Type

+

Description

+

app_code_auth_type

+

String

+

Indicates whether AppCode authentication is enabled. This parameter is valid only if auth_type is set to App. The default value is DISABLE.

+
  • DISABLE: AppCode authentication is disabled.

    +
  • HEADER: AppCode authentication is enabled and the AppCode is located in the header.

    +
+

Default: DISABLE

+

Enumeration values:

+
  • DISABLE

    +
  • HEADER

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 17 BackendApi

Parameter

+

Type

+

Description

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

url_domain

+

String

+

Backend service address.

+

A backend service address consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Host name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

String

+

Request protocol. You can select GRPCS for the GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

req_method

+

String

+

Request method. For the GRPC backend, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

version

+

String

+

Web backend version, which can contain a maximum of 16 characters.

+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

enable_client_ssl

+

Boolean

+

Indicates whether to enable two-way authentication.

+

retry_count

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

id

+

String

+

ID.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

register_time

+

String

+

Registration time.

+

update_time

+

String

+

Update time.

+

vpc_channel_info

+

VpcInfo object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 18 ApiGroupCommonInfo

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

API group name.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

sl_domain

+

String

+

Subdomain name that APIG automatically allocates to the API group.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Last modification time.

+

on_sell_status

+

Integer

+

Indicates whether the API group has been listed on KooGallery.

+
  • 1: listed

    +
  • 2: not listed

    +
  • 3: under review

    +
+

Not supported currently.

+

url_domains

+

Array of UrlDomain objects

+

Independent domain names bound to the API group.

+

sl_domain_access_enabled

+

Boolean

+

Whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 19 UrlDomain

Parameter

+

Type

+

Description

+

id

+

String

+

Domain ID.

+

domain

+

String

+

Domain name.

+

cname_status

+

Integer

+

CNAME resolution status of the domain name.

+
  • 1: not resolved

    +
  • 2: resolving

    +
  • 3: resolved

    +
  • 4: resolution failed

    +
+

ssl_id

+

String

+

SSL certificate ID.

+

ssl_name

+

String

+

SSL certificate name.

+

min_ssl_version

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1

    +
  • TLSv1.2

    +
+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 20 ApiFunc

Parameter

+

Type

+

Description

+

function_urn

+

String

+

Function URN.

+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

invocation_type

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

String

+

Function version.

+

If both a function alias URN and version are passed, only the alias URN will be used.

+

Maximum: 64

+

alias_urn

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

req_protocol

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

id

+

String

+

ID.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 21 ApiMock

Parameter

+

Type

+

Description

+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

result_content

+

String

+

Response.

+

version

+

String

+

Function version. It cannot exceed 64 characters.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

id

+

String

+

ID.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 22 ReqParam

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

The parameter name can contain 1 to 32 characters and must start with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

type

+

String

+

Parameter type.

+

Enumeration values:

+
  • STRING

    +
  • NUMBER

    +
+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

default_value

+

String

+

Default value.

+

sample_value

+

String

+

Example value.

+

required

+

Integer

+

Indicates whether the parameter is required. 1: yes 2: no

+

The value of this parameter is 1 if Location is set to PATH, and 2 if Location is set to another value.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

valid_enable

+

Integer

+

Indicates whether validity check is enabled.

+
  • 1: enabled

    +
  • 2: disabled

    +
+

Default: 2

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

enumerations

+

String

+

Enumerated value.

+

min_num

+

Integer

+

Minimum value.

+

This parameter is valid when type is set to NUMBER.

+

max_num

+

Integer

+

Maximum value.

+

This parameter is valid when type is set to NUMBER.

+

min_size

+

Integer

+

Minimum length.

+

This parameter is valid when type is set to STRING.

+

max_size

+

Integer

+

Maximum length.

+

This parameter is valid when type is set to STRING.

+

regular

+

String

+

Regular expression validation rule.

+

Currently, this parameter is not supported.

+

json_schema

+

String

+

JSON validation rule.

+

Currently, this parameter is not supported.

+

pass_through

+

Integer

+

Indicates whether to transparently transfer the parameter. 1: yes 2: no

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

id

+

String

+

Parameter ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 23 ApiPolicyFunctionResp

Parameter

+

Type

+

Description

+

function_urn

+

String

+

Function URN.

+

invocation_type

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

alias_urn

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

req_protocol

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 24 ApiPolicyMockResp

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

result_content

+

String

+

Response.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 25 ApiPolicyHttpResp

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

url_domain

+

String

+

Endpoint of the policy backend.

+

An endpoint consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Domain name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

String

+

Request protocol. Options include HTTP, HTTPS, and GRPCS. You can select GRPCS for a GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

req_method

+

String

+

Request method. Options include GET, POST, PUT, DELETE, HEAD, PATCH, OPTIONS, and ANY. This is fixed to POST for the GRPC backend.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

retry_count

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

vpc_channel_info

+

VpcInfo object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 26 BackendParam

Parameter

+

Type

+

Description

+

origin

+

String

+

Parameter type.

+
  • REQUEST: backend parameter

    +
  • CONSTANT: constant parameter

    +
  • SYSTEM: system parameter

    +
+

Enumeration values:

+
  • REQUEST

    +
  • CONSTANT

    +
  • SYSTEM

    +
+

name

+

String

+

Parameter name.

+

The parameter name must start with a letter and can only contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Minimum: 1

+

Maximum: 32

+

remark

+

String

+

Description, which can contain a maximum of 255 characters.

+

location

+

String

+

Parameter location. The value can be PATH, QUERY, or HEADER.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

value

+

String

+

Parameter value, which can contain a maximum of 255 characters.

+

If the origin type is REQUEST, the value of this parameter is the parameter name in req_params.

+

If the origin type is CONSTANT, the value is a constant.

+

If the origin type is SYSTEM, the value is a system parameter name. System parameters include gateway parameters, frontend authentication parameters, and backend authentication parameters. You can set the frontend or backend authentication parameters after enabling custom frontend or backend authentication.

+

The gateway parameters are as follows:

+
  • $context.sourceIp: source IP address of the API caller.

    +
  • $context.stage: deployment environment in which the API is called.

    +
  • $context.apiId: API ID.

    +
  • $context.appId: ID of the app used by the API caller.

    +
  • $context.requestId: request ID generated when the API is called.

    +
  • $context.serverAddr: address of the gateway server.

    +
  • $context.serverName: name of the gateway server.

    +
  • $context.handleTime: time when the API request is processed.

    +
  • $context.providerAppId: ID of the app used by the API owner. This parameter is currently not supported.

    +
+

Frontend authentication parameter: prefixed with "$context.authorizer.frontend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.frontend.aaa".

+

Backend authentication parameter: prefixed with "$context.authorizer.backend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.backend.aaa".

+

id

+

String

+

Parameter ID.

+

req_param_id

+

String

+

Request parameter ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 27 CoditionResp

Parameter

+

Type

+

Description

+

req_param_name

+

String

+

Input parameter name. This parameter is required if the policy type is param.

+

sys_param_name

+

String

+

Name of a built-in gateway parameter. This parameter is required if the policy type is system. The following parameters are supported:

+
  • req_path: request path. For example, /a/b.

    +
  • req_method: request method. For example, GET.

    +
  • reqPath: request path, which is discarded. For example, /a/b.

    +
  • reqMethod: request method, which is discarded. For example, GET.

    +
+

Enumeration values:

+
  • req_path

    +
  • req_method

    +
  • reqPath

    +
  • reqMethod

    +
+

cookie_param_name

+

String

+

COOKIE parameter name. This parameter is required if the policy type is cookie.

+

Minimum: 0

+

Maximum: 255

+

frontend_authorizer_param_name

+

String

+

System parameter: frontend authentication parameter name. This parameter is mandatory when the policy type is frontend_authorizer. The frontend authentication parameter name is prefixed with $context.authorizer.frontend. For example, if the frontend authentication parameter name is user_name, the name with the prefix will be $context.authorizer.frontend.user_name.

+

condition_type

+

String

+

Policy condition.

+
  • exact: Exact match

    +
  • enum: Enumeration

    +
  • pattern: Regular expression

    +
+

This parameter is required when the policy type is param, system, cookie, or frontend_authorizer.

+

Enumeration values:

+
  • exact

    +
  • enum

    +
  • pattern

    +
+

condition_origin

+

String

+

Policy type

+
  • param: parameter

    +
  • source: source IP address

    +
  • system: system parameter - gateway built-in parameter

    +
  • cookie: COOKIE parameter

    +
  • frontend_authorizer: system parameter - frontend authentication parameter

    +
+

Enumeration values:

+
  • param

    +
  • source

    +
  • system

    +
  • cookie

    +
  • frontend_authorizer

    +
+

condition_value

+

String

+

Policy value. This parameter is required when the policy type is param, source, cookie, or frontend_authorizer.

+

id

+

String

+

ID.

+

req_param_id

+

String

+

Input parameter ID.

+

req_param_location

+

String

+

Input parameter location.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 28 VpcInfo

Parameter

+

Type

+

Description

+

ecs_id

+

String

+

Cloud server ID.

+

ecs_name

+

String

+

Cloud server name.

+

cascade_flag

+

Boolean

+

Indicates whether to use the cascading mode.

+

Currently, this parameter is not supported.

+

vpc_channel_proxy_host

+

String

+

Proxy host.

+

vpc_channel_id

+

String

+

VPC channel ID.

+

vpc_channel_port

+

Integer

+

VPC channel port.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 29 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 30 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 31 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 32 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 33 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 201

+

Created

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3019",
+  "error_msg" : "The function URN does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateAppCodeAutoV2.html b/docs/apig/api-ref/CreateAppCodeAutoV2.html new file mode 100644 index 00000000..5f133dfd --- /dev/null +++ b/docs/apig/api-ref/CreateAppCodeAutoV2.html @@ -0,0 +1,343 @@ + + +

Generating an AppCode

+

Function

This API is used to generate a random AppCode.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

app_code

+

String

+

AppCode value.

+

It can contain 64 to 180 characters, starting with a letter, digit, plus sign (+), or slash (/). Only letters, digits, and the following special characters are allowed: +_!@#$%-/=

+

id

+

String

+

ID.

+

app_id

+

String

+

App ID.

+

create_time

+

String

+

Creation time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 201

+

Created

+
{
+  "app_code" : "fdc8d90a30174460a91ddacfa54d6f04c92e523a85cc4a1894f87cb13b6f572a",
+  "app_id" : "9ed8b7fe84224de681e7d7a5587e76dc",
+  "id" : "b3d34f746d0847fb95138670e10207ed",
+  "create_time" : "2020-07-24T02:31:45.790909295Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 9ed8b7fe84224de681e7d7a5587e76dc does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateAppCodeV2.html b/docs/apig/api-ref/CreateAppCodeV2.html new file mode 100644 index 00000000..33c78c44 --- /dev/null +++ b/docs/apig/api-ref/CreateAppCodeV2.html @@ -0,0 +1,370 @@ + + +

Creating an AppCode

+

Function

This API is used to create an AppCode for an app for simple authentication.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

app_code

+

Yes

+

String

+

AppCode value.

+

It can contain 64 to 180 characters, starting with a letter, digit, plus sign (+), or slash (/). Only letters, digits, and the following special characters are allowed: +_!@#$%-/=

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

app_code

+

String

+

AppCode value.

+

It can contain 64 to 180 characters, starting with a letter, digit, plus sign (+), or slash (/). Only letters, digits, and the following special characters are allowed: +_!@#$%-/=

+

id

+

String

+

ID.

+

app_id

+

String

+

App ID.

+

create_time

+

String

+

Creation time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating an AppCode for simple authentication

+
{
+  "app_code" : "GjOD3g80AABuuFeEJpVQADBlAjBh3UzC7W+gr4VJBB5BtJ4fdVOQoSvoji3gFxUDb5pWBz9wUcw9+8/bFZ1B/4pq29wCMQC0pQWX6zTndljDEl99As1pw+WntAU9xcq+ffagoH6zDpKUvdxV6Ezj8LcCcPZN6BU="
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "app_code" : "GjOD3g80AABuuFeEJpVQADBlAjBh3UzC7W+gr4VJBB5BtJ4fdVOQoSvoji3gFxUDb5pWBz9wUcw9+8/bFZ1B/4pq29wCMQC0pQWX6zTndljDEl99As1pw+WntAU9xcq+ffagoH6zDpKUvdxV6Ezj8LcCcPZN6BU=",
+  "app_id" : "9ed8b7fe84224de681e7d7a5587e76dc",
+  "id" : "32dc8ca22d1b4b9cb94022186880576b",
+  "create_time" : "2020-07-24T02:37:24.835128293Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 9ed8b7fe84224de681e7d7a5587e76dc does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateAppQuota.html b/docs/apig/api-ref/CreateAppQuota.html new file mode 100644 index 00000000..ad322ea7 --- /dev/null +++ b/docs/apig/api-ref/CreateAppQuota.html @@ -0,0 +1,458 @@ + + +

Creating a Credential Quota

+

Function

Creating a Credential Quota

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/app-quotas

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Quota name. Start with a letter. Use letters, digits, or underscores (_).

+

Minimum: 3

+

Maximum: 255

+

call_limits

+

Yes

+

Integer

+

Maximum number of times a credential quota can be called.

+

Minimum: 1

+

Maximum: 2147483647

+

time_unit

+

Yes

+

String

+

Time unit. The options are SECOND, MINUTE, HOUR, and DAY.

+

Enumeration values:

+
  • SECOND
  • MINUTE
  • HOUR
  • DAY
+

time_interval

+

Yes

+

Integer

+

Time interval for throttling.

+

Minimum: 1

+

Maximum: 2147483647

+

reset_time

+

No

+

String

+

Time when the quota is reset for the first time. If this parameter is not specified, the time is calculated based on the first calling time by default.

+

remark

+

No

+

String

+

Parameter description.

+

Brackets (<>) are not supported.

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

app_quota_id

+

String

+

Credential quota ID.

+

name

+

String

+

Quota name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

call_limits

+

Integer

+

Maximum number of times a credential quota can be called.

+

time_unit

+

String

+

Time unit. The options are SECOND, MINUTE, HOUR, and DAY.

+

Enumeration values:

+
  • SECOND
  • MINUTE
  • HOUR
  • DAY
+

time_interval

+

Integer

+

Time limit of a quota.

+

remark

+

String

+

Parameter description.

+

Maximum: 255

+

reset_time

+

String

+

Time when the quota is reset for the first time. If this parameter is not specified, the time is calculated based on the first calling time by default.

+

create_time

+

String

+

Creation time.

+

bound_app_num

+

Integer

+

Number of applications bound to the quota policy.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

{
+  "call_limits" : 1000,
+  "name" : "ClientQuota_demo",
+  "reset_time" : "2020-09-20 00:00:00",
+  "time_interval" : 1,
+  "time_unit" : "DAY"
+}
+
+

Example Responses

Status code: 201

+

OK

+
{
+  "app_quota_id" : "c900c5612dbe451bb43cbcc49cfaf2f3",
+  "call_limits" : 1000,
+  "create_time" : "2020-09-19T15:27:47.60571141+08:00",
+  "name" : "ClientQuota_demo",
+  "reset_time" : "2020-09-20 00:00:00",
+  "time_interval" : 1,
+  "time_unit" : "DAY"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3325",
+  "error_msg" : "The API quota name already exists"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateAuthorizingAppsV2.html b/docs/apig/api-ref/CreateAuthorizingAppsV2.html new file mode 100644 index 00000000..cb357491 --- /dev/null +++ b/docs/apig/api-ref/CreateAuthorizingAppsV2.html @@ -0,0 +1,518 @@ + + +

Authorizing Apps

+

Function

An app cannot access any APIs after being created. To access an API in a specific environment, bind the app to the API in the environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/app-auths

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

env_id

+

Yes

+

String

+

ID of the environment in which the apps will be authorized.

+

app_ids

+

Yes

+

Array of strings

+

App IDs.

+

api_ids

+

Yes

+

Array of strings

+

API list.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

auths

+

Array of ApiAuthRelations objects

+

App authorization records.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiAuthRelations

Parameter

+

Type

+

Description

+

api_id

+

String

+

API ID.

+

auth_result

+

AuthResult object

+

Authorization result.

+

auth_time

+

String

+

Authorization time.

+

id

+

String

+

Authorization record ID.

+

app_id

+

String

+

App ID.

+

auth_role

+

String

+

Authorizer.

+
  • PROVIDER: API provider

    +
  • CONSUMER: API user

    +
+

Enumeration values:

+
  • PROVIDER

    +
  • CONSUMER

    +
+

auth_tunnel

+

String

+

Authorization channel type.

+
  • NORMAL: normal channel

    +
  • GREEN: green channel

    +
+

The default value is NORMAL. This parameter is not supported currently.

+

Enumeration values:

+
  • NORMAL

    +
  • GREEN

    +
+

auth_whitelist

+

Array of strings

+

Whitelist for the green channel.

+

auth_blacklist

+

Array of strings

+

Blacklist for the green channel.

+

visit_params

+

String

+

Access parameters.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 AuthResult

Parameter

+

Type

+

Description

+

status

+

String

+

Authorization result.

+
  • SUCCESS

    +
  • SKIPPED

    +
  • FAILED

    +
+

Enumeration values:

+
  • SUCCESS

    +
  • SKIPPED

    +
  • FAILED

    +
+

error_msg

+

String

+

Error message.

+

error_code

+

String

+

Error code.

+

api_name

+

String

+

Name of the API for which authorization fails.

+

app_name

+

String

+

Name of the app that fails to be authorized.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Authorizing an app to call an API

+
{
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "app_ids" : [ "356de8eb7a8742168586e5daf5339965" ],
+  "api_ids" : [ "5f918d104dc84480a75166ba99efff21" ]
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "auths" : [ {
+    "api_id" : "5f918d104dc84480a75166ba99efff21",
+    "auth_result" : {
+      "status" : "SUCCESS"
+    },
+    "auth_time" : "22020-08-04T04:02:22.482227344Z",
+    "id" : "dd29b33ae4394e3b924b582c6b40880b",
+    "app_id" : "356de8eb7a8742168586e5daf5339965",
+    "auth_role" : "PROVIDER",
+    "auth_tunnel" : "NORMAL"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:api_ids. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateCertificateV2.html b/docs/apig/api-ref/CreateCertificateV2.html new file mode 100644 index 00000000..5fd9ec0c --- /dev/null +++ b/docs/apig/api-ref/CreateCertificateV2.html @@ -0,0 +1,547 @@ + + +

Creating an SSL Certificate

+

Function

This API is used to create an SSL certificate.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/certificates

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Certificate name. It can contain 4 to 50 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

cert_content

+

Yes

+

String

+

Certificate content.

+

private_key

+

Yes

+

String

+

Certificate private key.

+

type

+

No

+

String

+

Certificate scope.

+

Default: global

+

Enumeration values:

+
  • instance

    +
  • global

    +
+

instance_id

+

No

+

String

+

Gateway ID. This parameter is required if type is set to instance.

+

trusted_root_ca

+

No

+

String

+

Trusted root certificate (CA).

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Certificate ID.

+

name

+

String

+

Certificate name.

+

type

+

String

+

Certificate type.

+
  • global: Global certificate.

    +
  • instance: Gateway certificate.

    +
+

Enumeration values:

+
  • global

    +
  • instance

    +
+

instance_id

+

String

+

Gateway ID.

+
  • If type is set to global, the default value is common.

    +
  • If type is set to instance, a gateway ID is displayed.

    +
+

project_id

+

String

+

Project ID.

+

common_name

+

String

+

Domain name.

+

san

+

Array of strings

+

SAN domain name.

+

not_after

+

String

+

Expiration time.

+

signature_algorithm

+

String

+

Signature algorithm.

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+

version

+

Integer

+

Version.

+

organization

+

Array of strings

+

Company or organization.

+

organizational_unit

+

Array of strings

+

Department.

+

locality

+

Array of strings

+

City.

+

state

+

Array of strings

+

State or province.

+

country

+

Array of strings

+

Country or region.

+

not_before

+

String

+

Effective time.

+

serial_number

+

String

+

Serial number.

+

issuer

+

Array of strings

+

Issuer.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating an SSL certificate

+
{
+  "name" : "cert_demo",
+  "private_key" : "'-----BEGIN PRIVATE KEY-----THIS IS YOUR PRIVATE KEY-----END PRIVATE KEY-----\\n'",
+  "cert_content" : "'-----BEGIN CERTIFICATE-----THIS IS YOUR CERT CONTENT-----END CERTIFICATE-----\\n'",
+  "type" : "instance",
+  "instance_id" : "f0fa1789-3b76-433b-a787-9892951c620e"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "id" : "a27be832f2e9441c8127fe48e3b5ac67",
+  "name" : "cert_demo",
+  "common_name" : "apigtest.example.com",
+  "san" : [ "apigtest.example.com", "*.san.com" ],
+  "version" : 3,
+  "organization" : [ "XX" ],
+  "organizational_unit" : [ "IT" ],
+  "locality" : [ "XX" ],
+  "state" : [ "XX" ],
+  "country" : [ "XX" ],
+  "not_before" : "2019-06-01T00:00:00Z",
+  "not_after" : "2031-08-16T06:36:13Z",
+  "serial_number" : "13010",
+  "issuer" : [ "XXSSL Inc" ],
+  "signature_algorithm" : "SHA256-RSA",
+  "create_time" : "2021-08-20T02:03:53Z",
+  "update_time" : "2021-08-20T02:03:53Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3325",
+  "error_msg" : "The API quota name already exists"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateCustomAuthorizerV2.html b/docs/apig/api-ref/CreateCustomAuthorizerV2.html new file mode 100644 index 00000000..93bf72d2 --- /dev/null +++ b/docs/apig/api-ref/CreateCustomAuthorizerV2.html @@ -0,0 +1,696 @@ + + +

Creating a Custom Authorizer

+

Function

This API is used to create a custom authorizer.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/authorizers

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Custom authorizer name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

type

+

Yes

+

String

+

Custom authorizer type.

+
  • FRONTEND

    +
  • BACKEND

    +
+

Modification is not allowed.

+

Enumeration values:

+
  • FRONTEND

    +
  • BACKEND

    +
+

authorizer_type

+

Yes

+

String

+

Value: FUNC.

+

Enumeration values:

+
  • FUNC

    +
+

authorizer_uri

+

Yes

+

String

+

Function URN.

+

network_type

+

No

+

String

+

Function network architecture:

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Default: V1

+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

authorizer_version

+

No

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

authorizer_alias_uri

+

No

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

identities

+

No

+

Array of Identity objects

+

Identity source.

+

ttl

+

No

+

Integer

+

Maximum cache age.

+

user_data

+

No

+

String

+

User data.

+

ld_api_id

+

No

+

String

+

Custom backend ID.

+

Currently, this parameter is not supported.

+

need_body

+

No

+

Boolean

+

Indicates whether to send the body.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Identity

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Parameter name.

+

location

+

Yes

+

String

+

Parameter location.

+

Enumeration values:

+
  • HEADER

    +
  • QUERY

    +
+

validation

+

No

+

String

+

Parameter verification expression. The default value is null, indicating that no verification is performed.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Custom authorizer name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

type

+

String

+

Custom authorizer type.

+
  • FRONTEND

    +
  • BACKEND

    +
+

Modification is not allowed.

+

Enumeration values:

+
  • FRONTEND

    +
  • BACKEND

    +
+

authorizer_type

+

String

+

Value: FUNC.

+

Enumeration values:

+
  • FUNC

    +
+

authorizer_uri

+

String

+

Function URN.

+

network_type

+

String

+

Function network architecture:

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Default: V1

+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

authorizer_version

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

authorizer_alias_uri

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

identities

+

Array of Identity objects

+

Identity source.

+

ttl

+

Integer

+

Maximum cache age.

+

user_data

+

String

+

User data.

+

ld_api_id

+

String

+

Custom backend ID.

+

Currently, this parameter is not supported.

+

need_body

+

Boolean

+

Indicates whether to send the body.

+

id

+

String

+

Custom authorizer ID.

+

create_time

+

String

+

Creation time.

+

roma_app_id

+

String

+

ID of the application to which the custom authorizer belongs.

+

Currently, this parameter is not supported.

+

roma_app_name

+

String

+

Name of the application to which the custom authorizer belongs.

+

Currently, this parameter is not supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 Identity

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • HEADER

    +
  • QUERY

    +
+

validation

+

String

+

Parameter verification expression. The default value is null, indicating that no verification is performed.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating a frontend custom authorizer

+
{
+  "name" : "Authorizer_demo",
+  "type" : "FRONTEND",
+  "authorizer_type" : "FUNC",
+  "authorizer_uri" : "urn:fss:xx-xxx:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814",
+  "network_type" : "V1",
+  "authorizer_version" : "v1",
+  "authorizer_alias_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814:!v1",
+  "identities" : [ {
+    "name" : "header",
+    "location" : "HEADER"
+  } ],
+  "user_data" : "authorizer_test"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "name" : "Authorizer_demo",
+  "type" : "FRONTEND",
+  "authorizer_type" : "FUNC",
+  "authorizer_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814",
+  "network_type" : "V1",
+  "authorizer_version" : "v1",
+  "authorizer_alias_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814:!v1",
+  "identities" : [ {
+    "name" : "header",
+    "location" : "HEADER"
+  } ],
+  "ttl" : 0,
+  "user_data" : "authorizer_test",
+  "id" : "0d982c1ac3da493dae47627b6439fc5c",
+  "create_time" : "2020-07-31T11:55:43Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:type. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3019",
+  "error_msg" : "The function URN does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateEnvironmentV2.html b/docs/apig/api-ref/CreateEnvironmentV2.html new file mode 100644 index 00000000..0c79bd21 --- /dev/null +++ b/docs/apig/api-ref/CreateEnvironmentV2.html @@ -0,0 +1,336 @@ + + +

Creating an Environment

+

Function

API providers can publish an API in different environments, such as the development, test, and production environments.

+

API information, such as the version, request address, and even request message, varies depending on the environment in which an API is published. For example, v1.0 of an API is published in the production environment, v1.1 in the test environment, and v1.2 in the development environment.

+

APIG provides environment management, enabling you to access APIG in different scenarios at minimal costs.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/envs

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Environment name, which can contain letters, digits, and underscores (_) and must start with a letter.

+

Minimum: 3

+

Maximum: 64

+

remark

+

No

+

String

+

Description.

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

create_time

+

String

+

Creation time.

+

name

+

String

+

Environment name.

+

remark

+

String

+

Description.

+

id

+

String

+

Environment ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating an environment

+
{
+  "name" : "DEV",
+  "remark" : "Development environment"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "create_time" : "2020-07-31T06:41:43.511347628Z",
+  "name" : "DEV",
+  "remark" : "Development environment",
+  "id" : "7a1ad0c350844ee69479b47df9a881cb"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateEnvironmentVariableV2.html b/docs/apig/api-ref/CreateEnvironmentVariableV2.html new file mode 100644 index 00000000..a1acc7bd --- /dev/null +++ b/docs/apig/api-ref/CreateEnvironmentVariableV2.html @@ -0,0 +1,413 @@ + + +

Creating a Variable

+

Function

Publishing an API in different environments may involve various variables, such as API service deployment address and request version.

+

You can define environment variables when creating an API. When the API is called, the environment variables will be replaced with the variable values to distinguish environments.

+

Environment variables are defined for an API group and apply to all APIs in the group.

+
  1. Environment variable names must be unique for an API group in the same environment.

    +
  2. Environment variable names are case-sensitive. For example, ABC and abc are two different variables.

    +
  3. APIs that use environment variables cannot be debugged.

    +
  4. You must enclose an environment variable in number signs (#) so that it can be replaced with the actual value of the environment in which the API is published. For example, if the URL of an API is https://#address#:8080 and the value of variable address is 192.168.1.5 in the RELEASE environment, the real URL of the API is https://192.168.1.5:8080 after publishing.

    +
+
+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/env-variables

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

variable_value

+

Yes

+

String

+

The variable value can contain 1 to 255 characters. Only letters, digits, and special characters (_-/.:) are allowed.

+

env_id

+

Yes

+

String

+

Environment ID.

+

Minimum: 1

+

Maximum: 65

+

group_id

+

Yes

+

String

+

API group ID.

+

Minimum: 1

+

Maximum: 65

+

variable_name

+

Yes

+

String

+

Variable name, which can contain 3 to 32 characters, starting with a letter. Only letters, digits, hyphens (-), and underscores (_) are allowed. The variable name is equivalent to "#Name#" in API definitions. Characters between the number signs are case-sensitive. The variable name will be replaced with the variable value after API publication.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

variable_value

+

String

+

The variable value can contain 1 to 255 characters. Only letters, digits, and special characters (_-/.:) are allowed.

+

env_id

+

String

+

Environment ID.

+

Minimum: 1

+

Maximum: 65

+

group_id

+

String

+

API group ID.

+

Minimum: 1

+

Maximum: 65

+

variable_name

+

String

+

Variable name, which can contain 3 to 32 characters, starting with a letter. Only letters, digits, hyphens (-), and underscores (_) are allowed. The variable name is equivalent to "#Name#" in API definitions. Characters between the number signs are case-sensitive. The variable name will be replaced with the variable value after API publication.

+

id

+

String

+

Environment variable ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating an environment variable

+
{
+  "variable_name" : "address",
+  "variable_value" : "192.168.1.5",
+  "env_id" : "7a1ad0c350844ee69479b47df9a881cb",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "variable_value" : "192.168.1.5",
+  "env_id" : "7a1ad0c350844ee69479b47df9a881cb",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "id" : "25054838a624400bbf2267cf5b3a3f70",
+  "variable_name" : "address"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3003",
+  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateFeatureV2.html b/docs/apig/api-ref/CreateFeatureV2.html new file mode 100644 index 00000000..c9e26284 --- /dev/null +++ b/docs/apig/api-ref/CreateFeatureV2.html @@ -0,0 +1,400 @@ + + +

Configuring a Feature for a Gateway

+

Function

This API is used to configure a feature for a gateway.

+

For details about the supported features and configuration examples, see "Appendix" > "Supported Features" in this document.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/features

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Feature name.

+

Minimum: 1

+

Maximum: 64

+

enable

+

Yes

+

Boolean

+

Indicates whether to enable the feature.

+

config

+

No

+

String

+

Parameter configuration.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Feature ID.

+

name

+

String

+

Feature name.

+

Minimum: 1

+

Maximum: 64

+

enable

+

Boolean

+

Indicates whether to enable the feature.

+

config

+

String

+

Parameter configuration.

+

instance_id

+

String

+

Gateway ID.

+

update_time

+

String

+

Feature update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Enabling the app_api_key switch

+
{
+  "name" : "app_api_key",
+  "config" : "on",
+  "enable" : true
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "config" : "on",
+  "enable" : true,
+  "id" : "db9a9260cd3e4a16a9b5747a65d3ffaa",
+  "instance_id" : "eddc4d25480b4cd6b512f270a1b8b341",
+  "name" : "app_api_key",
+  "update_time" : "2020-08-24T01:17:31.041984021Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2000",
+  "error_msg" : "unrecognized feature app-api-key"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateGatewayResponseV2.html b/docs/apig/api-ref/CreateGatewayResponseV2.html new file mode 100644 index 00000000..ce2969ba --- /dev/null +++ b/docs/apig/api-ref/CreateGatewayResponseV2.html @@ -0,0 +1,626 @@ + + +

Creating a Group Response

+

Function

This API is used to create a response for an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Response name. Enter 1 to 64 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

responses

+

No

+

Map<String,ResponseInfo>

+

Response type definition. key indicates the error type. Options of key:

+
  • AUTH_FAILURE: Authentication failed.
  • AUTH_HEADER_MISSING: The identity source is missing.
  • AUTHORIZER_FAILURE: Custom authentication failed.
  • AUTHORIZER_CONF_FAILURE: Custom authorizer error.
  • AUTHORIZER_IDENTITIES_FAILURE: The identity source of the custom authorizer is invalid.
  • BACKEND_UNAVAILABLE: The backend is unavailable.
  • BACKEND_TIMEOUT: Backend timed out.
  • THROTTLED: The request was rejected due to request throttling.
  • UNAUTHORIZED: The app you are using has not been authorized to call the API.
  • ACCESS_DENIED: Access denied.
  • NOT_FOUND: No API is found.
  • REQUEST_PARAMETERS_FAILURE: Invalid request parameter.
  • DEFAULT_4XX: Default 4XX error occurred.
  • DEFAULT_5XX: Default 5XX error occurred.
  • THIRD_AUTH_FAILURE: Third-party authentication failed.
  • THIRD_AUTH_IDENTITIES_FAILURE: Identity source of the third-party authorizer is invalid.
  • THIRD_AUTH_CONF_FAILURE: Third-party authorizer configuration error.
  • ORCHESTRATION_PARAMETER_NOT_FOUND: No parameters are input to match the parameter orchestration rule, causing orchestration failure.
  • ORCHESTRATION_FAILURE: Input parameters cannot match orchestration rules, causing orchestration failure.
+

Each error type is in JSON format.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 ResponseInfo

Parameter

+

Mandatory

+

Type

+

Description

+

status

+

No

+

Integer

+

HTTP status code of the response. The value ranges from 200 to 599, but cannot be 444.

+

body

+

No

+

String

+

Response body template.

+

headers

+

No

+

Array of ResponseInfoHeader objects

+

Custom response header.

+

Array Length: 0 - 10

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 ResponseInfoHeader

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

Key of the custom group response header, which can contain 1 to 128 characters of letters, digits, and hyphens (-).

+

value

+

No

+

String

+

Value of the custom group response header, which is a string of 1 to 1,024 characters.

+

Minimum: 1

+

Maximum: 1024

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Response name.

+

responses

+

Map<String,ResponseInfoResp>

+

Response type definition. key indicates the error type. Options of key:

+
  • AUTH_FAILURE: Authentication failed.
  • AUTH_HEADER_MISSING: The identity source is missing.
  • AUTHORIZER_FAILURE: Custom authentication failed.
  • AUTHORIZER_CONF_FAILURE: Custom authorizer error.
  • AUTHORIZER_IDENTITIES_FAILURE: The identity source of the custom authorizer is invalid.
  • BACKEND_UNAVAILABLE: The backend is unavailable.
  • BACKEND_TIMEOUT: Backend timed out.
  • THROTTLED: The request was rejected due to request throttling.
  • UNAUTHORIZED: The app you are using has not been authorized to call the API.
  • ACCESS_DENIED: Access denied.
  • NOT_FOUND: No API is found.
  • REQUEST_PARAMETERS_FAILURE: Invalid request parameter.
  • DEFAULT_4XX: Default 4XX error occurred.
  • DEFAULT_5XX: Default 5XX error occurred.
  • THIRD_AUTH_FAILURE: Third-party authentication failed.
  • THIRD_AUTH_IDENTITIES_FAILURE: Identity source of the third-party authorizer is invalid.
  • THIRD_AUTH_CONF_FAILURE: Third-party authorizer configuration error.
  • ORCHESTRATION_PARAMETER_NOT_FOUND: No parameters are input to match the parameter orchestration rule, causing orchestration failure.
  • ORCHESTRATION_FAILURE: Input parameters cannot match orchestration rules, causing orchestration failure.
+

Each error type is in JSON format.

+

id

+

String

+

Response ID.

+

default

+

Boolean

+

Indicates whether the group response is the default response.

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 7 ResponseInfoResp

Parameter

+

Type

+

Description

+

status

+

Integer

+

HTTP status code of the response. The value ranges from 200 to 599, but cannot be 444.

+

body

+

String

+

Response body template.

+

headers

+

Array of ResponseInfoHeader objects

+

Custom response header.

+

Array Length: 0 - 10

+

default

+

Boolean

+

Indicates whether the response is the default response.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 ResponseInfoHeader

Parameter

+

Type

+

Description

+

key

+

String

+

Key of the custom group response header, which can contain 1 to 128 characters of letters, digits, and hyphens (-).

+

value

+

String

+

Value of the custom group response header, which is a string of 1 to 1,024 characters.

+

Minimum: 1

+

Maximum: 1024

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating a response for an API group

+
{
+  "name" : "response_demo"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "create_time" : "2020-08-12T14:52:02.829753306+08:00",
+  "update_time" : "2020-08-12T14:52:02.829753306+08:00",
+  "default" : false,
+  "id" : "e839b367e10f4ab19d1c5008e476b83a",
+  "name" : "response_demo",
+  "responses" : {
+    "ACCESS_DENIED" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 403
+    },
+    "AUTHORIZER_CONF_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 500
+    },
+    "AUTHORIZER_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 500
+    },
+    "AUTHORIZER_IDENTITIES_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "AUTH_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "AUTH_HEADER_MISSING" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "BACKEND_TIMEOUT" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 504
+    },
+    "BACKEND_UNAVAILABLE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 502
+    },
+    "DEFAULT_4XX" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true
+    },
+    "DEFAULT_5XX" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true
+    },
+    "NOT_FOUND" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 404
+    },
+    "REQUEST_PARAMETERS_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 400
+    },
+    "THROTTLED" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 429
+    },
+    "UNAUTHORIZED" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "THIRD_AUTH_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "THIRD_AUTH_IDENTITIES_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "THIRD_AUTH_CONF_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 500
+    }
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateInstanceV2.html b/docs/apig/api-ref/CreateInstanceV2.html new file mode 100644 index 00000000..5a90b32d --- /dev/null +++ b/docs/apig/api-ref/CreateInstanceV2.html @@ -0,0 +1,596 @@ + + +

Creating a Dedicated Gateway (Pay-Per-Use)

+

Function

This API is used to create a pay-per-use dedicated gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

description

+

No

+

String

+

Gateway description. The value can contain up to 255 characters except > and <.

+

maintain_begin

+

No

+

String

+

Start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.

+

During the maintenance time period, O&M personnel perform maintenance on the gateway. During this period, services can still be used, but occasionally there may be temporary interruptions. Scheduled maintenance occurs infrequently (typically once every several months).

+

maintain_end

+

No

+

String

+

End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.

+

During the maintenance time period, O&M personnel perform maintenance on the gateway. During this period, services can still be used, but occasionally there may be temporary interruptions. Scheduled maintenance occurs infrequently (typically once every several months).

+

instance_name

+

Yes

+

String

+

Gateway name.

+

Enter 3 to 64 characters, starting with a letter. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

Minimum: 3

+

Maximum: 64

+

instance_id

+

No

+

String

+

Gateway ID, which will be automatically generated if you do not specify this parameter.

+

spec_id

+

Yes

+

String

+

Gateway edition. Options:

+
  • BASIC
  • PROFESSIONAL
  • ENTERPRISE
  • PLATINUM
+

Platinum 2–8 are available only in certain regions.

+

Enumeration values:

+
  • BASIC
  • PROFESSIONAL
  • ENTERPRISE
  • PLATINUM
+

vpc_id

+

Yes

+

String

+

VPC ID.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console, and click the name of a VPC to view the VPC ID on the displayed details page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying VPCs" in the VPC API Reference.
+

subnet_id

+

Yes

+

String

+

Subnet network ID.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console and click the target subnet on the Subnets page. You can view the network ID on the displayed page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying Subnets" in the VPC API Reference.
+

security_group_id

+

Yes

+

String

+

ID of the security group to which the gateway belongs.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console. Choose Access Control > Security Groups in the navigation pane. On the Security Groups page, click the target security group. Then view the security group ID on the displayed page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying Security Groups" in the VPC API Reference.
+

eip_id

+

No

+

String

+

EIP ID.

+

After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP.

+

To obtain an EIP ID, log in to the VPC console, and choose "Elastic IP and Bandwidth" > "EIPs" in the navigation pane. Click the name of the target EIP, and view the EIP ID on the displayed page.

+

enterprise_project_id

+

No

+

String

+

Enterprise project ID. This parameter is required for an enterprise account.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the Enterprise Project Management page, click the name of the target enterprise project, and view the project ID on the displayed page.
  • Method 2: Call the corresponding project management API. For details, see section "Querying the Enterprise Project List" in the Enterprise Management API Reference.
+

available_zone_ids

+

Yes

+

Array of strings

+

AZs.

+

An AZ is a physical region where resources use independent power supply and networks. AZs are physically isolated but interconnected through an internal network. To enhance application availability, create gateways in different AZs.

+

To obtain AZ information, call the API used to query AZs.

+

bandwidth_size

+

No

+

Integer

+

Outbound access bandwidth.

+

This parameter is required if public outbound access is enabled for the gateway. After you configure the bandwidth for the gateway, users can access resources on public networks. The minimum value is 5.

+

Default: 5

+

bandwidth_charging_mode

+

No

+

String

+

Billing type of the public outbound access bandwidth. This parameter is required if public outbound access is enabled for the gateway.

+
  • bandwidth: billed by bandwidth
  • ipv6_enable: not supported currently
+

Default: bandwidth

+

Enumeration values:

+
  • bandwidth
  • ipv6_enable
+

loadbalancer_provider

+

No

+

String

+

Type of the load balancer used by the gateway.

+
  • elb: Elastic Load Balancer (available only in certain regions)
+

Enumeration values:

+
  • elb
+

tags

+

No

+

Array of TmsKeyValue objects

+

Tags.

+

A maximum of 20 tags can be created for a gateway.

+

Array Length: 0 - 20

+

vpcep_service_name

+

No

+

String

+

Name of a VPC endpoint service.

+

It can contain max. 16 characters, including letters, digits, hyphens (-), and underscores.

+

If this parameter is not specified, the system automatically generates a name in the "{region}.apig.{service_id}" format.

+

If this parameter is specified, the system automatically generates a name in the "{region}.{vpcep_service_name}.{service_id}" format.

+

After the gateway is created, you can modify this name on the Gateways > VPC Endpoints page.

+

ingress_bandwidth_size

+

No

+

Integer

+

Public inbound access bandwidth.

+

This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb. After you bind an EIP to the gateway, users can access APIs in the gateway from public networks using the EIP. The minimum value is 5.

+

Default: 5

+

ingress_bandwidth_charging_mode

+

No

+

String

+

Billing type of the public inbound access bandwidth. This parameter is required if public inbound access is enabled for the gateway and loadbalancer_provider is set to elb.

+
  • bandwidth: billed by bandwidth
+

Default: bandwidth

+

Enumeration values:

+
  • bandwidth
+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 TmsKeyValue

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

Key.

+

Include UTF-8 letters, digits, spaces, or special characters (_.:=+-@).

+

Do not start with _sys_ because it is a system label.

+

Minimum: 1

+

Maximum: 128

+

value

+

No

+

String

+

Value.

+

You can enter letters, digits, and spaces or other special characters (_.:/=+-@) in UTF-8 format.

+

Minimum: 0

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 202

+ +
+ + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

instance_id

+

String

+

Gateway ID.

+

message

+

String

+

Information about the gateway creation task.

+

job_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating a gateway with network and security group configurations

+
{
+  "available_zone_ids" : [ "xx-xxx-7b", "xx-xxx-7a" ],
+  "bandwidth_size" : 5,
+  "description" : "test create instance",
+  "eip_id" : "41f961ab-2bdd-4ca7-9b59-cfc4fcef10c9",
+  "enterprise_project_id" : "0",
+  "instance_name" : "apig-demo",
+  "maintain_begin" : "22:00:00",
+  "maintain_end" : "02:00:00",
+  "security_group_id" : "36d0ec18-bd10-4da7-86f3-ad7a5ddc55d7",
+  "spec_id" : "PROFESSIONAL",
+  "subnet_id" : "a938121c-11c4-4c91-b983-bc9acd347bb5",
+  "vpc_id" : "0957108c-257c-4ce0-9e93-527d279ce763"
+}
+
+

Example Responses

Status code: 202

+

Accepted

+
{
+  "instance_id" : "6a7d71827fd54572b1f31aa9548fcc81",
+  "message" : "JOB_ASSIGNED_FOR_PROVISIONING_0003I:The job JOB-bdb370eb6f4c4c73b61b95a9da38beb5 has been assigned to the instance 6a7d71827fd54572b1f31aa9548fcc81 for running provisioning.",
+  "job_id" : "JOB-edbac2355fb7433e98f173ea2e452e2d"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIC.7211",
+  "error_msg" : "Parameter value does not match the rules, parameter name[maintainBegin]"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7301",
+  "error_msg" : "Instance spec not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

202

+

Accepted

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateMemberGroup.html b/docs/apig/api-ref/CreateMemberGroup.html new file mode 100644 index 00000000..37e26ab8 --- /dev/null +++ b/docs/apig/api-ref/CreateMemberGroup.html @@ -0,0 +1,660 @@ + + +

Adding or Updating a Backend Server Group of a VPC Channel

+

Function

When creating a backend server group for a VPC channel, you can determine whether to associate backend instances with the group to facilitate backend server node management.

+

If a backend server group with the specified name already exists, the backend server group information is updated. If the request body contains multiple backend server definitions with the same address, the first definition is used.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

member_groups

+

No

+

Array of MemberGroupCreate objects

+

Backend server groups.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 MemberGroupCreate

Parameter

+

Mandatory

+

Type

+

Description

+

member_group_name

+

Yes

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

No

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

No

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

No

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

No

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

No

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

No

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 MicroserviceLabel

Parameter

+

Mandatory

+

Type

+

Description

+

label_name

+

Yes

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

Yes

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

member_groups

+

Array of MemberGroupInfo objects

+

Backend server groups of the VPC channel.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 MemberGroupInfo

Parameter

+

Type

+

Description

+

member_group_name

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

member_group_id

+

String

+

ID of the backend server group of the VPC channel.

+

create_time

+

String

+

Time when the backend server group is created.

+

update_time

+

String

+

Time when the backend server group is updated.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 MicroserviceLabel

Parameter

+

Type

+

Description

+

label_name

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 201

+

Created

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified, parameter name:name"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateOrDeletePublishRecordForApiV2.html b/docs/apig/api-ref/CreateOrDeletePublishRecordForApiV2.html new file mode 100644 index 00000000..ecc117d0 --- /dev/null +++ b/docs/apig/api-ref/CreateOrDeletePublishRecordForApiV2.html @@ -0,0 +1,419 @@ + + +

Publishing an API or Taking an API Offline

+

Function

This API is used to publish an API or take an API offline.

+

An API can be called only in an environment where the API has been published. APIs that have not been published cannot be called.

+

You can remove an API from an environment in which it has been published. After this operation, the API can no longer be called in the environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/apis/action

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

action

+

Yes

+

String

+

Operation to perform.

+
  • online: publish APIs

    +
  • offline: take APIs offline

    +
+

Enumeration values:

+
  • online

    +
  • offline

    +
+

env_id

+

Yes

+

String

+

ID of the environment in which the API will be published.

+

api_id

+

Yes

+

String

+

ID of the API to be published or taken offline.

+

remark

+

No

+

String

+

Description about the publishing. It cannot exceed 255 characters.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

publish_id

+

String

+

Publication record ID.

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

env_id

+

String

+

ID of the environment in which the API has been published.

+

remark

+

String

+

Description about the publication.

+

publish_time

+

String

+

Publication time.

+

version_id

+

String

+

API version currently in use.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Publishing an API in an environment

+
{
+  "action" : "online",
+  "api_id" : "5f918d104dc84480a75166ba99efff21",
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "api_id" : "5f918d104dc84480a75166ba99efff21",
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "publish_id" : "9191cdb430724d4b8586ed7f1b962ca2",
+  "publish_time" : "2020-08-03T01:36:00.592970615Z",
+  "version_id" : "ee1a5a38d3d3493abf1dc4ed6cacfa0b"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:action. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreatePlugin.html b/docs/apig/api-ref/CreatePlugin.html new file mode 100644 index 00000000..ec27ea82 --- /dev/null +++ b/docs/apig/api-ref/CreatePlugin.html @@ -0,0 +1,586 @@ + + +

Creating a Plug-in

+

Function

Plug-in information.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/plugins

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

plugin_name

+

Yes

+

String

+

Plug-in name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

plugin_type

+

Yes

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.

    +
  • set_resp_headers: HTTP response header management.

    +
  • kafka_log: Kafka log push.

    +
  • breaker: Circuit breaker.

    +
  • rate_limit: Request throttling.

    +
  • third_auth: Third-party authentication.

    +
+

Enumeration values:

+
  • cors

    +
  • set_resp_headers

    +
  • kafka_log

    +
  • breaker

    +
  • rate_limit

    +
  • third_auth

    +
+

plugin_scope

+

Yes

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global

    +
+

plugin_content

+

Yes

+

String

+

Plug-in content in JSON format. For details, see the model definition.

+
  • CorsPluginContent

    +
  • SetRespHeadersContent

    +
  • KafkaLogContent

    +
  • BreakerContent

    +
  • RateLimitContent

    +
  • ThirdAuthContent

    +
+

Maximum: 65535

+

remark

+

No

+

String

+

Plug-in description, with a maximum of 255 characters.

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

plugin_id

+

String

+

Plug-in ID.

+

plugin_name

+

String

+

Plug-in name. Start with a letter, and include only letters, digits, hyphens (-), and underscores(_). (3 to 255 characters)

+

plugin_type

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.

    +
  • set_resp_headers: HTTP response header management.

    +
  • kafka_log: Kafka log push.

    +
  • breaker: Circuit breaker.

    +
  • rate_limit: Request throttling.

    +
  • third_auth: Third-party authentication.

    +
+

Enumeration values:

+
  • cors

    +
  • set_resp_headers

    +
  • kafka_log

    +
  • breaker

    +
  • rate_limit

    +
  • third_auth

    +
+

plugin_scope

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global

    +
+

plugin_content

+

String

+

Plug-in content in JSON format. For details, see the model definition.

+
  • CorsPluginContent

    +
  • SetRespHeadersContent

    +
  • KafkaLogContent

    +
  • BreakerContent

    +
  • RateLimitContent

    +
  • ThirdAuthContent

    +
+

Maximum: 65535

+

remark

+

String

+

Plug-in description, with a maximum of 255 characters.

+

Maximum: 255

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 201

+

OK

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3326",
+  "error_msg" : "The plugin name already exists"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreatePostPayResizeOrder.html b/docs/apig/api-ref/CreatePostPayResizeOrder.html new file mode 100644 index 00000000..edb8b168 --- /dev/null +++ b/docs/apig/api-ref/CreatePostPayResizeOrder.html @@ -0,0 +1,274 @@ + + +

Modifying the Specifications of a Pay-Per-Use Gateway

+

Function

This API is used to creat a specification change order of a pay-per-use gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/postpaid-resize

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

spec_id

+

No

+

String

+

Target gateway specifications.

+
+
+
+

Response Parameters

Status code: 202

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

instance_id

+

String

+

Gateway ID.

+

message

+

String

+

Gateway scale-out information.

+

job_id

+

String

+

Task ID.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

{
+  "spec_id" : "PROFESSIONAL"
+}
+
+

Example Responses

Status code: 200

+

ACCEPTED

+
{
+  "instance_id" : "6a7d71827fd54572b1f31aa9548fcc81",
+  "message" : "JOB_ASSIGNED_FOR_RESIZE_0086I:The job JOB-5acb75c7565e42c997954774456eac79 is assigned to resize instance.",
+  "job_id" : "JOB-5acb75c7565e42c997954774456eac79"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

ACCEPTED

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateRequestThrottlingPolicyV2.html b/docs/apig/api-ref/CreateRequestThrottlingPolicyV2.html new file mode 100644 index 00000000..5f109edb --- /dev/null +++ b/docs/apig/api-ref/CreateRequestThrottlingPolicyV2.html @@ -0,0 +1,532 @@ + + +

Creating a Request Throttling Policy

+

Function

After an API goes online, the system attaches a request throttling policy to it by default. The API provider can change the request throttling policy based on the service capabilities and load of the API. A request throttling policy restricts the maximum number of times an API can be called within a specified period.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/throttles

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

app_call_limits

+

No

+

Integer

+

Maximum number of times the API can be accessed by an app within the same period. The value of this parameter cannot exceed the user call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

name

+

Yes

+

String

+

Request throttling policy name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

time_unit

+

Yes

+

String

+

Time unit for limiting the number of API calls.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

remark

+

No

+

String

+

Description of the request throttling policy, which can contain a maximum of 255 characters.

+

api_call_limits

+

Yes

+

Integer

+

Maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS. You can change the default limit to meet service requirements. The maximum value is 2,147,483,647. Enter a positive integer.

+

type

+

No

+

Integer

+

Type of the request throttling policy.

+
  • 1: API-based, limiting the maximum number of times a single API bound to the policy can be called within the specified period.

    +
  • 2: API-shared, limiting the maximum number of times all APIs bound to the policy can be called within the specified period.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

enable_adaptive_control

+

No

+

String

+

Indicates whether to enable dynamic request throttling.

+
  • TRUE

    +
  • FALSE

    +
+

Currently, this parameter is not supported.

+

user_call_limits

+

No

+

Integer

+

Maximum number of times the API can be accessed by a user within the same period. The value of this parameter cannot exceed the Max. API Requests. The maximum value is 2,147,483,647. Enter a positive integer.

+

time_interval

+

Yes

+

Integer

+

Period of time for limiting the number of API calls. This parameter applies with each API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

ip_call_limits

+

No

+

Integer

+

Maximum number of times the API can be accessed by an IP address within the same period. The value of this parameter cannot exceed the API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

app_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an app within the same period. The value of this parameter cannot exceed the user call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

name

+

String

+

Request throttling policy name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

time_unit

+

String

+

Time unit for limiting the number of API calls.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

remark

+

String

+

Description of the request throttling policy, which can contain a maximum of 255 characters.

+

api_call_limits

+

Integer

+

Maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS. You can change the default limit to meet service requirements. The maximum value is 2,147,483,647. Enter a positive integer.

+

type

+

Integer

+

Type of the request throttling policy.

+
  • 1: API-based, limiting the maximum number of times a single API bound to the policy can be called within the specified period.

    +
  • 2: API-shared, limiting the maximum number of times all APIs bound to the policy can be called within the specified period.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

enable_adaptive_control

+

String

+

Indicates whether to enable dynamic request throttling.

+
  • TRUE

    +
  • FALSE

    +
+

Currently, this parameter is not supported.

+

user_call_limits

+

Integer

+

Maximum number of times the API can be accessed by a user within the same period. The value of this parameter cannot exceed the Max. API Requests. The maximum value is 2,147,483,647. Enter a positive integer.

+

time_interval

+

Integer

+

Period of time for limiting the number of API calls. This parameter applies with each API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

ip_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an IP address within the same period. The value of this parameter cannot exceed the API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

id

+

String

+

Request throttling policy ID.

+

bind_num

+

Integer

+

Number of APIs to which the request throttling policy has been bound.

+

is_inclu_special_throttle

+

Integer

+

Indicates whether an excluded request throttling configuration has been created.

+
  • 1: yes

    +
  • 2: no

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

create_time

+

String

+

Creation time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Creating a request throttling policy (max. API requests: 800; max. user requests: 500; max. app requests: 300; max. IP address requests: 600; period: 1s)

+
{
+  "api_call_limits" : 800,
+  "app_call_limits" : 300,
+  "enable_adaptive_control" : "FALSE",
+  "ip_call_limits" : 600,
+  "name" : "throttle_demo",
+  "remark" : "Total: 800 calls/second; user: 500 calls/second; app: 300 calls/second; IP address: 600 calls/second",
+  "time_interval" : 1,
+  "time_unit" : "SECOND",
+  "type" : 1,
+  "user_call_limits" : 500
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "name" : "throttle_demo",
+  "create_time" : "2020-07-31T08:44:02.205366118Z",
+  "remark" : "Total: 800 calls/second; user: 500 calls/second; app: 300 calls/second; IP address: 600 calls/second",
+  "type" : 1,
+  "time_interval" : 1,
+  "ip_call_limits" : 600,
+  "app_call_limits" : 300,
+  "time_unit" : "SECOND",
+  "api_call_limits" : 800,
+  "id" : "3437448ad06f4e0c91a224183116e965",
+  "user_call_limits" : 500,
+  "enable_adaptive_control" : "FALSE",
+  "bind_num" : 0,
+  "is_inclu_special_throttle" : 2
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateSignatureKeyV2.html b/docs/apig/api-ref/CreateSignatureKeyV2.html new file mode 100644 index 00000000..2719dc96 --- /dev/null +++ b/docs/apig/api-ref/CreateSignatureKeyV2.html @@ -0,0 +1,492 @@ + + +

Creating a Signature Key

+

Function

It is a good practice to provide a protection mechanism for APIs to ensure access security. For example, authenticating API request sources and denying the access from unauthorized sources.

+

A signature key is a protection mechanism in this case.

+

Create a signature key and bind it to an API. When requesting the API, APIG uses the signature key to encrypt request parameter data and generate a signature. The backend service of the API verifies requests by using the signature. Unauthorized requests will be denied to protect the API against attacks from unknown sources.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/signs

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Signature key name. It can contain letters, digits, and underscores(_) and must start with a letter.

+

Minimum: 3

+

Maximum: 64

+

sign_type

+

No

+

String

+

Signature key type.

+
  • hmac
  • basic
  • public_key
  • aes
+

To use a basic signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

To use a public_key signature key, ensure that the public_key feature has been configured for your gateway. For details, see "Appendix" > "Supported Features". If your gateway does not support this feature, contact technical support to enable it.

+

To use an AES signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

Enumeration values:

+
  • hmac
  • basic
  • public_key
  • aes
+

sign_key

+

No

+

String

+

Signature key.

+
  • hmac: The value contains 8 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter or digit. If not specified, a key is automatically generated.
  • basic: The value contains 4 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter. If not specified, a key is automatically generated.
  • public_key: The value contains 8 to 512 characters, including letters, digits, and special characters (_-+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.
  • aes: The value contains 16 characters if the aes-128-cfb algorithm is used, or 32 characters if the aes-256-cfb algorithm is used. Letters, digits, and special characters (_-!@#$%+/=) are allowed. It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.
+

sign_secret

+

No

+

String

+

Signature secret.

+
  • hmac: The value contains 16 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.
  • basic: The value contains 8 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.
  • public_key: The value can contain 16 to 2048 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.
  • aes: The value contains 16 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.
+

sign_algorithm

+

No

+

String

+

Signature algorithm. Specify a signature algorithm only when using an AES signature key. By default, no algorithm is used.

+

Enumeration values:

+
  • aes-128-cfb
  • aes-256-cfb
+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Signature key name. It can contain letters, digits, and underscores(_) and must start with a letter.

+

Minimum: 3

+

Maximum: 64

+

sign_type

+

String

+

Signature key type.

+
  • hmac
  • basic
  • public_key
  • aes
+

To use a basic signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

To use a public_key signature key, ensure that the public_key feature has been configured for your gateway. For details, see "Appendix" > "Supported Features". If your gateway does not support this feature, contact technical support to enable it.

+

To use an AES signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

Enumeration values:

+
  • hmac
  • basic
  • public_key
  • aes
+

sign_key

+

String

+

Signature key.

+
  • hmac: The value contains 8 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter or digit. If not specified, a key is automatically generated.
  • basic: The value contains 4 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter. If not specified, a key is automatically generated.
  • public_key: The value contains 8 to 512 characters, including letters, digits, and special characters (_-+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.
  • aes: The value contains 16 characters if the aes-128-cfb algorithm is used, or 32 characters if the aes-256-cfb algorithm is used. Letters, digits, and special characters (_-!@#$%+/=) are allowed. It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.
+

sign_secret

+

String

+

Signature secret.

+
  • hmac: The value contains 16 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.
  • basic: The value contains 8 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.
  • public_key: The value can contain 16 to 2048 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.
  • aes: The value contains 16 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.
+

sign_algorithm

+

String

+

Signature algorithm. Specify a signature algorithm only when using an AES signature key. By default, no algorithm is used.

+

Enumeration values:

+
  • aes-128-cfb
  • aes-256-cfb
+

update_time

+

String

+

Update time.

+

create_time

+

String

+

Creation time.

+

id

+

String

+

Signature key ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 412

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Create a signature key with a custom key and secret.

+
{
+  "name" : "signature_demo",
+  "sign_key" : "signkeysignkey",
+  "sign_secret" : "sig************ret"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "sign_secret" : "sig************ret",
+  "update_time" : "2020-08-03T03:39:38.119032888Z",
+  "create_time" : "2020-08-03T03:39:38.119032659Z",
+  "name" : "signature_demo",
+  "id" : "0b0e8f456b8742218af75f945307173c",
+  "sign_key" : "signkeysignkey",
+  "sign_type" : "hmac"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
+}
+

Status code: 412

+

PreconditionFailed

+
{
+  "error_code" : "APIG.3548",
+  "error_msg" : "sign_type=public_key not supported by instance 6a29d4e9-69a0-412a-aabe-9898ec0903b0"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

412

+

PreconditionFailed

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateSpecialThrottlingConfigurationV2.html b/docs/apig/api-ref/CreateSpecialThrottlingConfigurationV2.html new file mode 100644 index 00000000..01c1f675 --- /dev/null +++ b/docs/apig/api-ref/CreateSpecialThrottlingConfigurationV2.html @@ -0,0 +1,434 @@ + + +

Creating an Excluded Request Throttling Configuration

+

Function

A request throttling policy controls the maximum number of times an API can be accessed within a specified period and the maximum numbers of times the API can be accessed by a tenant or an app within the same period.

+

If necessary, you can create an excluded request throttling configuration to specify the threshold of API calls for a specific app. For example, if you set the API call threshold for all apps to 500 calls/minute, you can specify the API call threshold of app 1 as 800 calls/minute.

+

You can add excluded apps or tenants to a request throttling policy.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}/throttle-specials

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

throttle_id

+

Yes

+

String

+

Request throttling policy ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

call_limits

+

Yes

+

Integer

+

Maximum number of times an excluded object can access an API within the throttling period.

+

object_id

+

Yes

+

String

+

Excluded app ID or account ID.

+

object_type

+

Yes

+

String

+

Excluded object type.

+

Enumeration values:

+
  • APP

    +
  • USER

    +
+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Excluded configuration ID.

+

call_limits

+

Integer

+

Maximum number of times an excluded object can access an API within the throttling period.

+

apply_time

+

String

+

Throttling period.

+

app_name

+

String

+

App name.

+

app_id

+

String

+

App ID.

+

object_id

+

String

+

ID of an object specified in the excluded configuration.

+

object_type

+

String

+

Excluded object type, which can be APP or USER.

+

object_name

+

String

+

Name of an app or a tenant to which the excluded configuration applies.

+

throttle_id

+

String

+

Request throttling policy ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Adding an excluded app to a request throttling policy with threshold 150

+
{
+  "call_limits" : 150,
+  "object_id" : "356de8eb7a8742168586e5daf5339965",
+  "object_type" : "APP"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "call_limits" : 150,
+  "app_name" : "app_demo",
+  "object_name" : "app_demo",
+  "object_id" : "356de8eb7a8742168586e5daf5339965",
+  "throttle_id" : "3437448ad06f4e0c91a224183116e965",
+  "apply_time" : "2020-08-04T02:40:56.717710961Z",
+  "id" : "a3e9ff8db55544ed9db91d8b048770c0",
+  "app_id" : "356de8eb7a8742168586e5daf5339965",
+  "object_type" : "APP"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2003",
+  "error_msg" : "The parameter value is too large,parameterName:call_limits. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CreateVpcChannelV2.html b/docs/apig/api-ref/CreateVpcChannelV2.html new file mode 100644 index 00000000..6adbccf0 --- /dev/null +++ b/docs/apig/api-ref/CreateVpcChannelV2.html @@ -0,0 +1,1565 @@ + + +

Creating a VPC Channel

+

Function

This API is used to create a VPC channel from APIG to your private VPC resources. Afterwards, when creating an API, you can configure your backend service to use this VPC channel so that APIG can directly access your private VPC resources.

+

You can create a maximum of 30 VPC channels.

+
+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

VPC channel name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

port

+

Yes

+

Integer

+

Host port of the VPC channel.

+

Range: 1–65535.

+

balance_strategy

+

Yes

+

Integer

+

Distribution algorithm.

+
  • 1: Weighted round robin (WRR).
  • 2: Weighted least connections (WLC).
  • 3: Source hashing.
  • 4: URI hashing.
+

Default: 1

+

Enumeration values:

+
  • 1
  • 2
  • 3
  • 4
+

member_type

+

Yes

+

String

+

Member type of the VPC channel.

+
  • ip
  • ecs
+

Default: ecs

+

Enumeration values:

+
  • ip
  • ecs
+

type

+

No

+

Integer

+

VPC channel type. The default type is server.

+
  • 2: Server type.
  • 3: Microservice type.
+

Default: 2

+

Enumeration values:

+
  • 2
  • 3
+

dict_code

+

No

+

String

+

Dictionary code of the VPC channel.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

This parameter is currently not supported.

+

Minimum: 3

+

Maximum: 64

+

member_groups

+

No

+

Array of MemberGroupCreate objects

+

Backend server groups of the VPC channel.

+

members

+

No

+

Array of MemberInfo objects

+

Backend instances of the VPC channel.

+

vpc_health_config

+

No

+

VpcHealthConfig object

+

Health check details.

+

microservice_info

+

No

+

MicroServiceCreate object

+

Microservice details.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 MemberGroupCreate

Parameter

+

Mandatory

+

Type

+

Description

+

member_group_name

+

Yes

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

No

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

No

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

No

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

No

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

No

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

No

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 MicroserviceLabel

Parameter

+

Mandatory

+

Type

+

Description

+

label_name

+

Yes

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

Yes

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 MemberInfo

Parameter

+

Mandatory

+

Type

+

Description

+

host

+

No

+

String

+

Backend server address.

+

This parameter is required when the member type is IP address.

+

Maximum: 64

+

weight

+

No

+

Integer

+

Weight.

+

The higher the weight is, the more requests a backend service will receive.

+

Minimum: 0

+

Maximum: 10000

+

is_backup

+

No

+

Boolean

+

Indicates whether the backend service is a standby node.

+

After you enable this function, the backend service serves as a standby node. It works only when all non-standby nodes are faulty.

+

This function is supported only when your gateway has been upgraded to the corresponding version. If your gateway does not support this function, contact technical support.

+

Default: false

+

member_group_name

+

No

+

String

+

Backend server group name. The server group facilitates backend service address modification.

+

status

+

No

+

Integer

+

Backend server status.

+
  • 1: available
  • 2: unavailable
+

Enumeration values:

+
  • 1
  • 2
+

port

+

No

+

Integer

+

Backend server port.

+

Minimum: 0

+

Maximum: 65535

+

ecs_id

+

No

+

String

+

Backend server ID.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

+

Maximum: 255

+

ecs_name

+

No

+

String

+

Backend server name.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 VpcHealthConfig

Parameter

+

Mandatory

+

Type

+

Description

+

protocol

+

Yes

+

String

+

Protocol for performing health checks on backend servers in the VPC channel.

+
  • TCP
  • HTTP
  • HTTPS
+

Enumeration values:

+
  • TCP
  • HTTP
  • HTTPS
+

path

+

No

+

String

+

Destination path for health checks. This parameter is required if protocol is set to http or https.

+

method

+

No

+

String

+

Request method for health checks.

+

Default: GET

+

Enumeration values:

+
  • GET
  • HEAD
+

port

+

No

+

Integer

+

Destination port for health checks. If this parameter is not specified or set to 0, the host port of the VPC channel is used.

+

If this parameter is set to a non-zero value, the corresponding port is used for health checks.

+

Minimum: 0

+

Maximum: 65535

+

threshold_normal

+

Yes

+

Integer

+

Healthy threshold. It refers to the number of consecutive successful checks required for a backend server to be considered healthy.

+

Minimum: 1

+

Maximum: 10

+

threshold_abnormal

+

Yes

+

Integer

+

Unhealthy threshold, which refers to the number of consecutive failed checks required for a backend server to be considered unhealthy.

+

Minimum: 1

+

Maximum: 10

+

time_interval

+

Yes

+

Integer

+

Interval between consecutive checks. Unit: s. The value must be greater than the value of timeout.

+

Minimum: 1

+

Maximum: 300

+

http_code

+

No

+

String

+

Response codes for determining a successful HTTP response. The value can be any integer within 100–599 in one of the following formats:

+
  • Multiple values, for example, 200,201,202
  • Range, for example, 200-299
  • Multiple values and ranges, for example, 201,202,210-299. This parameter is required if protocol is set to http.
+

enable_client_ssl

+

No

+

Boolean

+

Indicates whether to enable two-way authentication. If this function is enabled, the certificate specified in the backend_client_certificate configuration item of the gateway is used.

+

Default: false

+

status

+

No

+

Integer

+

Health check result.

+
  • 1: available
  • 2: unavailable
+

Enumeration values:

+
  • 1
  • 2
+

timeout

+

Yes

+

Integer

+

Timeout for determining whether a health check fails. Unit: s. The value must be less than the value of time_interval.

+

Minimum: 1

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 8 MicroServiceCreate

Parameter

+

Mandatory

+

Type

+

Description

+

service_type

+

No

+

String

+

Microservice type. Options:

+
  • CSE: CSE microservice registration center
  • CCE: CCE workload
+

Enumeration values:

+
  • CSE
  • CCE
+

cse_info

+

No

+

MicroServiceInfoCSEBase object

+

CSE microservice details. This parameter is required if service_type is set to CSE.

+

cce_info

+

No

+

MicroServiceInfoCCEBase object

+

CCE workload details. This parameter is required if service_type is set to CCE. Either app_name or any of label_key and label_value must be set. If only app_name is set, label_key='app' and label_value=app_name.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 9 MicroServiceInfoCSEBase

Parameter

+

Mandatory

+

Type

+

Description

+

engine_id

+

Yes

+

String

+

Microservice engine ID.

+

Maximum: 64

+

service_id

+

Yes

+

String

+

Microservice ID.

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 MicroServiceInfoCCEBase

Parameter

+

Mandatory

+

Type

+

Description

+

cluster_id

+

Yes

+

String

+

CCE cluster ID.

+

Maximum: 64

+

namespace

+

Yes

+

String

+

Namespace.

+

Maximum: 64

+

workload_type

+

Yes

+

String

+

Workload type.

+
  • deployment
  • statefulset
  • daemonset
+

Enumeration values:

+
  • deployment
  • statefulset
  • daemonset
+

app_name

+

No

+

String

+

App name. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_key

+

No

+

String

+

Service label key. Start with a letter or digit, and use only letters, digits, and these special characters: -_./:(). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_value

+

No

+

String

+

Service label value. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

VPC channel name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

port

+

Integer

+

Host port of the VPC channel.

+

Range: 1–65535.

+

balance_strategy

+

Integer

+

Distribution algorithm.

+
  • 1: Weighted round robin (WRR).
  • 2: Weighted least connections (WLC).
  • 3: Source hashing.
  • 4: URI hashing.
+

Default: 1

+

Enumeration values:

+
  • 1
  • 2
  • 3
  • 4
+

member_type

+

String

+

Member type of the VPC channel.

+
  • ip
  • ecs
+

Default: ecs

+

Enumeration values:

+
  • ip
  • ecs
+

type

+

Integer

+

VPC channel type. The default type is server.

+
  • 2: Server type.
  • 3: Microservice type.
+

Default: 2

+

Enumeration values:

+
  • 2
  • 3
+

dict_code

+

String

+

Dictionary code of the VPC channel.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

This parameter is currently not supported.

+

Minimum: 3

+

Maximum: 64

+

create_time

+

String

+

Time when the VPC channel is created.

+

id

+

String

+

VPC channel ID.

+

status

+

Integer

+

VPC channel status.

+
  • 1: normal
  • 2: abnormal
+

Enumeration values:

+
  • 1
  • 2
+

member_groups

+

Array of MemberGroupInfo objects

+

Backend server groups.

+

microservice_info

+

MicroServiceInfo object

+

Microservice information.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 MemberGroupInfo

Parameter

+

Type

+

Description

+

member_group_name

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

member_group_id

+

String

+

ID of the backend server group of the VPC channel.

+

create_time

+

String

+

Time when the backend server group is created.

+

update_time

+

String

+

Time when the backend server group is updated.

+
+
+ +
+ + + + + + + + + + + + + +
Table 13 MicroserviceLabel

Parameter

+

Type

+

Description

+

label_name

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 14 MicroServiceInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Microservice ID.

+

instance_id

+

String

+

Gateway ID.

+

service_type

+

String

+

Microservice type. Options:

+
  • CSE: CSE microservice registration center
  • CCE: CCE workload
+

Enumeration values:

+
  • CSE
  • CCE
+

cse_info

+

MicroServiceInfoCSE object

+

CSE microservice details.

+

cce_info

+

MicroServiceInfoCCE object

+

CCE microservice workload details.

+

update_time

+

String

+

Microservice update time.

+

create_time

+

String

+

Microservice creation time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 15 MicroServiceInfoCSE

Parameter

+

Type

+

Description

+

engine_id

+

String

+

Microservice engine ID.

+

Maximum: 64

+

service_id

+

String

+

Microservice ID.

+

Maximum: 64

+

engine_name

+

String

+

Microservice engine name.

+

service_name

+

String

+

Microservice name.

+

register_address

+

String

+

Registration center address.

+

cse_app_id

+

String

+

App to which the microservice belongs.

+

version

+

String

+

Microservice version, which has been discarded and is reflected in the version of the backend server group.

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 16 MicroServiceInfoCCE

Parameter

+

Type

+

Description

+

cluster_id

+

String

+

CCE cluster ID.

+

Maximum: 64

+

namespace

+

String

+

Namespace.

+

Maximum: 64

+

workload_type

+

String

+

Workload type.

+
  • deployment
  • statefulset
  • daemonset
+

Enumeration values:

+
  • deployment
  • statefulset
  • daemonset
+

app_name

+

String

+

App name. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_key

+

String

+

Service label key. Start with a letter or digit, and use only letters, digits, and these special characters: -_./:(). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_value

+

String

+

Service label value. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

cluster_name

+

String

+

CCE cluster name.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 17 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 18 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 19 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 20 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 21 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 201

+

Created

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified, parameter name:members"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/CredentialManagement.html b/docs/apig/api-ref/CredentialManagement.html new file mode 100644 index 00000000..1de64aa4 --- /dev/null +++ b/docs/apig/api-ref/CredentialManagement.html @@ -0,0 +1,46 @@ + + +

Credential Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/CredentialQuotaPoliciesManagement.html b/docs/apig/api-ref/CredentialQuotaPoliciesManagement.html new file mode 100644 index 00000000..e19c592f --- /dev/null +++ b/docs/apig/api-ref/CredentialQuotaPoliciesManagement.html @@ -0,0 +1,32 @@ + + +

Credential Quota Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/CustomAuthorizerManagement.html b/docs/apig/api-ref/CustomAuthorizerManagement.html new file mode 100644 index 00000000..94fe2f45 --- /dev/null +++ b/docs/apig/api-ref/CustomAuthorizerManagement.html @@ -0,0 +1,24 @@ + + +

Custom Authorizer Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/DebugApiV2.html b/docs/apig/api-ref/DebugApiV2.html new file mode 100644 index 00000000..2fb7c1d3 --- /dev/null +++ b/docs/apig/api-ref/DebugApiV2.html @@ -0,0 +1,503 @@ + + +

Debugging an API

+

Function

This API is used to debug an API in a specified environment. The API caller must have the permissions required for accessing this API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/apis/debug/{api_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

body

+

No

+

String

+

Message body, with a maximum of 2,097,152 bytes.

+

header

+

No

+

Map<String,Array<String>>

+

Header parameters, with each value being a character string array. Each parameter name must meet the following requirements:

+
  • Contains letters, digits, periods (.), or hyphens (-).

    +
  • Starts with a letter, with a maximum of 32 bytes.

    +
  • Case-insensitive and cannot start with X-Apig- or X-Sdk-.

    +
  • Case-insensitive and cannot be X-Stage.

    +
  • Case-insensitive and cannot be X-Auth-Token or Authorization when mode is set to MARKET or CONSUMER.

    +
+
NOTE:

Each header name is normalized before use. For example, x-MY-hEaDer is normalized as X-My-Header.

+
+

method

+

Yes

+

String

+

API request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
+

mode

+

Yes

+

String

+

Debugging mode:

+
  • DEVELOPER: Debug the definitions of an API that has not been published.

    +
  • CONSUMER: Debug the definitions of an API that has been published in a specified environment.

    +
+
NOTE:

In DEVELOPER mode, the API caller must be the API provider.

+
+

+

In CONSUMER mode, the API caller must be the API provider or has been authorized to access the API in a specific environment.

+

path

+

Yes

+

String

+

Request path of the API, starting with a slash (/) and containing up to 1024 characters.

+
NOTE:

The request path must meet the requirements so that it can be correctly decoded after percent-encoding.

+
+

query

+

No

+

Map<String,Array<String>>

+

Query strings, with each value being a character string array. Each parameter name must meet the following requirements:

+
  • Contains letters, digits, periods (.), hyphens (-), or underscores (_).

    +
  • Starts with a letter, with a maximum of 32 bytes.

    +
  • Case-insensitive and cannot start with X-Apig- or X-Sdk-.

    +
  • Case-insensitive and cannot be X-Stage.

    +
+

scheme

+

Yes

+

String

+

Request protocol.

+
  • HTTP

    +
  • HTTPS

    +
+

app_key

+

No

+

String

+

AppKey used in the debugging request.

+

app_secret

+

No

+

String

+

AppSecret used in the debugging request.

+

domain

+

No

+

String

+

Access domain name of the API. If no value is specified, one of the following default values will be used based on the mode:

+
  • DEVELOPER: The subdomain name of the API group will be used.

    +
  • MARKET: This parameter is not used currently.

    +
  • CONSUMER: The subdomain name of the API group will be used.

    +
+

stage

+

No

+

String

+

Running environment specified by the debugging request. This parameter is valid only when mode is set to CONSUMER. If this parameter is not specified, the following default value is used:

+
  • CONSUMER RELEASE

    +
+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

request

+

String

+

Body of the debugging request.

+

response

+

String

+

Body of the debugging response, with a maximum of 2,097,152 bytes. Any content beyond this threshold will be truncated.

+
NOTE:

Any content beyond the length limit will be truncated, and text [TRUNCATED] will be added to the response body.

+
+

latency

+

Integer

+

Debugging duration in milliseconds.

+

log

+

String

+

Debugging logs.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Debugging an API

+
{
+  "mode" : "DEVELOPER",
+  "scheme" : "HTTPS",
+  "method" : "GET",
+  "path" : "/test/mock"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "request" : "GET /test/mock HTTP/1.1\nHost: c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com\nUser-Agent: APIGatewayDebugClient/1.0\nX-Apig-Mode: debug\n\n",
+  "response" : "HTTP/1.1 200 OK\nTransfer-Encoding: chunked\nConnection: keep-alive\nContent-Type: application/json\nDate: Mon, 03 Aug 2020 02:51:22 GMT\nServer: api-gateway\nX-Apig-Latency: 0\nX-Apig-Ratelimit-Api: remain:99,limit:100,time:1 minute\nX-Apig-Ratelimit-Api-Allenv: remain:14999,limit:15000,time:1 second\nX-Request-Id: d4ec6e33148bdeffe8f55b43472d1251\n\nmock success",
+  "latency" : 5,
+  "log" : ""
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:mode. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 3a955b791bd24b1c9cd94c745f8d1aad does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteAclV2.html b/docs/apig/api-ref/DeleteAclV2.html new file mode 100644 index 00000000..bb2e6b04 --- /dev/null +++ b/docs/apig/api-ref/DeleteAclV2.html @@ -0,0 +1,293 @@ + + +

Deleting an Access Control Policy

+

Function

This API is used to delete an access control policy. Access control policies bound to APIs cannot be deleted.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/acls/{acl_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

acl_id

+

Yes

+

String

+

Access control policy ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3006",
+  "error_msg" : "Access control policy 7eb619ecf2a24943b099833cd24a01ba does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteApiAclBindingV2.html b/docs/apig/api-ref/DeleteApiAclBindingV2.html new file mode 100644 index 00000000..3969cc24 --- /dev/null +++ b/docs/apig/api-ref/DeleteApiAclBindingV2.html @@ -0,0 +1,293 @@ + + +

Unbinding an Access Control Policy

+

Function

This API is used to unbind an access control policy from an API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings/{acl_bindings_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

acl_bindings_id

+

Yes

+

String

+

Binding record ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3010",
+  "error_msg" : "The access control policy binding record does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteApiByVersionIdV2.html b/docs/apig/api-ref/DeleteApiByVersionIdV2.html new file mode 100644 index 00000000..8e30ee74 --- /dev/null +++ b/docs/apig/api-ref/DeleteApiByVersionIdV2.html @@ -0,0 +1,255 @@ + + +

Taking an API Version Offline

+

Function

This API is used to remove an effective version of an API. The removed API cannot be called in the environment in which it took effect.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/apis/versions/{version_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

version_id

+

Yes

+

String

+

API version.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3022",
+  "error_msg" : "The API version does not exist,id:ee1a5a38d3d3493abf1dc4ed6cacfa0b"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteApiGroupV2.html b/docs/apig/api-ref/DeleteApiGroupV2.html new file mode 100644 index 00000000..fc7ee941 --- /dev/null +++ b/docs/apig/api-ref/DeleteApiGroupV2.html @@ -0,0 +1,295 @@ + + +

Deleting an API Group

+

Function

This API is used to delete an API group.

+

If the group to delete contains APIs, take the APIs offline and delete them.

+

All resources (independent domain names and SSL certificates) directly or indirectly associated with the group will be deleted. The operation will also unbind the external domain names from the subdomain name based on the CNAME resolution mode.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 412

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 412

+

PreconditionFailed

+
{
+  "error_code" : "APIG.3415",
+  "error_msg" : "The API group cannot be deleted because it contains APIs,id:47eaed4659db4e99ba2e1b642d5d1323"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

412

+

PreconditionFailed

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteApiV2.html b/docs/apig/api-ref/DeleteApiV2.html new file mode 100644 index 00000000..0b58607c --- /dev/null +++ b/docs/apig/api-ref/DeleteApiV2.html @@ -0,0 +1,294 @@ + + +

Deleting an API

+

Function

This API is used to delete an API.

+

This operation will delete all related resources and binding relationships of the API, such as publication records, backend services, and app authorization information.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 409

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 409

+

Conflict

+
{
+  "error_code" : "APIG.3416",
+  "error_msg" : "The API cannot be deleted because it has been published"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

409

+

Conflict

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteAppAcl.html b/docs/apig/api-ref/DeleteAppAcl.html new file mode 100644 index 00000000..64d9513b --- /dev/null +++ b/docs/apig/api-ref/DeleteAppAcl.html @@ -0,0 +1,293 @@ + + +

Deleting Access Control Settings of an App

+

Function

This API is used to delete the access control settings of a credential.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-acl

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 9ed8b7fe84224de681e7d7a5587e76dc does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteAppCodeV2.html b/docs/apig/api-ref/DeleteAppCodeV2.html new file mode 100644 index 00000000..6c181acd --- /dev/null +++ b/docs/apig/api-ref/DeleteAppCodeV2.html @@ -0,0 +1,302 @@ + + +

Deleting an AppCode

+

Function

This API is used to delete an AppCode. Deleted AppCodes cannot be used for simple authentication.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes/{app_code_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+

app_code_id

+

Yes

+

String

+

AppCode ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 9ed8b7fe84224de681e7d7a5587e76dc does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteAppQuota.html b/docs/apig/api-ref/DeleteAppQuota.html new file mode 100644 index 00000000..efd6ac15 --- /dev/null +++ b/docs/apig/api-ref/DeleteAppQuota.html @@ -0,0 +1,293 @@ + + +

Deleting a Credential Quota

+

Function

This API is used to delete a credential quota. When a credential quota is deleted, the association between the quota and credential is also deleted.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_quota_id

+

Yes

+

String

+

Credential Quota ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "App quota c900c5612dbe451bb43cbcc49cfaf2f3 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteAppV2.html b/docs/apig/api-ref/DeleteAppV2.html new file mode 100644 index 00000000..46698c0b --- /dev/null +++ b/docs/apig/api-ref/DeleteAppV2.html @@ -0,0 +1,294 @@ + + +

Deleting an App

+

Function

This API is used to delete an app.

+

Deleted apps cannot call APIs.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteBackendInstanceV2.html b/docs/apig/api-ref/DeleteBackendInstanceV2.html new file mode 100644 index 00000000..37082ce1 --- /dev/null +++ b/docs/apig/api-ref/DeleteBackendInstanceV2.html @@ -0,0 +1,302 @@ + + +

Removing a Backend Server

+

Function

This API is used to delete a backend instance from a specified VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/{member_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+

member_id

+

Yes

+

String

+

Backend instance ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3024",
+  "error_msg" : "The VPC instance does not exist,id:be63c6260a1043888187f84af39c9f0e"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteCertificateV2.html b/docs/apig/api-ref/DeleteCertificateV2.html new file mode 100644 index 00000000..8c1d9626 --- /dev/null +++ b/docs/apig/api-ref/DeleteCertificateV2.html @@ -0,0 +1,284 @@ + + +

Deleting an SSL Certificate

+

Function

This API is used to delete an SSL certificate. Only certificates that are not bound to any domain name can be deleted.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/certificates/{certificate_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

certificate_id

+

Yes

+

String

+

Certificate ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "App quota c900c5612dbe451bb43cbcc49cfaf2f3 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteCustomAuthorizerV2.html b/docs/apig/api-ref/DeleteCustomAuthorizerV2.html new file mode 100644 index 00000000..82ad32d1 --- /dev/null +++ b/docs/apig/api-ref/DeleteCustomAuthorizerV2.html @@ -0,0 +1,293 @@ + + +

Deleting a Custom Authorizer

+

Function

This API is used to delete a custom authorizer.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/authorizers/{authorizer_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

authorizer_id

+

Yes

+

String

+

Custom authorizer ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3081",
+  "error_msg" : "authorizer with id: 0d982c1ac3da493dae47627b6439fc5c not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteEndpointPermissions.html b/docs/apig/api-ref/DeleteEndpointPermissions.html new file mode 100644 index 00000000..f789a8dc --- /dev/null +++ b/docs/apig/api-ref/DeleteEndpointPermissions.html @@ -0,0 +1,396 @@ + + +

Deleting Whitelist Records of a VPC Endpoint Service

+

Function

This API is used to delete whitelist records of a gateway's VPC endpoint service in batches.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/permissions/batch-delete

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

permissions

+

Yes

+

Array of strings

+

Whitelist records. Each whitelist record is in the format of "iam:domain::Authorized_account_ID".

+

The account ID contains 32 characters, including only letters (a–f) and digits. An asterisk (*) means that all users have access.

+

Array Length: 1 - 50

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

permissions

+

Array of strings

+

Whitelist records. Each whitelist record is in the format of "iam:domain::Authorized_account_ID".

+

The account ID contains 32 characters, including only letters (a–f) and digits. An asterisk (*) means that all users have access.

+

Array Length: 1 - 50

+
+
+

Status code: 401

+ +
+ + + + + + + + + +
Table 6 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + +
Table 8 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + +
Table 10 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 12 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Delete whitelist records for a vpc endpoint service.

+
{
+  "permissions" : [ "iam:domain::7cc2018e40394f7c9692f1713e76234d" ]
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "permissions" : [ "iam:domain::930ba6b0ea64457e8ed1861e596c7a9a" ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Resource Not Found

+
{
+  "error_code" : "APIC.7314",
+  "error_msg" : "Endpoint service not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9007",
+  "error_msg" : "Failed to execute VCPEP request"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Resource Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteEnvironmentV2.html b/docs/apig/api-ref/DeleteEnvironmentV2.html new file mode 100644 index 00000000..77f9cc7b --- /dev/null +++ b/docs/apig/api-ref/DeleteEnvironmentV2.html @@ -0,0 +1,257 @@ + + +

Deleting an Environment

+

Function

This API is used to delete an environment.

+

This operation will cause the APIs published in the environment to become inaccessible to relevant apps and users. Ensure that you have notified users of the deletion, or confirm that the APIs can be removed from the deleted environment.

+

You cannot delete environments where APIs have been published.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/envs/{env_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

env_id

+

Yes

+

String

+

Environment ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3003",
+  "error_msg" : "Environment 7a1ad0c350844ee69479b47df9a881cb does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteEnvironmentVariableV2.html b/docs/apig/api-ref/DeleteEnvironmentVariableV2.html new file mode 100644 index 00000000..b247a8cd --- /dev/null +++ b/docs/apig/api-ref/DeleteEnvironmentVariableV2.html @@ -0,0 +1,255 @@ + + +

Deleting a Variable

+

Function

This API is used to delete an environment variable.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/env-variables/{env_variable_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

env_variable_id

+

Yes

+

String

+

Environment variable ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3011",
+  "error_msg" : "The environment variable does not exist, id: 25054838a624400bbf2267cf5b3a3f70"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteGatewayResponseTypeV2.html b/docs/apig/api-ref/DeleteGatewayResponseTypeV2.html new file mode 100644 index 00000000..e70d40c9 --- /dev/null +++ b/docs/apig/api-ref/DeleteGatewayResponseTypeV2.html @@ -0,0 +1,352 @@ + + +

Deleting the Response of an Error Type

+

Function

This API is used to delete the response of an error type defined for an API group. After the response is deleted, the default response of the error type is used.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}/{response_type}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

response_id

+

Yes

+

String

+

Response ID.

+

response_type

+

Yes

+

String

+

Error type. Options:

+
  • AUTH_FAILURE: IAM or app authentication failed.

    +
  • AUTH_HEADER_MISSING: The identity source is missing.

    +
  • AUTHORIZER_FAILURE: Custom authentication failed.

    +
  • AUTHORIZER_CONF_FAILURE: A custom authorizer error has occurred. For example, communication failed or an error response was returned.

    +
  • AUTHORIZER_IDENTITIES_FAILURE: The identity source of the frontend custom authorizer is missing or invalid.

    +
  • BACKEND_UNAVAILABLE: The backend is unavailable due to communication error.

    +
  • BACKEND_TIMEOUT: Communication with the backend timed out.

    +
  • THROTTLED: The request was rejected due to throttling.

    +
  • UNAUTHORIZED: The credential you use is not authorized to call the API.

    +
  • ACCESS_DENIED: Access denied. For example, the access control policy is triggered or an attack is detected.

    +
  • NOT_FOUND: No API is matched.

    +
  • REQUEST_PARAMETERS_FAILURE: Invalid request parameter or unsupported HTTP method.

    +
  • DEFAULT_4XX: Another 4XX error occurred.

    +
  • DEFAULT_5XX: Another 5XX error occurred.

    +
  • THIRD_AUTH_FAILURE: Third-party authentication failed.

    +
  • THIRD_AUTH_IDENTITIES_FAILURE: The identity source of the third-party authorizer is missing or invalid.

    +
  • THIRD_AUTH_CONF_FAILURE: A third-party authorizer error has occurred. For example, communication failed or an error response was returned.

    +
  • ORCHESTRATION_PARAMETER_NOT_FOUND: Parameter orchestration failed. No input parameter is found in the request.

    +
  • ORCHESTRATION_FAILURE: Parameter orchestration failed. No orchestration rule to match.

    +
+

Enumeration values:

+
  • AUTH_FAILURE

    +
  • AUTH_HEADER_MISSING

    +
  • AUTHORIZER_FAILURE

    +
  • AUTHORIZER_CONF_FAILURE

    +
  • AUTHORIZER_IDENTITIES_FAILURE

    +
  • BACKEND_UNAVAILABLE

    +
  • BACKEND_TIMEOUT

    +
  • THROTTLED

    +
  • UNAUTHORIZED

    +
  • ACCESS_DENIED

    +
  • NOT_FOUND

    +
  • REQUEST_PARAMETERS_FAILURE

    +
  • DEFAULT_4XX

    +
  • DEFAULT_5XX

    +
  • THIRD_AUTH_FAILURE

    +
  • THIRD_AUTH_IDENTITIES_FAILURE

    +
  • THIRD_AUTH_CONF_FAILURE

    +
  • ORCHESTRATION_PARAMETER_NOT_FOUND

    +
  • ORCHESTRATION_FAILURE

    +
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:group_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteGatewayResponseV2.html b/docs/apig/api-ref/DeleteGatewayResponseV2.html new file mode 100644 index 00000000..70b53de6 --- /dev/null +++ b/docs/apig/api-ref/DeleteGatewayResponseV2.html @@ -0,0 +1,302 @@ + + +

Deleting a Group Response

+

Function

This API is used to delete a group response of an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

response_id

+

Yes

+

String

+

Response ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:group_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteInstancesV2.html b/docs/apig/api-ref/DeleteInstancesV2.html new file mode 100644 index 00000000..ca32738c --- /dev/null +++ b/docs/apig/api-ref/DeleteInstancesV2.html @@ -0,0 +1,246 @@ + + +

Deleting a Dedicated Gateway

+

Function

This API is used to delete a dedicated gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteMemberGroup.html b/docs/apig/api-ref/DeleteMemberGroup.html new file mode 100644 index 00000000..43f78633 --- /dev/null +++ b/docs/apig/api-ref/DeleteMemberGroup.html @@ -0,0 +1,302 @@ + + +

Deleting a Backend Server Group of a VPC Channel

+

Function

This API is used to delete a backend server group of a specified VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups/{member_group_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+

member_group_id

+

Yes

+

String

+

Backend server group ID of the VPC channel.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified, parameter name:members"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeletePlugin.html b/docs/apig/api-ref/DeletePlugin.html new file mode 100644 index 00000000..1970c66a --- /dev/null +++ b/docs/apig/api-ref/DeletePlugin.html @@ -0,0 +1,333 @@ + + +

Deleting a Plug-in

+

Function

This API is used to delete a plug-in.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

plugin_id

+

Yes

+

String

+

Plug-in ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 409

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3068",
+  "error_msg" : "Plugin b294018ee0554156a875b3513e02e5b9 does not exist"
+}
+

Status code: 409

+

Conflict

+
{
+  "error_code" : "APIG.3462",
+  "error_msg" : "The plugin has been attached to the APIs and cannot perform the current operation"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

409

+

Conflict

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteRequestThrottlingPolicyV2.html b/docs/apig/api-ref/DeleteRequestThrottlingPolicyV2.html new file mode 100644 index 00000000..b9a058df --- /dev/null +++ b/docs/apig/api-ref/DeleteRequestThrottlingPolicyV2.html @@ -0,0 +1,255 @@ + + +

Deleting a Request Throttling Policy

+

Function

This API is used to delete a request throttling policy and all binding relationships between the policy and APIs.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

throttle_id

+

Yes

+

String

+

Request throttling policy ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3005",
+  "error_msg" : "Request throttling policy 3437448ad06f4e0c91a224183116e965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteSignatureKeyV2.html b/docs/apig/api-ref/DeleteSignatureKeyV2.html new file mode 100644 index 00000000..d0b6ab18 --- /dev/null +++ b/docs/apig/api-ref/DeleteSignatureKeyV2.html @@ -0,0 +1,255 @@ + + +

Deleting a Signature Key

+

Function

This API is used to delete a signature key. This operation will invalidate the signature key and unbind it from the APIs to which it was bound.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/signs/{sign_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

sign_id

+

Yes

+

String

+

Signature key ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3017",
+  "error_msg" : "Signature key 0b0e8f456b8742218af75f945307173c does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteSpecialThrottlingConfigurationV2.html b/docs/apig/api-ref/DeleteSpecialThrottlingConfigurationV2.html new file mode 100644 index 00000000..0b7b804e --- /dev/null +++ b/docs/apig/api-ref/DeleteSpecialThrottlingConfigurationV2.html @@ -0,0 +1,302 @@ + + +

Deleting an Excluded Request Throttling Configuration

+

Function

This API is used to delete an excluded configuration of a request throttling policy.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}/throttle-specials/{strategy_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

throttle_id

+

Yes

+

String

+

Request throttling policy ID.

+

strategy_id

+

Yes

+

String

+

Excluded configuration ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3013",
+  "error_msg" : "Excluded request throttling configuration a3e9ff8db55544ed9db91d8b048770c0 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DeleteVpcChannelV2.html b/docs/apig/api-ref/DeleteVpcChannelV2.html new file mode 100644 index 00000000..04d58d37 --- /dev/null +++ b/docs/apig/api-ref/DeleteVpcChannelV2.html @@ -0,0 +1,293 @@ + + +

Deleting a VPC Channel

+

Function

This API is used to delete a VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DetachApiFromPlugin.html b/docs/apig/api-ref/DetachApiFromPlugin.html new file mode 100644 index 00000000..cd877737 --- /dev/null +++ b/docs/apig/api-ref/DetachApiFromPlugin.html @@ -0,0 +1,332 @@ + + +

Unbinding a Plug-in from All APIs

+

Function

This API is used to unbind a plug-in from all APIs to which it has been bound.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/detach

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

plugin_id

+

Yes

+

String

+

Plug-in ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

env_id

+

Yes

+

String

+

ID of the environment for binding to the API.

+

api_ids

+

Yes

+

Array of strings

+

IDs of bound APIs.

+

Array Length: 1 - 500

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Unbinding a plug-in from all APIs to which it has been bound

+
{
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "api_ids" : [ "8aa097b00e9843efabc9c593d11b769d" ]
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3068",
+  "error_msg" : "Plugin b294018ee0554156a875b3513e02e5b9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DetachPluginFromApi.html b/docs/apig/api-ref/DetachPluginFromApi.html new file mode 100644 index 00000000..5d57baa0 --- /dev/null +++ b/docs/apig/api-ref/DetachPluginFromApi.html @@ -0,0 +1,332 @@ + + +

Unbinding an API's Plug-ins

+

Function

This API is used to unbind an API's plug-ins.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/plugins/detach

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

env_id

+

Yes

+

String

+

ID of the environment for binding to the API.

+

plugin_ids

+

Yes

+

Array of strings

+

IDs of bound plug-ins.

+

Array Length: 1 - 500

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Unbinding an API's plug-ins

+
{
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "plugin_ids" : [ "98df09fb-d459-4cbf-83a7-2b55ca6f3d5d" ]
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3068",
+  "error_msg" : "Plugin b294018ee0554156a875b3513e02e5b9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DisassociateAppQuotaWithApp.html b/docs/apig/api-ref/DisassociateAppQuotaWithApp.html new file mode 100644 index 00000000..9f07d44a --- /dev/null +++ b/docs/apig/api-ref/DisassociateAppQuotaWithApp.html @@ -0,0 +1,302 @@ + + +

Unbinding a Credential Quota from a Credential

+

Function

This API is used to unbind a credential quota from a credential.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}/bound-apps/{app_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_quota_id

+

Yes

+

String

+

Credential Quota ID

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "The App quota c900c5612dbe451bb43cbcc49cfaf2f3 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DisassociateCertificateV2.html b/docs/apig/api-ref/DisassociateCertificateV2.html new file mode 100644 index 00000000..6baec87c --- /dev/null +++ b/docs/apig/api-ref/DisassociateCertificateV2.html @@ -0,0 +1,311 @@ + + +

Deleting the Certificate Bound to a Domain Name

+

Function

This API is used to delete a certificate that is no longer needed or has expired.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificate/{certificate_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

domain_id

+

Yes

+

String

+

Domain ID.

+

certificate_id

+

Yes

+

String

+

Certificate ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:domain_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DisassociateDomainV2.html b/docs/apig/api-ref/DisassociateDomainV2.html new file mode 100644 index 00000000..9cc09427 --- /dev/null +++ b/docs/apig/api-ref/DisassociateDomainV2.html @@ -0,0 +1,302 @@ + + +

Unbinding a Domain Name

+

Function

This API is used to unbind a custom domain name from an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

domain_id

+

Yes

+

String

+

Domain ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3474",
+  "error_msg" : "The API group ID in the URL does not match the API group to which the URL domain has been bound"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DisassociateRequestThrottlingPolicyV2.html b/docs/apig/api-ref/DisassociateRequestThrottlingPolicyV2.html new file mode 100644 index 00000000..7106d226 --- /dev/null +++ b/docs/apig/api-ref/DisassociateRequestThrottlingPolicyV2.html @@ -0,0 +1,293 @@ + + +

Unbinding a Request Throttling Policy

+

Function

This API is used to unbind a request throttling policy from an API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings/{throttle_binding_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

throttle_binding_id

+

Yes

+

String

+

ID of a request throttling policy binding record.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3012",
+  "error_msg" : "The request throttling policy binding record does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DisassociateSignatureKeyV2.html b/docs/apig/api-ref/DisassociateSignatureKeyV2.html new file mode 100644 index 00000000..1aebb0bb --- /dev/null +++ b/docs/apig/api-ref/DisassociateSignatureKeyV2.html @@ -0,0 +1,293 @@ + + +

Unbinding a Signature Key

+

Function

This API is used to unbind a signature key from an API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings/{sign_bindings_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

sign_bindings_id

+

Yes

+

String

+

Signature key binding record ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3018",
+  "error_msg" : "The signature key binding record does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/DomainnameManagement.html b/docs/apig/api-ref/DomainnameManagement.html new file mode 100644 index 00000000..fe97f161 --- /dev/null +++ b/docs/apig/api-ref/DomainnameManagement.html @@ -0,0 +1,28 @@ + + +

Domain Name Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/EnvManagement.html b/docs/apig/api-ref/EnvManagement.html new file mode 100644 index 00000000..0cbbc070 --- /dev/null +++ b/docs/apig/api-ref/EnvManagement.html @@ -0,0 +1,22 @@ + + +

Environment Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/EnvVariableManagement.html b/docs/apig/api-ref/EnvVariableManagement.html new file mode 100644 index 00000000..e13f0bbc --- /dev/null +++ b/docs/apig/api-ref/EnvVariableManagement.html @@ -0,0 +1,24 @@ + + +

Environment Variable Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ExportApiDefinitionsAsync.html b/docs/apig/api-ref/ExportApiDefinitionsAsync.html new file mode 100644 index 00000000..5a57494c --- /dev/null +++ b/docs/apig/api-ref/ExportApiDefinitionsAsync.html @@ -0,0 +1,377 @@ + + +

Exporting APIs Asynchronously

+

Function

This API is used to export APIs in a specified API group. The content of the exported file complies with the Swagger standard. For details about the custom extended fields of APIG, see section "Extended Definition" in the User Guide.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/openapi/async-export

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

oas_version

+

No

+

String

+

OpenAPI version.

+

Default: 2.0

+

Enumeration values:

+
  • 2.0
  • 3.0
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

env_id

+

Yes

+

String

+

ID of the environment in which APIs of a group have been published.

+

group_id

+

Yes

+

String

+

API group ID.

+

define

+

No

+

String

+

Definition scope of the APIs to be exported:

+
  • spec: basic definitions, including only the frontend definitions.
  • proxy: full definitions, including the frontend and backend definitions.
  • all: extended definitions, including the frontend and backend definitions as well as request throttling policies, access control policies, and custom authorizers.
  • dev: development definitions, including the frontend and backend definitions of APIs that have not been published.
+

Default: spec

+

Enumeration values:

+
  • spec
  • proxy
  • all
  • dev
+

type

+

No

+

String

+

Format for exporting API definitions.

+

Default: json

+

Enumeration values:

+
  • json
  • yaml
  • yml
+

version

+

No

+

String

+

Version number of the APIs after exporting. The default value is the current date and time.

+

apis

+

No

+

Array of strings

+

IDs of the APIs to be exported.

+
+
+
+

Response Parameters

Status code: 202

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

task_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Exporting APIs in batches

+
{
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "define" : "all"
+}
+
+

Example Responses

Status code: 202

+

Accepted

+
{
+  "task_id" : "d9ce8c9eede54b3f841ec324fe0bfdc2"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified,parameterName:env_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

202

+

Accepted

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ExportApiDefinitionsV2.html b/docs/apig/api-ref/ExportApiDefinitionsV2.html new file mode 100644 index 00000000..d6f1a8f7 --- /dev/null +++ b/docs/apig/api-ref/ExportApiDefinitionsV2.html @@ -0,0 +1,410 @@ + + +

Exporting APIs

+

Function

This API is used to export APIs in a specified API group. The content of the exported file complies with the Swagger standard. For details about the custom extended fields of APIG, see section "Extended Definition" in the User Guide.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/openapi/export

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

oas_version

+

No

+

String

+

Open API version.

+

Default: 2.0

+

Enumeration values:

+
  • 2.0
  • 3.0
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

env_id

+

Yes

+

String

+

ID of the environment in which APIs of a group have been published.

+

group_id

+

Yes

+

String

+

API group ID.

+

define

+

No

+

String

+

Definition scope of the APIs to be exported:

+
  • spec: basic definitions, including only the frontend definitions.
  • proxy: full definitions, including the frontend and backend definitions.
  • all: extended definitions, including the frontend and backend definitions as well as request throttling policies, access control policies, and custom authorizers.
  • dev: development definitions, including the frontend and backend definitions of APIs that have not been published.
+

Default: spec

+

Enumeration values:

+
  • spec
  • proxy
  • all
  • dev
+

type

+

No

+

String

+

Format for exporting API definitions.

+

Default: json

+

Enumeration values:

+
  • json
  • yaml
  • yml
+

version

+

No

+

String

+

Version number of the APIs after exporting. The default value is the current date and time.

+

apis

+

No

+

Array of strings

+

IDs of the APIs to be exported.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

-

+

File

+

OK

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Exporting APIs

+
{
+  "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "define" : "all"
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified,parameterName:env_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/GatewayTagManagement.html b/docs/apig/api-ref/GatewayTagManagement.html new file mode 100644 index 00000000..bb2b96fb --- /dev/null +++ b/docs/apig/api-ref/GatewayTagManagement.html @@ -0,0 +1,20 @@ + + +

Gateway Tag Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/GroupResponseManagement.html b/docs/apig/api-ref/GroupResponseManagement.html new file mode 100644 index 00000000..9896e639 --- /dev/null +++ b/docs/apig/api-ref/GroupResponseManagement.html @@ -0,0 +1,30 @@ + + +

Group Response Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ImportApiDefinitionsAsync.html b/docs/apig/api-ref/ImportApiDefinitionsAsync.html new file mode 100644 index 00000000..4d7c345e --- /dev/null +++ b/docs/apig/api-ref/ImportApiDefinitionsAsync.html @@ -0,0 +1,364 @@ + + +

Importing APIs Asynchronously

+

Function

This API is used to import APIs. The content of the imported file must comply with the Swagger standard. For details about the custom extended fields of APIG, see section "Extended Definition" in the User Guide.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/openapi/async-import

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 FormData parameters

Parameter

+

Mandatory

+

Type

+

Description

+

is_create_group

+

No

+

Boolean

+

Whether to create a new group.

+

Default: true

+

group_id

+

No

+

String

+

API group ID. This parameter is required if is_create_group is set to false.

+

extend_mode

+

No

+

String

+

Import mode of extended information.

+
  • merge: Retain the original extended information if a conflict occurs.
  • override: Override the original extended information if a conflict occurs.
+

Default: merge

+

Enumeration values:

+
  • merge
  • override
+

simple_mode

+

No

+

Boolean

+

Whether to enable fast import.

+

Default: false

+

mock_mode

+

No

+

Boolean

+

Whether to enable the Mock backend.

+

Default: false

+

api_mode

+

No

+

String

+

Import mode.

+
  • merge: Retain the original API information if a conflict occurs.
  • override: Override the original API information if a conflict occurs.
+

Default: merge

+

Enumeration values:

+
  • merge
  • override
+

file_name

+

Yes

+

File

+

Request body in JSON or YAML format for importing APIs

+
+
+
+

Response Parameters

Status code: 202

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

task_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Importing APIs

+
{
+  "is_create_group" : false,
+  "group_id" : "d9ce8c9eede54b3f841ec324fe0bfdc2",
+  "file_name" : "APIGroup_test.json"
+}
+
+

Example Responses

Status code: 202

+

Accepted

+
{
+  "task_id" : "d9ce8c9eede54b3f841ec324fe0bfdc2"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3603",
+  "error_msg" : "The input data is too long"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

202

+

Accepted

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ImportApiDefinitionsV2.html b/docs/apig/api-ref/ImportApiDefinitionsV2.html new file mode 100644 index 00000000..1982748f --- /dev/null +++ b/docs/apig/api-ref/ImportApiDefinitionsV2.html @@ -0,0 +1,582 @@ + + +

Importing APIs

+

Function

This API is used to import APIs. The content of the imported file must comply with the Swagger standard. For details about the custom extended fields of APIG, see section "Extended Definition" in the User Guide.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/openapi/import

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 FormData parameters

Parameter

+

Mandatory

+

Type

+

Description

+

is_create_group

+

No

+

Boolean

+

Specifies whether to create an API group.

+

Default: true

+

group_id

+

No

+

String

+

API group ID. This parameter is required if is_create_group is set to false.

+

extend_mode

+

No

+

String

+

Import mode of extended information.

+
  • merge: Retain the original extended information if a conflict occurs.
  • override: Override the original extended information if a conflict occurs.
+

Default: merge

+

Enumeration values:

+
  • merge
  • override
+

simple_mode

+

No

+

Boolean

+

Specifies whether to enable fast import.

+

Default: false

+

mock_mode

+

No

+

Boolean

+

Specifies whether to enable the Mock backend.

+

Default: false

+

api_mode

+

No

+

String

+

Import mode.

+
  • merge: Retain the original API information if a conflict occurs.
  • override: Override the original API information if a conflict occurs.
+

Default: merge

+

Enumeration values:

+
  • merge
  • override
+

file_name

+

Yes

+

File

+

Request body in JSON or YAML format for importing APIs.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

success

+

Array of Success objects

+

Import success information.

+

failure

+

Array of Failure objects

+

Import failure information.

+

swagger

+

Swagger object

+

Swagger file import result.

+

Currently, this parameter is not supported.

+

group_id

+

String

+

API group ID.

+

ignore

+

Array of Ignore objects

+

APIs that are not imported.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 Success

Parameter

+

Type

+

Description

+

path

+

String

+

API request path.

+

method

+

String

+

API request method.

+

action

+

String

+

Import type. Options:

+
  • update: Update the APIs to an existing API group.
  • create: Create APIs for a new API group.
+

Enumeration values:

+
  • update
  • create
+

id

+

String

+

ID of a successfully imported API.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 Failure

Parameter

+

Type

+

Description

+

path

+

String

+

API request path.

+

error_msg

+

String

+

Error message displayed for an import failure.

+

method

+

String

+

API request method.

+

error_code

+

String

+

Error code displayed for an import failure.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 Swagger

Parameter

+

Type

+

Description

+

id

+

String

+

Swagger file No.

+

result

+

String

+

Import result description.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 Ignore

Parameter

+

Type

+

Description

+

method

+

String

+

API request method.

+

path

+

String

+

API request path.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Importing APIs

+
{
+  "is_create_group" : false,
+  "group_id" : "d9ce8c9eede54b3f841ec324fe0bfdc2",
+  "file_name" : "APIGroup_test.json"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "group_id" : "d9ce8c9eede54b3f841ec324fe0bfdc2",
+  "failure" : [ {
+    "path" : "/test/demo",
+    "error_msg" : "The API already exists, An API with the same combination of the method, path, and x-apigateway-match-mode fields already exists. API name: API_demo",
+    "method" : "GET",
+    "error_code" : "APIG.3301"
+  } ],
+  "success" : [ {
+    "path" : "/test",
+    "method" : "GET",
+    "action" : "create",
+    "id" : "8ae6bcafab6f49d78242bff26ad8a4f0"
+  } ],
+  "swagger" : {
+    "id" : "e2ea8a7c1cfc49b3830437cb79d7fd59",
+    "result" : "Success"
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3201",
+  "error_msg" : "The API group name already exists"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ImportMicroservice.html b/docs/apig/api-ref/ImportMicroservice.html new file mode 100644 index 00000000..3f103322 --- /dev/null +++ b/docs/apig/api-ref/ImportMicroservice.html @@ -0,0 +1,864 @@ + + +

Importing a Microservice

+

Function

This API is used to import a microservice.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

POST /v2/{project_id}/apigw/instances/{instance_id}/microservice/import

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

group_info

+

Yes

+

MicroserviceGroup object

+

Information about the API group to import a microservice to.

+

service_type

+

Yes

+

String

+

Microservice center type.

+
  • CSE: CSE microservice registration center
  • CCE: CCE workload
+

Enumeration values:

+
  • CSE
  • CCE
+

protocol

+

No

+

String

+

Request protocol used by APIG to access the microservice.

+
  • HTTP
  • HTTPS
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP
  • HTTPS
+

apis

+

Yes

+

Array of MicroserviceApiCreate objects

+

Imported APIs.

+

Array Length: 1 - 50

+

backend_timeout

+

No

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000, and the default value is 5000.

+

Unit: ms.

+

Minimum: 1

+

Default: 5000

+

auth_type

+

No

+

String

+

API authentication mode. By default, authentication is not required.

+
  • NONE
  • APP
  • IAM
+

Default: NONE

+

Enumeration values:

+
  • NONE
  • APP
  • IAM
+

cors

+

No

+

Boolean

+

Whether CORS is supported. By default, it is not supported.

+
  • true: Supported.
  • false: Not supported.
+

Default: false

+

Enumeration values:

+
  • true
  • false
+

cse_info

+

No

+

MicroServiceInfoCSECreate object

+

CSE microservice details. This parameter is required if service_type is set to CSE.

+

cce_info

+

No

+

MicroServiceInfoCCECreate object

+

CCE workload details. This parameter is required if service_type is set to CCE.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 MicroserviceGroup

Parameter

+

Mandatory

+

Type

+

Description

+

group_id

+

No

+

String

+

An existing group. If this parameter is left empty, a new group is created.

+

Minimum: 0

+

Maximum: 64

+

group_name

+

No

+

String

+

Name of the API group. This parameter is required when group_id is empty.

+

Enter 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

Minimum: 3

+

Maximum: 255

+

app_id

+

No

+

String

+

Integration application to which the new group belongs. This parameter is required when group_id is empty.

+

Minimum: 0

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 MicroserviceApiCreate

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

No

+

String

+

API name.

+

Start with a letter or digit, and use only letters, digits, and these special characters: -_./:()

+

Minimum: 3

+

Maximum: 255

+

req_method

+

No

+

String

+

Request method.

+

Default: ANY

+

Enumeration values:

+
  • GET
  • POST
  • PUT
  • DELETE
  • HEAD
  • PATCH
  • OPTIONS
  • ANY
+

req_uri

+

Yes

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

/apic/health_check is the preset health check path of APIG. If req_method=GET is passed, req_uri=/apic/health_check is not supported.

+
NOTE:

The address must comply with the URI specifications.

+
+

Minimum: 1

+

Maximum: 512

+

match_mode

+

No

+

String

+

API matching mode.

+
  • SWA: Prefix match.
  • NORMAL: Exact match.
+

Default value: NORMAL

+

Default: SWA

+

Enumeration values:

+
  • SWA
  • NORMAL
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 MicroServiceInfoCSECreate

Parameter

+

Mandatory

+

Type

+

Description

+

engine_id

+

Yes

+

String

+

Microservice engine ID.

+

Maximum: 64

+

service_id

+

Yes

+

String

+

Microservice ID.

+

Maximum: 64

+

version

+

Yes

+

String

+

Microservice version.

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 MicroServiceInfoCCECreate

Parameter

+

Mandatory

+

Type

+

Description

+

cluster_id

+

Yes

+

String

+

CCE cluster ID.

+

Maximum: 64

+

namespace

+

Yes

+

String

+

Namespace.

+

Maximum: 64

+

workload_type

+

Yes

+

String

+

Workload type.

+
  • deployment
  • statefulset
  • daemonset
+

Enumeration values:

+
  • deployment
  • statefulset
  • daemonset
+

app_name

+

No

+

String

+

App name. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_key

+

No

+

String

+

Service label key. Start with a letter or digit, and use only letters, digits, and these special characters: -_./:(). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_value

+

No

+

String

+

Service label value. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

version

+

No

+

String

+

Workload version.

+

Maximum: 64

+

port

+

Yes

+

Integer

+

Listening port No. of the workload.

+

Minimum: 1

+

Maximum: 65535

+

labels

+

No

+

Array of MicroserviceLabel objects

+

Workload label list.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 8 MicroserviceLabel

Parameter

+

Mandatory

+

Type

+

Description

+

label_name

+

Yes

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

Yes

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

vpc_channel_id

+

String

+

VPC channel ID.

+

api_group_id

+

String

+

API group ID.

+

apis

+

Array of MicroserviceImportApiResp objects

+

Imported APIs.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 MicroserviceImportApiResp

Parameter

+

Type

+

Description

+

name

+

String

+

API name.

+

req_uri

+

String

+

Request path.

+

req_method

+

String

+

Request method.

+

id

+

String

+

API ID.

+

match_mode

+

String

+

API matching mode.

+
  • SWA: Prefix match.
  • NORMAL: Exact match. Default value: SWA
+

Enumeration values:

+
  • SWA
  • NORMAL
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 201

+

success

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:f0fa1789-3b76-433b-a787-9892951c620ec"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

success

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/InstanceFeatureManagement.html b/docs/apig/api-ref/InstanceFeatureManagement.html new file mode 100644 index 00000000..8caec12f --- /dev/null +++ b/docs/apig/api-ref/InstanceFeatureManagement.html @@ -0,0 +1,20 @@ + + +

Gateway Feature Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ListAclPolicyBindedToApiV2.html b/docs/apig/api-ref/ListAclPolicyBindedToApiV2.html new file mode 100644 index 00000000..a43c1ba5 --- /dev/null +++ b/docs/apig/api-ref/ListAclPolicyBindedToApiV2.html @@ -0,0 +1,503 @@ + + +

Querying Access Control Policies Bound to an API

+

Function

This API is used to query the access control policies that have been bound to a specified API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings/binded-acls

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

api_id

+

Yes

+

String

+

API ID.

+

env_id

+

No

+

String

+

Environment ID.

+

env_name

+

No

+

String

+

Environment name.

+

acl_id

+

No

+

String

+

Access control policy ID.

+

acl_name

+

No

+

String

+

Access control policy name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

acls

+

Array of ApiBindAclInfo objects

+

Access control policy list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiBindAclInfo

Parameter

+

Type

+

Description

+

acl_id

+

String

+

Access control policy ID.

+

acl_name

+

String

+

Access control policy name.

+

entity_type

+

String

+

Object type.

+

Enumeration values:

+
  • IP

    +
  • DOMAIN

    +
  • DOMAIN_ID

    +
+

acl_type

+

String

+

Access control type.

+
  • PERMIT: whitelist

    +
  • DENY: blacklist

    +
+

Enumeration values:

+
  • PERMIT

    +
  • DENY

    +
+

acl_value

+

String

+

Access control objects.

+

env_id

+

String

+

Effective environment ID.

+

env_name

+

String

+

Effective environment name.

+

bind_id

+

String

+

Binding record ID.

+

bind_time

+

String

+

Binding time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "acls" : [ {
+    "acl_id" : "7eb619ecf2a24943b099833cd24a01ba",
+    "acl_name" : "acl_demo",
+    "entity_type" : "IP",
+    "acl_type" : "PERMIT",
+    "acl_value" : "192.168.1.5,192.168.10.1",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "bind_id" : "332c5db1458a477b89b2ea741fec94a3",
+    "bind_time" : "2020-08-04T08:58:03Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:acl_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAclStrategiesV2.html b/docs/apig/api-ref/ListAclStrategiesV2.html new file mode 100644 index 00000000..f7ff7fca --- /dev/null +++ b/docs/apig/api-ref/ListAclStrategiesV2.html @@ -0,0 +1,488 @@ + + +

Querying Access Control Policies

+

Function

This API is used to query all the access control policies.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/acls

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

id

+

No

+

String

+

Access control policy ID.

+

name

+

No

+

String

+

Access control policy name.

+

acl_type

+

No

+

String

+

Type.

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

entity_type

+

No

+

String

+

Object types.

+
  • IP

    +
  • DOMAIN

    +
+

precise_search

+

No

+

String

+

Parameter name (name) for exact matching.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

acls

+

Array of ApiAclInfoWithBindNum objects

+

Access control policy list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiAclInfoWithBindNum

Parameter

+

Type

+

Description

+

acl_name

+

String

+

Access control policy name.

+

acl_type

+

String

+

Type.

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

acl_value

+

String

+

Access control objects.

+

bind_num

+

Integer

+

Number of APIs.

+

entity_type

+

String

+

Object type.

+
  • IP

    +
  • DOMAIN

    +
  • DOMAIN_ID

    +
+

id

+

String

+

Access control policy ID.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "acls" : [ {
+    "bind_num" : 0,
+    "id" : "7eb619ecf2a24943b099833cd24a01ba",
+    "acl_name" : "acl_demo",
+    "entity_type" : "IP",
+    "acl_type" : "PERMIT",
+    "acl_value" : "192.168.1.5,192.168.10.1",
+    "update_time" : "2020-08-04T08:42:43Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApiAttachablePlugins.html b/docs/apig/api-ref/ListApiAttachablePlugins.html new file mode 100644 index 00000000..a169d240 --- /dev/null +++ b/docs/apig/api-ref/ListApiAttachablePlugins.html @@ -0,0 +1,492 @@ + + +

Querying Plug-ins That Can Be Bound to an API

+

Function

This API is used to query the plug-ins that can be bound to a specified API.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/attachable-plugins

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

env_id

+

Yes

+

String

+

Environment ID.

+

plugin_name

+

No

+

String

+

Plug-in name.

+

plugin_type

+

No

+

String

+

Plug-in type.

+

plugin_id

+

No

+

String

+

Plug-in ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

plugins

+

Array of PluginInfo objects

+

Plug-ins.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 PluginInfo

Parameter

+

Type

+

Description

+

plugin_id

+

String

+

Plug-in ID.

+

plugin_name

+

String

+

Plug-in name. Start with a letter, and include only letters, digits, hyphens (-), and underscores(_). (3 to 255 characters)

+

plugin_type

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.
  • set_resp_headers: HTTP response header management.
  • kafka_log: Kafka log push.
  • breaker: Circuit breaker.
  • rate_limit: Request throttling.
  • third_auth: Third-party authentication.
+

Enumeration values:

+
  • cors
  • set_resp_headers
  • kafka_log
  • breaker
  • rate_limit
  • third_auth
+

plugin_scope

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global
+

plugin_content

+

String

+

Plug-in content in JSON format. For details, see the model definition.

+
  • CorsPluginContent
  • SetRespHeadersContent
  • KafkaLogContent
  • BreakerContent
  • RateLimitContent
  • ThirdAuthContent
+

Maximum: 65535

+

remark

+

String

+

Plug-in description, with a maximum of 255 characters.

+

Maximum: 255

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "plugins" : [ {
+    "plugin_id" : "5b729aa252764739b3s237ef0d66dc63",
+    "plugin_name" : "CORS",
+    "plugin_type" : "cors",
+    "plugin_scope" : "global",
+    "plugin_content" : "{\"allow_origin\": \"*\",\"allow_methods\": \"GET,POST,PUT\",\"allow_headers\": \"Content-Type,Accept,Accept-Ranges,Cache-Control\",\"expose_headers\": \"X-Request-Id,X-Apig-Latency\",\"max_age\": 172800,\"allow_credentials\": true}",
+    "remark" : "Cross-origin resource sharing",
+    "create_time" : "2022-11-02T12:31:23.353Z",
+    "update_time" : "2022-11-02T12:31:23.353Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApiAttachedPlugins.html b/docs/apig/api-ref/ListApiAttachedPlugins.html new file mode 100644 index 00000000..bc641d81 --- /dev/null +++ b/docs/apig/api-ref/ListApiAttachedPlugins.html @@ -0,0 +1,548 @@ + + +

Querying Plug-ins Bound to an API

+

Function

This API is used to query the plug-ins bound to an API.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/attached-plugins

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

env_id

+

No

+

String

+

Environment ID.

+

plugin_name

+

No

+

String

+

Plug-in name.

+

plugin_id

+

No

+

String

+

Plug-in ID.

+

env_name

+

No

+

String

+

Environment name.

+

plugin_type

+

No

+

String

+

Plug-in type.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

plugins

+

Array of AttachedPluginInfo objects

+

Plug-ins bound to the API.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 AttachedPluginInfo

Parameter

+

Type

+

Description

+

plugin_attach_id

+

String

+

Plug-in binding record ID.

+

plugin_id

+

String

+

Plug-in ID.

+

plugin_name

+

String

+

Plug-in name. Start with a letter, and include only letters, digits, hyphens (-), and underscores(_). (3 to 255 characters)

+

plugin_type

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.

    +
  • set_resp_headers: HTTP response header management.

    +
  • kafka_log: Kafka log push.

    +
  • breaker: Circuit breaker.

    +
  • rate_limit: Request throttling.

    +
  • third_auth: Third-party authentication.

    +
+

Enumeration values:

+
  • cors

    +
  • set_resp_headers

    +
  • kafka_log

    +
  • breaker

    +
  • rate_limit

    +
  • third_auth

    +
+

plugin_scope

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global

    +
+

env_id

+

String

+

ID of the environment for binding to the API.

+

env_name

+

String

+

Name of the environment for binding to the API.

+

attached_time

+

String

+

Binding time.

+

plugin_content

+

String

+

Plug-in content in JSON format.

+

Maximum: 65535

+

remark

+

String

+

Plug-in description, with a maximum of 255 characters.

+

Maximum: 255

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "plugins" : [ {
+    "plugin_attach_id" : "8aa097b00e9843efacb9c593d11b769e",
+    "plugin_id" : "5b729aa252764739b3s237ef0d66dc63",
+    "plugin_name" : "CORS",
+    "plugin_type" : "cors",
+    "plugin_scope" : "global",
+    "plugin_content" : "{\"allow_origin\": \"*\",\"allow_methods\": \"GET,POST,PUT\",\"allow_headers\": \"Content-Type,Accept,Accept-Ranges,Cache-Control\",\"expose_headers\": \"X-Request-Id,X-Apig-Latency\",\"max_age\": 172800,\"allow_credentials\": true}",
+    "remark" : "Cross-origin resource sharing",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "attached_time" : "2022-11-02T12:31:23.353Z",
+    "create_time" : "2022-11-02T12:31:23.353Z",
+    "update_time" : "2022-11-02T12:31:23.353Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApiGroupsQuantitiesV2.html b/docs/apig/api-ref/ListApiGroupsQuantitiesV2.html new file mode 100644 index 00000000..d1c0c67d --- /dev/null +++ b/docs/apig/api-ref/ListApiGroupsQuantitiesV2.html @@ -0,0 +1,318 @@ + + +

Querying API Group Quantities

+

Function

This API is used to query the number of API groups.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/resources/outline/groups

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

offsell_nums

+

Integer

+

Number of API groups that have not been listed on KooGallery.

+

Currently, this parameter is not supported.

+

onsell_nums

+

Integer

+

Number of API groups that have been listed on KooGallery.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "offsell_nums" : 0,
+  "onsell_nums" : 23
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApiGroupsV2.html b/docs/apig/api-ref/ListApiGroupsV2.html new file mode 100644 index 00000000..708ffe63 --- /dev/null +++ b/docs/apig/api-ref/ListApiGroupsV2.html @@ -0,0 +1,602 @@ + + +

Querying API Groups

+

Function

This API is used to query the API group list.

+

You can query all API groups in your account as a tenant, or query API groups of all tenants using an administrator account.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

id

+

No

+

String

+

API group ID.

+

name

+

No

+

String

+

API group name.

+

precise_search

+

No

+

String

+

Parameter name for exact matching. Only API group names are supported.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

groups

+

Array of ApiGroupInfo objects

+

API groups.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiGroupInfo

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

API group name.

+

status

+

Integer

+

Status.

+
  • 1: valid
+

Enumeration values:

+
  • 1
+

sl_domain

+

String

+

Subdomain name that APIG automatically allocates to the API group.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Last modification time.

+

on_sell_status

+

Integer

+

Indicates whether the API group has been listed on KooGallery.

+
  • 1: listed
  • 2: not listed
  • 3: under review
+

Not supported currently.

+

url_domains

+

Array of UrlDomain objects

+

Independent domain names bound to the API group.

+

sl_domain_access_enabled

+

Boolean

+

Whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+

sl_domains

+

Array of strings

+

Automatically allocated subdomain names.

+

remark

+

String

+

Description.

+

call_limits

+

Integer

+

Total number of times all APIs in the API group can be accessed. Consider the payload capacity of the backend service when setting this parameter. By default, there is no limit on the number of API calls.

+

Currently, this parameter is not supported.

+

time_interval

+

Integer

+

Period of time for limiting the number of API calls.

+

Currently, this parameter is not supported.

+

time_unit

+

String

+

Time unit for limiting the number of API calls.

+

Currently, this parameter is not supported.

+

is_default

+

Integer

+

Indicates whether the API group is the default group.

+
  • 1: Yes
  • 2: No
+

version

+

String

+

Group version.

+
  • V1: global group
  • V2: application-level group
+

The default value is V1. This parameter is not supported currently.

+

roma_app_id

+

String

+

ID of the integration application to which the API group belongs.

+

This parameter is required when the group version is V2.

+

Currently, this parameter is not supported.

+

roma_app_name

+

String

+

Name of the integration application to which the API group belongs.

+

Currently, this parameter is not supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 UrlDomain

Parameter

+

Type

+

Description

+

id

+

String

+

Domain ID.

+

domain

+

String

+

Domain name.

+

cname_status

+

Integer

+

CNAME resolution status of the domain name.

+
  • 1: not resolved
  • 2: resolving
  • 3: resolved
  • 4: resolution failed
+

ssl_id

+

String

+

SSL certificate ID.

+

ssl_name

+

String

+

SSL certificate name.

+

min_ssl_version

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1
  • TLSv1.2
+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "groups" : [ {
+    "update_time" : "2020-07-31T06:55:55Z",
+    "name" : "api_group_001",
+    "on_sell_status" : 2,
+    "remark" : "API group 1",
+    "sl_domains" : [ "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com", "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.cn" ],
+    "sl_domain" : "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com",
+    "id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "register_time" : "2020-07-31T06:55:55Z",
+    "status" : 1,
+    "is_default" : 2,
+    "sl_domain_access_enabled" : true
+  }, {
+    "update_time" : "2020-06-24T15:29:42.421926Z",
+    "name" : "api_group_002",
+    "on_sell_status" : 2,
+    "remark" : "API group 2",
+    "sl_domain" : "02a8ab3cb2784de5a096852829671ae7.apic.****.com",
+    "sl_domains" : [ "02a8ab3cb2784de5a096852829671ae7.apic.****.com", "02a8ab3cb2784de5a096852829671ae7.apic.****.cn" ],
+    "id" : "02a8ab3cb2784de5a096852829671ae7",
+    "register_time" : "2020-06-24T15:29:42.421926Z",
+    "status" : 1,
+    "is_default" : 2,
+    "sl_domain_access_enabled" : true
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApiQuantitiesV2.html b/docs/apig/api-ref/ListApiQuantitiesV2.html new file mode 100644 index 00000000..f91e6c3a --- /dev/null +++ b/docs/apig/api-ref/ListApiQuantitiesV2.html @@ -0,0 +1,325 @@ + + +

Querying API Quantities

+

Function

This API is used to query the number of APIs that have been published in the RELEASE environment and the number of APIs that have not been published in this environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/resources/outline/apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

instance_num

+

Integer

+

Total number of APIs.

+

nums_on_release

+

Integer

+

Number of APIs that have been published in the RELEASE environment.

+

nums_off_release

+

Integer

+

Number of APIs that have not been published in the RELEASE environment.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "instance_num" : 27,
+  "nums_on_release" : 11,
+  "nums_off_release" : 6
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Bad Request

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Bad Request

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApiRuntimeDefinitionV2.html b/docs/apig/api-ref/ListApiRuntimeDefinitionV2.html new file mode 100644 index 00000000..0317e890 --- /dev/null +++ b/docs/apig/api-ref/ListApiRuntimeDefinitionV2.html @@ -0,0 +1,825 @@ + + +

Querying the Runtime Definition of an API

+

Function

This API is used to query the runtime definition of an API in a specified environment. The runtime definition of an API in the RELEASE environment is queried if no environment is specified.

+

The definition of an API is classified into the following types:

+ +

The runtime definition of an API is accessed when the API is called in an environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apis/runtime/{api_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

env_id

+

No

+

String

+

ID of the environment in which the API is published.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

API name.

+

It can contain 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Integer

+

API type.

+
  • 1: public API

    +
  • 2: private API

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

version

+

String

+

API version.

+

Maximum: 16

+

req_protocol

+

String

+

API request protocol:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
  • GRPCS

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
  • GRPCS

    +
+

req_method

+

String

+

API request method. If the request protocol is set to GRPC, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

String

+

API authentication mode. Options:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER: custom authentication. When auth_type is set to AUTHORIZER, the authorizer_id field is mandatory.

    +
+

Custom authentication is unavailable if the request protocol is set to GRPC.

+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

auth_opt

+

AuthOpt object

+

Security authentication parameter.

+

cors

+

Boolean

+

Indicates whether CORS is supported.

+
  • TRUE: supported

    +
  • FALSE: not supported

    +
+

Default: false

+

Enumeration values:

+
  • true

    +
  • false

    +
+

match_mode

+

String

+

API matching mode:

+
  • SWA: Prefix match

    +
  • NORMAL: Exact match Default value: NORMAL

    +
+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

backend_type

+

String

+

Backend type. Options:

+
  • HTTP: web backend

    +
  • FUNCTION: FunctionGraph backend. When backend_type is set to FUNCTION, the func_info field is mandatory.

    +
  • MOCK: mock backend. When backend_type is set to MOCK, the mock_info field is mandatory.

    +
  • GRPC: gRPC backend.

    +
+

Enumeration values:

+
  • HTTP

    +
  • FUNCTION

    +
  • MOCK

    +
  • GRPC

    +
+

remark

+

String

+

API description. It cannot exceed 255 characters.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

body_remark

+

String

+

API request body, which can be an example request body, media type, or parameters. Ensure that the request body does not exceed 20,480 characters.

+

result_normal_sample

+

String

+

Example response for a successful request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

result_failure_sample

+

String

+

Example response for a failed request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

tags

+

Array of strings

+

Tag.

+

Use letters, digits, and special characters (-*#%.:_) and start with a letter.

+

By default, 10 tags are supported. To increase the quota, contact technical support to modify the API_TAG_NUM_LIMIT configuration.

+

Minimum: 1

+

Maximum: 128

+

response_id

+

String

+

Group response ID.

+

roma_app_id

+

String

+

Integration application ID.

+

Currently, this parameter is not supported.

+

domain_name

+

String

+

Custom domain name bound to the API.

+

Currently, this parameter is not supported.

+

tag

+

String

+

Tag.

+

This field will be deprecated. You can use the tags field instead.

+

content_type

+

String

+

Request content type:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

Coming soon.

+

Enumeration values:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

id

+

String

+

API ID.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

publish_id

+

String

+

Publication record ID.

+

sl_domain

+

String

+

Subdomain name of the API group.

+

sl_domains

+

Array of strings

+

Subdomain names that APIG automatically allocates to the API group.

+

req_params

+

Array of ReqParam objects

+

Request parameters.

+
+
+ +
+ + + + + + + + + +
Table 5 AuthOpt

Parameter

+

Type

+

Description

+

app_code_auth_type

+

String

+

Indicates whether AppCode authentication is enabled. This parameter is valid only if auth_type is set to App. The default value is DISABLE.

+
  • DISABLE: AppCode authentication is disabled.

    +
  • HEADER: AppCode authentication is enabled and the AppCode is located in the header.

    +
+

Default: DISABLE

+

Enumeration values:

+
  • DISABLE

    +
  • HEADER

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 ReqParam

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

The parameter name can contain 1 to 32 characters and must start with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

type

+

String

+

Parameter type.

+

Enumeration values:

+
  • STRING

    +
  • NUMBER

    +
+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

default_value

+

String

+

Default value.

+

sample_value

+

String

+

Example value.

+

required

+

Integer

+

Indicates whether the parameter is required. 1: yes 2: no

+

The value of this parameter is 1 if Location is set to PATH, and 2 if Location is set to another value.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

valid_enable

+

Integer

+

Indicates whether validity check is enabled.

+
  • 1: enabled

    +
  • 2: disabled

    +
+

Default: 2

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

enumerations

+

String

+

Enumerated value.

+

min_num

+

Integer

+

Minimum value.

+

This parameter is valid when type is set to NUMBER.

+

max_num

+

Integer

+

Maximum value.

+

This parameter is valid when type is set to NUMBER.

+

min_size

+

Integer

+

Minimum length.

+

This parameter is valid when type is set to STRING.

+

max_size

+

Integer

+

Maximum length.

+

This parameter is valid when type is set to STRING.

+

regular

+

String

+

Regular expression validation rule.

+

Currently, this parameter is not supported.

+

json_schema

+

String

+

JSON validation rule.

+

Currently, this parameter is not supported.

+

pass_through

+

Integer

+

Indicates whether to transparently transfer the parameter. 1: yes 2: no

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

id

+

String

+

Parameter ID.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "name" : "Api_http",
+  "type" : 1,
+  "version" : "V0.0.1",
+  "req_protocol" : "HTTPS",
+  "req_method" : "GET",
+  "req_uri" : "/test/http",
+  "auth_type" : "AUTHORIZER",
+  "authorizer_id" : "8d0443832a194eaa84244e0c1c1912ac",
+  "auth_opt" : {
+    "app_code_auth_type" : "DISABLE"
+  },
+  "cors" : false,
+  "match_mode" : "NORMAL",
+  "backend_type" : "HTTP",
+  "remark" : "Web backend API",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "result_normal_sample" : "Example success response",
+  "result_failure_sample" : "Example failure response",
+  "id" : "5f918d104dc84480a75166ba99efff21",
+  "group_name" : "api_group_001",
+  "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "run_env_name" : "RELEASE",
+  "publish_id" : "9191cdb430724d4b8586ed7f1b962ca2",
+  "sl_domain" : "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com",
+  "sl_domains" : [ "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com", "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.cn" ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApiVersionDetailV2.html b/docs/apig/api-ref/ListApiVersionDetailV2.html new file mode 100644 index 00000000..eab93dc7 --- /dev/null +++ b/docs/apig/api-ref/ListApiVersionDetailV2.html @@ -0,0 +1,2103 @@ + + +

Querying API Version Details

+

Function

This API is used to query the details of a specified API version.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apis/versions/{version_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

version_id

+

Yes

+

String

+

API version.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

API name.

+

It can contain 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Integer

+

API type.

+
  • 1: public API

    +
  • 2: private API

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

version

+

String

+

API version.

+

Maximum: 16

+

req_protocol

+

String

+

API request protocol:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
  • GRPCS

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
  • GRPCS

    +
+

req_method

+

String

+

API request method. If the request protocol is set to GRPC, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

String

+

API authentication mode. Options:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER: custom authentication. When auth_type is set to AUTHORIZER, the authorizer_id field is mandatory.

    +
+

Custom authentication is unavailable if the request protocol is set to GRPC.

+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

auth_opt

+

AuthOpt object

+

Security authentication parameter.

+

cors

+

Boolean

+

Indicates whether CORS is supported.

+
  • TRUE: supported

    +
  • FALSE: not supported

    +
+

Default: false

+

Enumeration values:

+
  • true

    +
  • false

    +
+

match_mode

+

String

+

API matching mode:

+
  • SWA: Prefix match

    +
  • NORMAL: Exact match Default value: NORMAL

    +
+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

backend_type

+

String

+

Backend type. Options:

+
  • HTTP: web backend

    +
  • FUNCTION: FunctionGraph backend. When backend_type is set to FUNCTION, the func_info field is mandatory.

    +
  • MOCK: mock backend. When backend_type is set to MOCK, the mock_info field is mandatory.

    +
  • GRPC: gRPC backend.

    +
+

Enumeration values:

+
  • HTTP

    +
  • FUNCTION

    +
  • MOCK

    +
  • GRPC

    +
+

remark

+

String

+

API description. It cannot exceed 255 characters.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

body_remark

+

String

+

API request body, which can be an example request body, media type, or parameters. Ensure that the request body does not exceed 20,480 characters.

+

result_normal_sample

+

String

+

Example response for a successful request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

result_failure_sample

+

String

+

Example response for a failed request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

tags

+

Array of strings

+

Tag.

+

Use letters, digits, and special characters (-*#%.:_) and start with a letter.

+

By default, 10 tags are supported. To increase the quota, contact technical support to modify the API_TAG_NUM_LIMIT configuration.

+

Minimum: 1

+

Maximum: 128

+

response_id

+

String

+

Group response ID.

+

roma_app_id

+

String

+

Integration application ID.

+

Currently, this parameter is not supported.

+

domain_name

+

String

+

Custom domain name bound to the API.

+

Currently, this parameter is not supported.

+

tag

+

String

+

Tag.

+

This field will be deprecated. You can use the tags field instead.

+

content_type

+

String

+

Request content type:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

Coming soon.

+

Enumeration values:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

id

+

String

+

API ID.

+

status

+

Integer

+

App status.

+
  • 1: valid

    +
+

arrange_necessary

+

Integer

+

Indicates whether to enable orchestration.

+

register_time

+

String

+

Time when the API is registered.

+

update_time

+

String

+

Time when the API was last modified.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

group_version

+

String

+

Version of the API group to which the API belongs.

+

The default value is V1. Other versions are not supported.

+

Default: V1

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

Separate multiple environment IDs with vertical bars (|).

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

Separate multiple environment names with vertical bars (|).

+

publish_id

+

String

+

Publication record ID.

+

Separate multiple publication record IDs with vertical bars (|).

+

publish_time

+

String

+

Time when the API version is published.

+

roma_app_name

+

String

+

Name of the integration application to which the API belongs.

+

Currently, this parameter is not supported.

+

ld_api_id

+

String

+

ID of the corresponding custom backend API.

+

Currently, this parameter is not supported.

+

backend_api

+

BackendApi object

+

Web backend details.

+

api_group_info

+

ApiGroupCommonInfo object

+

API group information.

+

func_info

+

ApiFunc object

+

FunctionGraph backend details.

+

mock_info

+

ApiMock object

+

Mock backend details.

+

req_params

+

Array of ReqParam objects

+

Request parameters.

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

policy_functions

+

Array of ApiPolicyFunctionResp objects

+

FunctionGraph backend policies.

+

policy_mocks

+

Array of ApiPolicyMockResp objects

+

Mock backend policies.

+

policy_https

+

Array of ApiPolicyHttpResp objects

+

Web backend policies.

+

sl_domain

+

String

+

Subdomain name that API Gateway automatically allocates to the API group.

+

sl_domains

+

Array of strings

+

Subdomain names that APIG automatically allocates to the API group.

+

version_id

+

String

+

API version ID.

+
+
+ +
+ + + + + + + + + +
Table 4 AuthOpt

Parameter

+

Type

+

Description

+

app_code_auth_type

+

String

+

Indicates whether AppCode authentication is enabled. This parameter is valid only if auth_type is set to App. The default value is DISABLE.

+
  • DISABLE: AppCode authentication is disabled.

    +
  • HEADER: AppCode authentication is enabled and the AppCode is located in the header.

    +
+

Default: DISABLE

+

Enumeration values:

+
  • DISABLE

    +
  • HEADER

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 BackendApi

Parameter

+

Type

+

Description

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

url_domain

+

String

+

Backend service address.

+

A backend service address consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Host name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

String

+

Request protocol. You can select GRPCS for the GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

req_method

+

String

+

Request method. For the GRPC backend, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

version

+

String

+

Web backend version, which can contain a maximum of 16 characters.

+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

enable_client_ssl

+

Boolean

+

Indicates whether to enable two-way authentication.

+

retry_count

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

id

+

String

+

ID.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

register_time

+

String

+

Registration time.

+

update_time

+

String

+

Update time.

+

vpc_channel_info

+

VpcInfo object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 ApiGroupCommonInfo

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

API group name.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

sl_domain

+

String

+

Subdomain name that APIG automatically allocates to the API group.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Last modification time.

+

on_sell_status

+

Integer

+

Indicates whether the API group has been listed on KooGallery.

+
  • 1: listed

    +
  • 2: not listed

    +
  • 3: under review

    +
+

Not supported currently.

+

url_domains

+

Array of UrlDomain objects

+

Independent domain names bound to the API group.

+

sl_domain_access_enabled

+

Boolean

+

Whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 UrlDomain

Parameter

+

Type

+

Description

+

id

+

String

+

Domain ID.

+

domain

+

String

+

Domain name.

+

cname_status

+

Integer

+

CNAME resolution status of the domain name.

+
  • 1: not resolved

    +
  • 2: resolving

    +
  • 3: resolved

    +
  • 4: resolution failed

    +
+

ssl_id

+

String

+

SSL certificate ID.

+

ssl_name

+

String

+

SSL certificate name.

+

min_ssl_version

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1

    +
  • TLSv1.2

    +
+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 ApiFunc

Parameter

+

Type

+

Description

+

function_urn

+

String

+

Function URN.

+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

invocation_type

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

String

+

Function version.

+

If both a function alias URN and version are passed, only the alias URN will be used.

+

Maximum: 64

+

alias_urn

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

req_protocol

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

id

+

String

+

ID.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 ApiMock

Parameter

+

Type

+

Description

+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

result_content

+

String

+

Response.

+

version

+

String

+

Function version. It cannot exceed 64 characters.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

id

+

String

+

ID.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 ReqParam

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

The parameter name can contain 1 to 32 characters and must start with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

type

+

String

+

Parameter type.

+

Enumeration values:

+
  • STRING

    +
  • NUMBER

    +
+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

default_value

+

String

+

Default value.

+

sample_value

+

String

+

Example value.

+

required

+

Integer

+

Indicates whether the parameter is required. 1: yes 2: no

+

The value of this parameter is 1 if Location is set to PATH, and 2 if Location is set to another value.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

valid_enable

+

Integer

+

Indicates whether validity check is enabled.

+
  • 1: enabled

    +
  • 2: disabled

    +
+

Default: 2

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

enumerations

+

String

+

Enumerated value.

+

min_num

+

Integer

+

Minimum value.

+

This parameter is valid when type is set to NUMBER.

+

max_num

+

Integer

+

Maximum value.

+

This parameter is valid when type is set to NUMBER.

+

min_size

+

Integer

+

Minimum length.

+

This parameter is valid when type is set to STRING.

+

max_size

+

Integer

+

Maximum length.

+

This parameter is valid when type is set to STRING.

+

regular

+

String

+

Regular expression validation rule.

+

Currently, this parameter is not supported.

+

json_schema

+

String

+

JSON validation rule.

+

Currently, this parameter is not supported.

+

pass_through

+

Integer

+

Indicates whether to transparently transfer the parameter. 1: yes 2: no

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

id

+

String

+

Parameter ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 ApiPolicyFunctionResp

Parameter

+

Type

+

Description

+

function_urn

+

String

+

Function URN.

+

invocation_type

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

alias_urn

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

req_protocol

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 ApiPolicyMockResp

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

result_content

+

String

+

Response.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 13 ApiPolicyHttpResp

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

url_domain

+

String

+

Endpoint of the policy backend.

+

An endpoint consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Domain name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

String

+

Request protocol. Options include HTTP, HTTPS, and GRPCS. You can select GRPCS for a GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

req_method

+

String

+

Request method. Options include GET, POST, PUT, DELETE, HEAD, PATCH, OPTIONS, and ANY. This is fixed to POST for the GRPC backend.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

retry_count

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

vpc_channel_info

+

VpcInfo object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 14 BackendParam

Parameter

+

Type

+

Description

+

origin

+

String

+

Parameter type.

+
  • REQUEST: backend parameter

    +
  • CONSTANT: constant parameter

    +
  • SYSTEM: system parameter

    +
+

Enumeration values:

+
  • REQUEST

    +
  • CONSTANT

    +
  • SYSTEM

    +
+

name

+

String

+

Parameter name.

+

The parameter name must start with a letter and can only contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Minimum: 1

+

Maximum: 32

+

remark

+

String

+

Description, which can contain a maximum of 255 characters.

+

location

+

String

+

Parameter location. The value can be PATH, QUERY, or HEADER.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

value

+

String

+

Parameter value, which can contain a maximum of 255 characters.

+

If the origin type is REQUEST, the value of this parameter is the parameter name in req_params.

+

If the origin type is CONSTANT, the value is a constant.

+

If the origin type is SYSTEM, the value is a system parameter name. System parameters include gateway parameters, frontend authentication parameters, and backend authentication parameters. You can set the frontend or backend authentication parameters after enabling custom frontend or backend authentication.

+

The gateway parameters are as follows:

+
  • $context.sourceIp: source IP address of the API caller.

    +
  • $context.stage: deployment environment in which the API is called.

    +
  • $context.apiId: API ID.

    +
  • $context.appId: ID of the app used by the API caller.

    +
  • $context.requestId: request ID generated when the API is called.

    +
  • $context.serverAddr: address of the gateway server.

    +
  • $context.serverName: name of the gateway server.

    +
  • $context.handleTime: time when the API request is processed.

    +
  • $context.providerAppId: ID of the app used by the API owner. This parameter is currently not supported.

    +
+

Frontend authentication parameter: prefixed with "$context.authorizer.frontend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.frontend.aaa".

+

Backend authentication parameter: prefixed with "$context.authorizer.backend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.backend.aaa".

+

id

+

String

+

Parameter ID.

+

req_param_id

+

String

+

Request parameter ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 15 CoditionResp

Parameter

+

Type

+

Description

+

req_param_name

+

String

+

Input parameter name. This parameter is required if the policy type is param.

+

sys_param_name

+

String

+

Name of a built-in gateway parameter. This parameter is required if the policy type is system. The following parameters are supported:

+
  • req_path: request path. For example, /a/b.

    +
  • req_method: request method. For example, GET.

    +
  • reqPath: request path, which is discarded. For example, /a/b.

    +
  • reqMethod: request method, which is discarded. For example, GET.

    +
+

Enumeration values:

+
  • req_path

    +
  • req_method

    +
  • reqPath

    +
  • reqMethod

    +
+

cookie_param_name

+

String

+

COOKIE parameter name. This parameter is required if the policy type is cookie.

+

Minimum: 0

+

Maximum: 255

+

frontend_authorizer_param_name

+

String

+

System parameter: frontend authentication parameter name. This parameter is mandatory when the policy type is frontend_authorizer. The frontend authentication parameter name is prefixed with $context.authorizer.frontend. For example, if the frontend authentication parameter name is user_name, the name with the prefix will be $context.authorizer.frontend.user_name.

+

condition_type

+

String

+

Policy condition.

+
  • exact: Exact match

    +
  • enum: Enumeration

    +
  • pattern: Regular expression

    +
+

This parameter is required when the policy type is param, system, cookie, or frontend_authorizer.

+

Enumeration values:

+
  • exact

    +
  • enum

    +
  • pattern

    +
+

condition_origin

+

String

+

Policy type

+
  • param: parameter

    +
  • source: source IP address

    +
  • system: system parameter - gateway built-in parameter

    +
  • cookie: COOKIE parameter

    +
  • frontend_authorizer: system parameter - frontend authentication parameter

    +
+

Enumeration values:

+
  • param

    +
  • source

    +
  • system

    +
  • cookie

    +
  • frontend_authorizer

    +
+

condition_value

+

String

+

Policy value. This parameter is required when the policy type is param, source, cookie, or frontend_authorizer.

+

id

+

String

+

ID.

+

req_param_id

+

String

+

Input parameter ID.

+

req_param_location

+

String

+

Input parameter location.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 16 VpcInfo

Parameter

+

Type

+

Description

+

ecs_id

+

String

+

Cloud server ID.

+

ecs_name

+

String

+

Cloud server name.

+

cascade_flag

+

Boolean

+

Indicates whether to use the cascading mode.

+

Currently, this parameter is not supported.

+

vpc_channel_proxy_host

+

String

+

Proxy host.

+

vpc_channel_id

+

String

+

VPC channel ID.

+

vpc_channel_port

+

Integer

+

VPC channel port.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 17 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 18 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 19 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 20 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "name" : "Api_http",
+  "type" : 1,
+  "version" : "V0.0.1",
+  "req_protocol" : "HTTPS",
+  "req_method" : "GET",
+  "req_uri" : "/test/http",
+  "auth_type" : "AUTHORIZER",
+  "auth_opt" : [ {
+    "app_code_auth_type" : "DISABLE"
+  } ],
+  "authorizer_id" : "8d0443832a194eaa84244e0c1c1912ac",
+  "cors" : false,
+  "match_mode" : "NORMAL",
+  "backend_type" : "HTTP",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "result_normal_sample" : "Example success response",
+  "result_failure_sample" : "Example failure response",
+  "id" : "5f918d104dc84480a75166ba99efff21",
+  "status" : 1,
+  "arrange_necessary" : 2,
+  "remark" : "Web backend API",
+  "register_time" : "2020-07-31T12:42:51Z",
+  "update_time" : "2020-08-02T16:32:47.046289Z",
+  "group_name" : "api_group_001",
+  "run_env_name" : "RELEASE",
+  "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+  "sl_domain" : "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com",
+  "sl_domains" : [ "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com", "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.cn" ],
+  "version_id" : "ee1a5a38d3d3493abf1dc4ed6cacfa0b",
+  "publish_time" : "2020-08-03T01:36:00Z",
+  "backend_api" : {
+    "url_domain" : "56a7d7358e1b42459c9d730d65b14e59",
+    "req_protocol" : "HTTPS",
+    "req_method" : "GET",
+    "req_uri" : "/test/benchmark",
+    "timeout" : 5000,
+    "id" : "1ce8fda3586d4371bd83c955df37e102",
+    "status" : 1,
+    "register_time" : "2020-07-31T12:42:51Z",
+    "update_time" : "2020-08-02T16:32:47.077029Z",
+    "vpc_channel_status" : 1,
+    "vpc_channel_info" : {
+      "cascade_flag" : false,
+      "vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59",
+      "vpc_channel_proxy_host" : "www.example.com",
+      "vpc_channel_port" : 0
+    },
+    "retry_count" : "-1"
+  },
+  "backend_params" : [ {
+    "name" : "X-CONSTANT-HEADER",
+    "location" : "HEADER",
+    "origin" : "CONSTANT",
+    "value" : "demo",
+    "remark" : "constant_demo",
+    "id" : "8cb2eba19e7a4423a4e835647a8b8d76"
+  }, {
+    "name" : "app-id",
+    "location" : "HEADER",
+    "origin" : "SYSTEM",
+    "value" : "$context.appId",
+    "remark" : "App ID of the API caller",
+    "id" : "216ddda836e74d528f364ff589d9dd21"
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3022",
+  "error_msg" : "The API version does not exist,id:ee1a5a38d3d3493abf1dc4ed6cacfa0b"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApiVersionsV2.html b/docs/apig/api-ref/ListApiVersionsV2.html new file mode 100644 index 00000000..66fbdd63 --- /dev/null +++ b/docs/apig/api-ref/ListApiVersionsV2.html @@ -0,0 +1,471 @@ + + +

Querying Historical Versions of an API

+

Function

This API is used to query the historical versions of an API. APIG retains a maximum of 10 historical versions for each API in an environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apis/publish/{api_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

env_id

+

No

+

String

+

Environment ID.

+

env_name

+

No

+

String

+

Environment name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

api_versions

+

Array of ApiVersionResp objects

+

Historical version list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiVersionResp

Parameter

+

Type

+

Description

+

version_id

+

String

+

API version ID.

+

version_no

+

String

+

API version.

+

api_id

+

String

+

API ID.

+

env_id

+

String

+

ID of the environment in which the API has been published.

+

env_name

+

String

+

Name of the environment in which the API has been published.

+

remark

+

String

+

Description about the publication.

+

publish_time

+

String

+

Publication time.

+

status

+

Integer

+

Version status.

+
  • 1: effective

    +
  • 2: not effective

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "api_versions" : [ {
+    "version_id" : "ee1a5a38d3d3493abf1dc4ed6cacfa0b",
+    "version_no" : "20200803093600",
+    "api_id" : "5f918d104dc84480a75166ba99efff21",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "publish_time" : "2020-08-03T01:36:00Z",
+    "status" : 1
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:env_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApisBindedToAclPolicyV2.html b/docs/apig/api-ref/ListApisBindedToAclPolicyV2.html new file mode 100644 index 00000000..143e3c22 --- /dev/null +++ b/docs/apig/api-ref/ListApisBindedToAclPolicyV2.html @@ -0,0 +1,516 @@ + + +

Querying APIs Bound with an Access Control Policy

+

Function

This API is used to query the APIs to which an access control policy has been bound.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings/binded-apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

acl_id

+

Yes

+

String

+

Access control policy ID.

+

api_id

+

No

+

String

+

API ID.

+

api_name

+

No

+

String

+

API name.

+

env_id

+

No

+

String

+

Environment ID.

+

group_id

+

No

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apis

+

Array of AclBindApiInfo objects

+

API list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 AclBindApiInfo

Parameter

+

Type

+

Description

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

api_type

+

Long

+

API type.

+

api_remark

+

String

+

API description.

+

env_id

+

String

+

ID of the environment in which the policy takes effect.

+

env_name

+

String

+

Name of the environment in which the policy takes effect.

+

bind_id

+

String

+

Binding record ID.

+

group_name

+

String

+

API group name.

+

bind_time

+

String

+

Binding time.

+

publish_id

+

String

+

API publication record ID.

+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • DELETE

    +
  • PUT

    +
  • PATCH

    +
  • HEAD

    +
  • OPTIONS

    +
  • ANY

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "apis" : [ {
+    "api_id" : "5f918d104dc84480a75166ba99efff21",
+    "api_name" : "Api_http",
+    "group_name" : "api_group_001",
+    "api_type" : 1,
+    "api_remark" : "Web backend API",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "bind_id" : "332c5db1458a477b89b2ea741fec94a3",
+    "bind_time" : "2020-08-04T08:58:03Z",
+    "publish_id" : "40e7162dc6b94bbbbb1a60d2a24b1b0c"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:api_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3006",
+  "error_msg" : "Access control policy 7eb619ecf2a24943b099833cd24a01ba does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApisBindedToAppV2.html b/docs/apig/api-ref/ListApisBindedToAppV2.html new file mode 100644 index 00000000..89dc1bd6 --- /dev/null +++ b/docs/apig/api-ref/ListApisBindedToAppV2.html @@ -0,0 +1,619 @@ + + +

Querying APIs Bound with an App

+

Function

This API is used to query the APIs to which a specified app has been bound.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/app-auths/binded-apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

app_id

+

Yes

+

String

+

App ID.

+

api_id

+

No

+

String

+

API ID.

+

api_name

+

No

+

String

+

API name.

+

group_id

+

No

+

String

+

API group ID.

+

group_name

+

No

+

String

+

API group name.

+

env_id

+

No

+

String

+

ID of the environment in which the app has been authorized.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

auths

+

Array of ApiAuthInfo objects

+

API list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiAuthInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Authorization record ID.

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

api_type

+

Integer

+

API type.

+

api_remark

+

String

+

API description.

+

env_id

+

String

+

ID of the environment in which an app has been authorized to call the API.

+

auth_role

+

String

+

Authorizer.

+

auth_time

+

String

+

Authorization time.

+

app_name

+

String

+

App name.

+

app_remark

+

String

+

App description.

+

app_type

+

String

+

App type.

+

The default value is apig. Other types are not supported currently.

+

Enumeration values:

+
  • apig

    +
  • roma

    +
+

app_creator

+

String

+

Creator of the app.

+
  • USER: The app is created by a tenant.

    +
  • MARKET: The app is allocated by KooGallery. This value is not supported currently.

    +
+

publish_id

+

String

+

API publication record ID.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

auth_tunnel

+

String

+

Authorization channel type.

+
  • NORMAL: normal channel

    +
  • GREEN: green channel

    +
+

The default value is NORMAL. This parameter is not supported currently.

+

Enumeration values:

+
  • NORMAL

    +
  • GREEN

    +
+

auth_whitelist

+

Array of strings

+

Whitelist for the green channel.

+

auth_blacklist

+

Array of strings

+

Blacklist for the green channel.

+

visit_param

+

String

+

Access parameters.

+

roma_app_type

+

String

+

ROMA application type.

+
  • subscription: subscription application

    +
  • integration: integration application

    +
+

Currently, this parameter is not supported.

+

env_name

+

String

+

Name of the environment in which the app has been authorized to call the API.

+

app_id

+

String

+

App ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "auths" : [ {
+    "api_id" : "5f918d104dc84480a75166ba99efff21",
+    "app_name" : "app_demo",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "group_name" : "api_group_001",
+    "api_type" : 1,
+    "api_name" : "Api_http",
+    "app_id" : "356de8eb7a8742168586e5daf5339965",
+    "auth_time" : "2020-08-04T04:02:22Z",
+    "app_creator" : "USER",
+    "id" : "dd29b33ae4394e3b924b582c6b40880b",
+    "api_remark" : "Web backend Api",
+    "auth_role" : "PROVIDER",
+    "app_type" : "apig",
+    "auth_tunnel" : "NORMAL",
+    "publish_id" : "40e7162dc6b94bbbbb1a60d2a24b1b0c"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:api_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApisBindedToRequestThrottlingPolicyV2.html b/docs/apig/api-ref/ListApisBindedToRequestThrottlingPolicyV2.html new file mode 100644 index 00000000..1b0f5cd4 --- /dev/null +++ b/docs/apig/api-ref/ListApisBindedToRequestThrottlingPolicyV2.html @@ -0,0 +1,548 @@ + + +

Querying APIs Bound with a Request Throttling Policy

+

Function

This API is used to query the APIs to which a specified request throttling policy has been bound.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings/binded-apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

throttle_id

+

Yes

+

String

+

Request throttling policy ID.

+

env_id

+

No

+

String

+

Environment ID.

+

group_id

+

No

+

String

+

API group ID.

+

api_id

+

No

+

String

+

API ID.

+

api_name

+

No

+

String

+

API name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apis

+

Array of ApiForThrottle objects

+

API list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiForThrottle

Parameter

+

Type

+

Description

+

auth_type

+

String

+

API authentication mode.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

publish_id

+

String

+

API publication record ID.

+

throttle_apply_id

+

String

+

ID of a request throttling policy binding record.

+

apply_time

+

String

+

Binding time.

+

remark

+

String

+

API description.

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

type

+

Integer

+

API type.

+

throttle_name

+

String

+

Name of the request throttling policy bound to the API.

+

req_uri

+

String

+

Access address of the API.

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

name

+

String

+

API name.

+

id

+

String

+

API ID.

+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • DELETE

    +
  • PUT

    +
  • PATCH

    +
  • HEAD

    +
  • OPTIONS

    +
  • ANY

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "apis" : [ {
+    "run_env_name" : "RELEASE",
+    "group_name" : "api_group_001",
+    "publish_id" : "40e7162dc6b94bbbbb1a60d2a24b1b0c",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "throttle_apply_id" : "3e06ac135e18477e918060d3c59d6f6a",
+    "name" : "Api_http",
+    "apply_time" : "2020-08-03T12:25:52Z",
+    "remark" : "Web backend API",
+    "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "id" : "5f918d104dc84480a75166ba99efff21",
+    "type" : 1,
+    "throttle_name" : "throttle_demo",
+    "auth_type" : "APP",
+    "req_uri" : "/test/http"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:throttle_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3005",
+  "error_msg" : "Request throttling policy 3437448ad06f4e0c91a224183116e965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApisBindedToSignatureKeyV2.html b/docs/apig/api-ref/ListApisBindedToSignatureKeyV2.html new file mode 100644 index 00000000..5539b9f5 --- /dev/null +++ b/docs/apig/api-ref/ListApisBindedToSignatureKeyV2.html @@ -0,0 +1,531 @@ + + +

Querying APIs Bound with a Signature Key

+

Function

This API is used to query the APIs to which a signature key has been bound.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings/binded-apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

sign_id

+

Yes

+

String

+

Signature key ID.

+

env_id

+

No

+

String

+

Environment ID.

+

api_id

+

No

+

String

+

API ID.

+

api_name

+

No

+

String

+

API name.

+

group_id

+

No

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

bindings

+

Array of SignApiBindingBase objects

+

List of signature key binding records.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 SignApiBindingBase

Parameter

+

Type

+

Description

+

publish_id

+

String

+

API publication record ID.

+

api_id

+

String

+

API ID.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

binding_time

+

String

+

Binding time.

+

env_id

+

String

+

ID of the environment in which the API has been published.

+

env_name

+

String

+

Name of the environment in which the API has been published.

+

api_type

+

Integer

+

API type.

+

api_name

+

String

+

API name.

+

id

+

String

+

Binding record ID.

+

api_remark

+

String

+

API description.

+

sign_id

+

String

+

Signature key ID.

+

sign_name

+

String

+

Signature key name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • DELETE

    +
  • PUT

    +
  • PATCH

    +
  • HEAD

    +
  • OPTIONS

    +
  • ANY

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "bindings" : [ {
+    "api_id" : "5f918d104dc84480a75166ba99efff21",
+    "group_name" : "api_group_001",
+    "binding_time" : "2020-08-03T04:00:11Z",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "sign_name" : "signature_demo",
+    "api_type" : 1,
+    "api_name" : "Api_http",
+    "id" : "25082bd52f74442bb1d273993d567938",
+    "api_remark" : "Web backend API",
+    "publish_id" : "40e7162dc6b94bbbbb1a60d2a24b1b0c"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:api_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3017",
+  "error_msg" : "Signature key 0b0e8f456b8742218af75f945307173c does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApisNotBoundWithSignatureKeyV2.html b/docs/apig/api-ref/ListApisNotBoundWithSignatureKeyV2.html new file mode 100644 index 00000000..67139bcc --- /dev/null +++ b/docs/apig/api-ref/ListApisNotBoundWithSignatureKeyV2.html @@ -0,0 +1,531 @@ + + +

Querying APIs Not Bound with a Signature Key

+

Function

This API is used to query the APIs to which a signature key has not been bound. Only published APIs will be displayed.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings/unbinded-apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

sign_id

+

Yes

+

String

+

Signature key ID.

+

env_id

+

No

+

String

+

Environment ID.

+

api_id

+

No

+

String

+

API ID.

+

api_name

+

No

+

String

+

API name.

+

group_id

+

No

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apis

+

Array of ApiForSign objects

+

API list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiForSign

Parameter

+

Type

+

Description

+

auth_type

+

String

+

API authentication mode.

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

publish_id

+

String

+

Publication record ID.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

name

+

String

+

API name.

+

remark

+

String

+

API description.

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

id

+

String

+

API ID.

+

req_uri

+

String

+

API request address.

+

type

+

Integer

+

API type.

+

signature_name

+

String

+

Name of the signature key bound to the API.

+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • DELETE

    +
  • PUT

    +
  • PATCH

    +
  • HEAD

    +
  • OPTIONS

    +
  • ANY

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "apis" : [ {
+    "run_env_name" : "RELEASE",
+    "group_name" : "api_group_001",
+    "remark" : "Mock backend API",
+    "publish_id" : "9f27d1dc4f4242a9abf88e563dbfc33d",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "name" : "Api_mock",
+    "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "id" : "3a955b791bd24b1c9cd94c745f8d1aad",
+    "type" : 1,
+    "auth_type" : "IAM",
+    "req_uri" : "/test/mock"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:api_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3017",
+  "error_msg" : "Signature key 0b0e8f456b8742218af75f945307173c does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApisUnbindedToAclPolicyV2.html b/docs/apig/api-ref/ListApisUnbindedToAclPolicyV2.html new file mode 100644 index 00000000..a2723141 --- /dev/null +++ b/docs/apig/api-ref/ListApisUnbindedToAclPolicyV2.html @@ -0,0 +1,531 @@ + + +

Querying APIs Not Bound with an Access Control Policy

+

Function

This API is used to query the published APIs to which an access control policy has not been bound.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings/unbinded-apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

acl_id

+

Yes

+

String

+

Access control policy ID.

+

api_id

+

No

+

String

+

API ID.

+

api_name

+

No

+

String

+

API name.

+

env_id

+

No

+

String

+

Environment ID.

+

group_id

+

No

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apis

+

Array of UnbindApiForAcl objects

+

API list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 UnbindApiForAcl

Parameter

+

Type

+

Description

+

id

+

String

+

API ID.

+

name

+

String

+

API name.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

type

+

Integer

+

API visibility.

+

remark

+

String

+

API description.

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

publish_id

+

String

+

API publication record ID.

+

acl_name

+

String

+

Name of the same type of access control policy bound to the API.

+

req_uri

+

String

+

API request address.

+

auth_type

+

String

+

API authentication mode.

+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • DELETE

    +
  • PUT

    +
  • PATCH

    +
  • HEAD

    +
  • OPTIONS

    +
  • ANY

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "apis" : [ {
+    "name" : "Api_mock",
+    "type" : 1,
+    "remark" : "Mock backend API",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "id" : "3a955b791bd24b1c9cd94c745f8d1aad",
+    "group_name" : "api_group_001",
+    "run_env_name" : "RELEASE",
+    "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "publish_id" : "9f27d1dc4f4242a9abf88e563dbfc33d",
+    "req_uri" : "/test/mock",
+    "auth_type" : "IAM"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:api_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3006",
+  "error_msg" : "Access control policy 7eb619ecf2a24943b099833cd24a01ba does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApisUnbindedToAppV2.html b/docs/apig/api-ref/ListApisUnbindedToAppV2.html new file mode 100644 index 00000000..9800a46b --- /dev/null +++ b/docs/apig/api-ref/ListApisUnbindedToAppV2.html @@ -0,0 +1,510 @@ + + +

Querying APIs Not Bound with an App

+

Function

This API is used to query the self-developed APIs to which an app has not been bound in a specified environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/app-auths/unbinded-apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

app_id

+

Yes

+

String

+

App ID.

+

env_id

+

Yes

+

String

+

Environment ID.

+

group_id

+

No

+

String

+

API group ID.

+

api_id

+

No

+

String

+

API ID.

+

api_name

+

No

+

String

+

API name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apis

+

Array of ApiOutline objects

+

API list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiOutline

Parameter

+

Type

+

Description

+

auth_type

+

String

+

API authentication mode.

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

publish_id

+

String

+

Publication record ID.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

name

+

String

+

API name.

+

remark

+

String

+

API description.

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

id

+

String

+

API ID.

+

req_uri

+

String

+

API request address.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "apis" : [ {
+    "auth_type" : "APP",
+    "run_env_name" : "",
+    "group_name" : "api_group_001",
+    "publish_id" : "",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "name" : "Api_function",
+    "remark" : "FunctionGraph backend API",
+    "run_env_id" : "",
+    "id" : "abd9c4b2ff974888b0ba79be7e6b2763",
+    "req_uri" : "/test/function"
+  }, {
+    "auth_type" : "APP",
+    "run_env_name" : "RELEASE",
+    "group_name" : "APIGroup_d3da",
+    "publish_id" : "ca2631e233a74a758744ae1e19cc5ad7",
+    "group_id" : "6acd94abe58747ee8a73b10c70817bac",
+    "name" : "API_test",
+    "remark" : "FunctionGraph backend API",
+    "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "id" : "11cbec3a7a8345ca981b86d161bc436e",
+    "req_uri" : "/appcode"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:api_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApisUnbindedToRequestThrottlingPolicyV2.html b/docs/apig/api-ref/ListApisUnbindedToRequestThrottlingPolicyV2.html new file mode 100644 index 00000000..b44baf6e --- /dev/null +++ b/docs/apig/api-ref/ListApisUnbindedToRequestThrottlingPolicyV2.html @@ -0,0 +1,556 @@ + + +

Querying APIs Not Bound with a Request Throttling Policy

+

Function

This API is used to query the self-developed APIs to which a request throttling policy has not been bound. Only published APIs will be displayed.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings/unbinded-apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

throttle_id

+

Yes

+

String

+

Request throttling policy ID.

+

env_id

+

No

+

String

+

Environment ID.

+

group_id

+

No

+

String

+

API group ID.

+

api_id

+

No

+

String

+

API ID.

+

api_name

+

No

+

String

+

API name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apis

+

Array of ApiForThrottle objects

+

API list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiForThrottle

Parameter

+

Type

+

Description

+

auth_type

+

String

+

API authentication mode.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

publish_id

+

String

+

API publication record ID.

+

throttle_apply_id

+

String

+

ID of a request throttling policy binding record.

+

apply_time

+

String

+

Binding time.

+

remark

+

String

+

API description.

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

type

+

Integer

+

API type.

+

throttle_name

+

String

+

Name of the request throttling policy bound to the API.

+

req_uri

+

String

+

Access address of the API.

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

name

+

String

+

API name.

+

id

+

String

+

API ID.

+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • DELETE

    +
  • PUT

    +
  • PATCH

    +
  • HEAD

    +
  • OPTIONS

    +
  • ANY

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "apis" : [ {
+    "run_env_name" : "RELEASE",
+    "group_name" : "api_group_001",
+    "publish_id" : "9f27d1dc4f4242a9abf88e563dbfc33d",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "name" : "Api_mock",
+    "remark" : "Mock backend API",
+    "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "id" : "3a955b791bd24b1c9cd94c745f8d1aad",
+    "type" : 1,
+    "auth_type" : "IAM",
+    "req_uri" : "/test/mock"
+  }, {
+    "run_env_name" : "RELEASE",
+    "group_name" : "APIGroup_d00511069",
+    "publish_id" : "0c613568c8644a1b92172156f77a5759",
+    "group_id" : "d7d0b9a54469424f942e16a6b6026936",
+    "name" : "API_nevj",
+    "run_env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "id" : "9e07bc00a1864ab4aafd4a23d19dd1c2",
+    "type" : 1,
+    "auth_type" : "APP",
+    "req_uri" : "/fdasf"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:throttle_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3005",
+  "error_msg" : "Request throttling policy 3437448ad06f4e0c91a224183116e965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListApisV2.html b/docs/apig/api-ref/ListApisV2.html new file mode 100644 index 00000000..ec1e74b4 --- /dev/null +++ b/docs/apig/api-ref/ListApisV2.html @@ -0,0 +1,1459 @@ + + +

Querying APIs

+

Function

This API is used to query APIs to return their details and publication information. Backend and request parameter information of the APIs will not be returned.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apis

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

id

+

No

+

String

+

API ID.

+

name

+

No

+

String

+

API name.

+

group_id

+

No

+

String

+

API group ID.

+

req_protocol

+

No

+

String

+

Request protocol.

+

req_method

+

No

+

String

+

Request method.

+

req_uri

+

No

+

String

+

Request path.

+

auth_type

+

No

+

String

+

Security authentication mode.

+

env_id

+

No

+

String

+

ID of the environment in which the API has been published.

+

type

+

No

+

Integer

+

API type.

+

precise_search

+

No

+

String

+

Parameter name (name or req_uri) for exact matching.

+

vpc_channel_name

+

No

+

String

+

Load balance channel name.

+

return_data_mode

+

No

+

String

+

Additional information to be included in the returned API details. Separate multiple parameters with commas (,). "brief" does not take effect when used with any "include" parameters. Currently, only brief, include_group, and include_group_backend are supported. brief: default, indicating that no additional information will be included. include_group: The return result will include api_group_info. include_group_backend: The return result will include backend_api.

+

Default: brief

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apis

+

Array of ApiInfoPerPage objects

+

API list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiInfoPerPage

Parameter

+

Type

+

Description

+

name

+

String

+

API name.

+

It can contain 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Integer

+

API type.

+
  • 1: public API

    +
  • 2: private API

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

version

+

String

+

API version.

+

Maximum: 16

+

req_protocol

+

String

+

API request protocol:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
  • GRPCS

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
  • GRPCS

    +
+

req_method

+

String

+

API request method. If the request protocol is set to GRPC, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

String

+

API authentication mode. Options:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER: custom authentication. When auth_type is set to AUTHORIZER, the authorizer_id field is mandatory.

    +
+

Custom authentication is unavailable if the request protocol is set to GRPC.

+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

auth_opt

+

AuthOpt object

+

Security authentication parameter.

+

cors

+

Boolean

+

Indicates whether CORS is supported.

+
  • TRUE: supported

    +
  • FALSE: not supported

    +
+

Default: false

+

Enumeration values:

+
  • true

    +
  • false

    +
+

match_mode

+

String

+

API matching mode:

+
  • SWA: Prefix match

    +
  • NORMAL: Exact match Default value: NORMAL

    +
+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

backend_type

+

String

+

Backend type. Options:

+
  • HTTP: web backend

    +
  • FUNCTION: FunctionGraph backend. When backend_type is set to FUNCTION, the func_info field is mandatory.

    +
  • MOCK: mock backend. When backend_type is set to MOCK, the mock_info field is mandatory.

    +
  • GRPC: gRPC backend.

    +
+

Enumeration values:

+
  • HTTP

    +
  • FUNCTION

    +
  • MOCK

    +
  • GRPC

    +
+

remark

+

String

+

API description. It cannot exceed 255 characters.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

body_remark

+

String

+

API request body, which can be an example request body, media type, or parameters. Ensure that the request body does not exceed 20,480 characters.

+

result_normal_sample

+

String

+

Example response for a successful request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

result_failure_sample

+

String

+

Example response for a failed request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

tags

+

Array of strings

+

Tag.

+

Use letters, digits, and special characters (-*#%.:_) and start with a letter.

+

By default, 10 tags are supported. To increase the quota, contact technical support to modify the API_TAG_NUM_LIMIT configuration.

+

Minimum: 1

+

Maximum: 128

+

response_id

+

String

+

Group response ID.

+

roma_app_id

+

String

+

Integration application ID.

+

Currently, this parameter is not supported.

+

domain_name

+

String

+

Custom domain name bound to the API.

+

Currently, this parameter is not supported.

+

tag

+

String

+

Tag.

+

This field will be deprecated. You can use the tags field instead.

+

content_type

+

String

+

Request content type:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

Coming soon.

+

Enumeration values:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

id

+

String

+

API ID.

+

status

+

Integer

+

App status.

+
  • 1: valid

    +
+

arrange_necessary

+

Integer

+

Indicates whether to enable orchestration.

+

register_time

+

String

+

Time when the API is registered.

+

update_time

+

String

+

Time when the API was last modified.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

group_version

+

String

+

Version of the API group to which the API belongs.

+

The default value is V1. Other versions are not supported.

+

Default: V1

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

Separate multiple environment IDs with vertical bars (|).

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

Separate multiple environment names with vertical bars (|).

+

publish_id

+

String

+

Publication record ID.

+

Separate multiple publication record IDs with vertical bars (|).

+

publish_time

+

String

+

Publication time.

+

Separate the time of multiple publication records with vertical bars (|).

+

roma_app_name

+

String

+

Name of the integration application to which the API belongs.

+

Currently, this parameter is not supported.

+

ld_api_id

+

String

+

ID of the corresponding custom backend API.

+

Currently, this parameter is not supported.

+

backend_api

+

BackendApi object

+

Backend information.

+

api_group_info

+

ApiGroupCommonInfo object

+

API group information.

+

req_params

+

Array of ReqParam objects

+

Request parameters.

+
+
+ +
+ + + + + + + + + +
Table 6 AuthOpt

Parameter

+

Type

+

Description

+

app_code_auth_type

+

String

+

Indicates whether AppCode authentication is enabled. This parameter is valid only if auth_type is set to App. The default value is DISABLE.

+
  • DISABLE: AppCode authentication is disabled.

    +
  • HEADER: AppCode authentication is enabled and the AppCode is located in the header.

    +
+

Default: DISABLE

+

Enumeration values:

+
  • DISABLE

    +
  • HEADER

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 BackendApi

Parameter

+

Type

+

Description

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

url_domain

+

String

+

Backend service address.

+

A backend service address consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Host name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

String

+

Request protocol. You can select GRPCS for the GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

req_method

+

String

+

Request method. For the GRPC backend, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

version

+

String

+

Web backend version, which can contain a maximum of 16 characters.

+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

enable_client_ssl

+

Boolean

+

Indicates whether to enable two-way authentication.

+

retry_count

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

id

+

String

+

ID.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

register_time

+

String

+

Registration time.

+

update_time

+

String

+

Update time.

+

vpc_channel_info

+

VpcInfo object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 VpcInfo

Parameter

+

Type

+

Description

+

ecs_id

+

String

+

Cloud server ID.

+

ecs_name

+

String

+

Cloud server name.

+

cascade_flag

+

Boolean

+

Indicates whether to use the cascading mode.

+

Currently, this parameter is not supported.

+

vpc_channel_proxy_host

+

String

+

Proxy host.

+

vpc_channel_id

+

String

+

VPC channel ID.

+

vpc_channel_port

+

Integer

+

VPC channel port.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 ApiGroupCommonInfo

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

API group name.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

sl_domain

+

String

+

Subdomain name that APIG automatically allocates to the API group.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Last modification time.

+

on_sell_status

+

Integer

+

Indicates whether the API group has been listed on KooGallery.

+
  • 1: listed

    +
  • 2: not listed

    +
  • 3: under review

    +
+

Not supported currently.

+

url_domains

+

Array of UrlDomain objects

+

Independent domain names bound to the API group.

+

sl_domain_access_enabled

+

Boolean

+

Whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 UrlDomain

Parameter

+

Type

+

Description

+

id

+

String

+

Domain ID.

+

domain

+

String

+

Domain name.

+

cname_status

+

Integer

+

CNAME resolution status of the domain name.

+
  • 1: not resolved

    +
  • 2: resolving

    +
  • 3: resolved

    +
  • 4: resolution failed

    +
+

ssl_id

+

String

+

SSL certificate ID.

+

ssl_name

+

String

+

SSL certificate name.

+

min_ssl_version

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1

    +
  • TLSv1.2

    +
+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 ReqParam

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

The parameter name can contain 1 to 32 characters and must start with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

type

+

String

+

Parameter type.

+

Enumeration values:

+
  • STRING

    +
  • NUMBER

    +
+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

default_value

+

String

+

Default value.

+

sample_value

+

String

+

Example value.

+

required

+

Integer

+

Indicates whether the parameter is required. 1: yes 2: no

+

The value of this parameter is 1 if Location is set to PATH, and 2 if Location is set to another value.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

valid_enable

+

Integer

+

Indicates whether validity check is enabled.

+
  • 1: enabled

    +
  • 2: disabled

    +
+

Default: 2

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

enumerations

+

String

+

Enumerated value.

+

min_num

+

Integer

+

Minimum value.

+

This parameter is valid when type is set to NUMBER.

+

max_num

+

Integer

+

Maximum value.

+

This parameter is valid when type is set to NUMBER.

+

min_size

+

Integer

+

Minimum length.

+

This parameter is valid when type is set to STRING.

+

max_size

+

Integer

+

Maximum length.

+

This parameter is valid when type is set to STRING.

+

regular

+

String

+

Regular expression validation rule.

+

Currently, this parameter is not supported.

+

json_schema

+

String

+

JSON validation rule.

+

Currently, this parameter is not supported.

+

pass_through

+

Integer

+

Indicates whether to transparently transfer the parameter. 1: yes 2: no

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

id

+

String

+

Parameter ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 3,
+  "size" : 3,
+  "apis" : [ {
+    "arrange_necessary" : 2,
+    "id" : "5f918d104dc84480a75166ba99efff21",
+    "tags" : [ "webApi" ],
+    "backend_type" : "HTTP",
+    "auth_type" : "AUTHORIZER",
+    "auth_opt" : {
+      "app_code_auth_type" : "DISABLE"
+    },
+    "authorizer_id" : "8d0443832a194eaa84244e0c1c1912ac",
+    "cors" : false,
+    "status" : 1,
+    "group_name" : "api_group_001",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "group_version" : "V1",
+    "match_mode" : "NORMAL",
+    "name" : "Api_http",
+    "req_protocol" : "HTTPS",
+    "req_method" : "GET",
+    "req_uri" : "/test/http",
+    "type" : 1,
+    "version" : "V0.0.1",
+    "register_time" : "2020-07-31T12:42:51Z",
+    "update_time" : "2020-08-02T16:32:47.046289Z",
+    "remark" : "Web backend API"
+  }, {
+    "id" : "3a955b791bd24b1c9cd94c745f8d1aad",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "group_name" : "api_group_001",
+    "group_version" : "V1",
+    "match_mode" : "SWA",
+    "name" : "Api_mock",
+    "auth_type" : "IAM",
+    "auth_opt" : {
+      "auth_code_auth_type" : "DISABLE"
+    },
+    "backend_type" : "MOCK",
+    "cors" : false,
+    "req_protocol" : "HTTPS",
+    "req_uri" : "/test/mock",
+    "remark" : "Mock backend API",
+    "type" : 1,
+    "version" : "V0.0.1",
+    "req_method" : "GET",
+    "result_normal_sample" : "Example success response",
+    "result_failure_sample" : "Example failure response",
+    "tags" : [ "mockApi" ],
+    "register_time" : "2020-08-02T15:56:52Z",
+    "update_time" : "2020-08-02T15:56:52Z",
+    "status" : 1
+  }, {
+    "id" : "abd9c4b2ff974888b0ba79be7e6b2763",
+    "arrange_necessary" : 2,
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "group_name" : "api_group_001",
+    "group_version" : "V1",
+    "match_mode" : "NORMAL",
+    "name" : "Api_function",
+    "auth_type" : "APP",
+    "auth_opt" : {
+      "auth_code_auth_type" : "DISABLE"
+    },
+    "backend_type" : "FUNCTION",
+    "cors" : false,
+    "req_protocol" : "HTTPS",
+    "req_uri" : "/test/function",
+    "remark" : "FunctionGraph backend API",
+    "type" : 1,
+    "version" : "V0.0.1",
+    "status" : 1,
+    "req_method" : "GET",
+    "tags" : [ "functionApi" ],
+    "register_time" : "2020-08-02T15:36:19Z",
+    "update_time" : "2020-08-02T15:47:53.499266Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAppCodesV2.html b/docs/apig/api-ref/ListAppCodesV2.html new file mode 100644 index 00000000..ca7bb326 --- /dev/null +++ b/docs/apig/api-ref/ListAppCodesV2.html @@ -0,0 +1,421 @@ + + +

Querying AppCodes of an App

+

Function

This API is used to query the AppCodes of an app.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

app_codes

+

Array of AppCodeBaseInfo objects

+

AppCode list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 AppCodeBaseInfo

Parameter

+

Type

+

Description

+

app_code

+

String

+

AppCode value.

+

It can contain 64 to 180 characters, starting with a letter, digit, plus sign (+), or slash (/). Only letters, digits, and the following special characters are allowed: +_!@#$%-/=

+

id

+

String

+

ID.

+

app_id

+

String

+

App ID.

+

create_time

+

String

+

Creation time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "app_codes" : [ {
+    "app_code" : "GjOD3g80AABuuFeEJpVQADBlAjBh3UzC7W+gr4VJBB5BtJ4fdVOQoSvoji3gFxUDb5pWBz9wUcw9+8/bFZ1B/4pq29wCMQC0pQWX6zTndljDEl99As1pw+WntAU9xcq+ffagoH6zDpKUvdxV6Ezj8LcCcPZN6BU=",
+    "app_id" : "9ed8b7fe84224de681e7d7a5587e76dc",
+    "id" : "32dc8ca22d1b4b9cb94022186880576b",
+    "create_time" : "2020-07-24T02:37:24Z"
+  }, {
+    "app_code" : "fdc8d90a30174460a91ddacfa54d6f04c92e523a85cc4a1894f87cb13b6f572a",
+    "app_id" : "9ed8b7fe84224de681e7d7a5587e76dc",
+    "id" : "b3d34f746d0847fb95138670e10207ed",
+    "create_time" : "2020-07-24T02:31:45Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 9ed8b7fe84224de681e7d7a5587e76dc does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAppQuantitiesV2.html b/docs/apig/api-ref/ListAppQuantitiesV2.html new file mode 100644 index 00000000..1b3f7801 --- /dev/null +++ b/docs/apig/api-ref/ListAppQuantitiesV2.html @@ -0,0 +1,317 @@ + + +

Querying App Quantities

+

Function

This API is used to query the number of apps that have been authorized to access APIs and the number of apps that have not been authorized to access any APIs.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/resources/outline/apps

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

authed_nums

+

Integer

+

Number of apps that have been authorized to access APIs.

+

unauthed_nums

+

Integer

+

Number of apps that have not been authorized to access APIs.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "authed_nums" : 7,
+  "unauthed_nums" : 5
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Bad Request

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Bad Request

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAppQuotaBindableApps.html b/docs/apig/api-ref/ListAppQuotaBindableApps.html new file mode 100644 index 00000000..a7ad0ca3 --- /dev/null +++ b/docs/apig/api-ref/ListAppQuotaBindableApps.html @@ -0,0 +1,472 @@ + + +

Querying Credentials That Can Be Bound to a Credential Quota

+

Function

This API is used to query the credentials that can be bound to a credential quota. Fuzzy search by credential name is supported.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}/bindable-apps

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_quota_id

+

Yes

+

String

+

Credential Quota ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

app_name

+

No

+

String

+

App name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apps

+

Array of AppQuotaAppInfo objects

+

Credentials.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 AppQuotaAppInfo

Parameter

+

Type

+

Description

+

app_id

+

String

+

Credential ID.

+

name

+

String

+

Credential name.

+

status

+

Integer

+

Credential status:

+
  • 1: enabled

    +
  • 2: disabled

    +
+

app_key

+

String

+

Credential key.

+

remark

+

String

+

Credential description.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+

app_quota_id

+

String

+

Credential quota ID.

+

app_quota_name

+

String

+

Quota name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

bound_time

+

String

+

Binding time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "apps" : [ {
+    "app_id" : "ac18a23f-8f06-40ac-8093-f790de2ba95b",
+    "app_key" : "ac18a23f-8f06-40ac-8093-f790de2ba95b",
+    "bound_time" : "0001-01-01T00:00:00Z",
+    "name" : "app-test",
+    "register_time" : "2020-08-22T07:57:01Z",
+    "status" : 1,
+    "update_time" : "2020-08-22T07:57:01Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "The App quota c900c5612dbe451bb43cbcc49cfaf2f3 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAppQuotaBoundApps.html b/docs/apig/api-ref/ListAppQuotaBoundApps.html new file mode 100644 index 00000000..ea9d1ea4 --- /dev/null +++ b/docs/apig/api-ref/ListAppQuotaBoundApps.html @@ -0,0 +1,473 @@ + + +

Querying the Credentials Bound to a Specified Quota

+

Function

This API is used to query the credentials bound to a credential quota. Fuzzy match by credential name is supported.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}/bound-apps

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_quota_id

+

Yes

+

String

+

Credential Quota ID

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

app_name

+

No

+

String

+

Credential name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apps

+

Array of AppQuotaAppInfo objects

+

Credentials.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 AppQuotaAppInfo

Parameter

+

Type

+

Description

+

app_id

+

String

+

Credential ID.

+

name

+

String

+

Credential name.

+

status

+

Integer

+

Credential status:

+
  • 1: enabled

    +
  • 2: disabled

    +
+

app_key

+

String

+

Credential key.

+

remark

+

String

+

Credential description.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+

app_quota_id

+

String

+

Credential quota ID.

+

app_quota_name

+

String

+

Quota name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

bound_time

+

String

+

Binding time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "apps" : [ {
+    "app_id" : "98df09fb-d459-4cbf-83a7-2b55ca6f3d5d",
+    "app_key" : "9b93db07-4634-4b7a-99d8-869933ed055d",
+    "app_quota_name" : "ClientQuota_demo",
+    "bound_time" : "2020-09-19T07:43:11Z",
+    "name" : "app-demo",
+    "register_time" : "2020-09-18T09:25:19Z",
+    "status" : 1,
+    "update_time" : "2020-09-18T09:25:19Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "The App quota c900c5612dbe451bb43cbcc49cfaf2f3 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAppQuotas.html b/docs/apig/api-ref/ListAppQuotas.html new file mode 100644 index 00000000..213c6aea --- /dev/null +++ b/docs/apig/api-ref/ListAppQuotas.html @@ -0,0 +1,422 @@ + + +

Querying Credential Quotas

+

Function

This API is used to query credential quotas. Fuzzy query by name is supported.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/app-quotas

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

name

+

No

+

String

+

Credential quota name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

quotas

+

Array of AppQuotaInfo objects

+

Credential quotas.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 AppQuotaInfo

Parameter

+

Type

+

Description

+

app_quota_id

+

String

+

Credential quota ID.

+

name

+

String

+

Quota name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

call_limits

+

Integer

+

Maximum number of times a credential quota can be called.

+

time_unit

+

String

+

Time unit. The options are SECOND, MINUTE, HOUR, and DAY.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

time_interval

+

Integer

+

Time limit of a quota.

+

remark

+

String

+

Parameter description.

+

Maximum: 255

+

reset_time

+

String

+

Time when the quota is reset for the first time. If this parameter is not specified, the time is calculated based on the first calling time by default.

+

create_time

+

String

+

Creation time.

+

bound_app_num

+

Integer

+

Number of applications bound to the quota policy.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "quotas" : [ {
+    "app_quota_id" : "c900c5612dbe451bb43cbcc49cfaf2f3",
+    "call_limits" : 1000,
+    "create_time" : "2020-09-19T07:27:47Z",
+    "name" : "ClientQuota_demo",
+    "reset_time" : "2020-09-20 00:00:00 +0000 +0000",
+    "time_interval" : 1,
+    "time_unit" : "DAY"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAppsBindedToApiV2.html b/docs/apig/api-ref/ListAppsBindedToApiV2.html new file mode 100644 index 00000000..c6d45b16 --- /dev/null +++ b/docs/apig/api-ref/ListAppsBindedToApiV2.html @@ -0,0 +1,600 @@ + + +

Querying Apps Bound to an API

+

Function

This API is used to query the apps that have been bound to a specified API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/app-auths/binded-apps

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

api_id

+

No

+

String

+

API ID.

+

app_name

+

No

+

String

+

App name.

+

app_id

+

No

+

String

+

App ID.

+

env_id

+

No

+

String

+

Environment ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

auths

+

Array of ApiAuthInfo objects

+

API list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiAuthInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Authorization record ID.

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

api_type

+

Integer

+

API type.

+

api_remark

+

String

+

API description.

+

env_id

+

String

+

ID of the environment in which an app has been authorized to call the API.

+

auth_role

+

String

+

Authorizer.

+

auth_time

+

String

+

Authorization time.

+

app_name

+

String

+

App name.

+

app_remark

+

String

+

App description.

+

app_type

+

String

+

App type.

+

The default value is apig. Other types are not supported currently.

+

Enumeration values:

+
  • apig

    +
  • roma

    +
+

app_creator

+

String

+

Creator of the app.

+
  • USER: The app is created by a tenant.

    +
  • MARKET: The app is allocated by KooGallery. This value is not supported currently.

    +
+

publish_id

+

String

+

API publication record ID.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

auth_tunnel

+

String

+

Authorization channel type.

+
  • NORMAL: normal channel

    +
  • GREEN: green channel

    +
+

The default value is NORMAL. This parameter is not supported currently.

+

Enumeration values:

+
  • NORMAL

    +
  • GREEN

    +
+

auth_whitelist

+

Array of strings

+

Whitelist for the green channel.

+

auth_blacklist

+

Array of strings

+

Blacklist for the green channel.

+

visit_param

+

String

+

Access parameters.

+

roma_app_type

+

String

+

ROMA application type.

+
  • subscription: subscription application

    +
  • integration: integration application

    +
+

Currently, this parameter is not supported.

+

env_name

+

String

+

Name of the environment in which the app has been authorized to call the API.

+

app_id

+

String

+

App ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "auths" : [ {
+    "api_id" : "5f918d104dc84480a75166ba99efff21",
+    "app_name" : "app_demo",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "group_name" : "api_group_001",
+    "api_type" : 1,
+    "api_name" : "Api_http",
+    "app_id" : "356de8eb7a8742168586e5daf5339965",
+    "auth_time" : "2020-08-04T04:02:22Z",
+    "app_creator" : "USER",
+    "id" : "dd29b33ae4394e3b924b582c6b40880b",
+    "api_remark" : "Web backend API",
+    "auth_role" : "PROVIDER",
+    "app_type" : "apig",
+    "auth_tunnel" : "NORMAL"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAppsV2.html b/docs/apig/api-ref/ListAppsV2.html new file mode 100644 index 00000000..3f26e9c7 --- /dev/null +++ b/docs/apig/api-ref/ListAppsV2.html @@ -0,0 +1,523 @@ + + +

Querying Apps

+

Function

This API is used to query apps.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apps

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

id

+

No

+

String

+

App ID.

+

name

+

No

+

String

+

App name.

+

status

+

No

+

Integer

+

App status.

+

app_key

+

No

+

String

+

AppKey.

+

creator

+

No

+

String

+

Creator of the app.

+
  • USER: The app is created by an API user.

    +
  • MARKET: This parameter is not used currently.

    +
+

precise_search

+

No

+

String

+

Parameter name (name) for exact matching.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apps

+

Array of AppInfoWithBindNum objects

+

App list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 AppInfoWithBindNum

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

Name.

+

remark

+

String

+

Description.

+

creator

+

String

+

Creator of the app.

+
  • USER: The app is created by an API user.

    +
  • MARKET: The app is allocated by KooGallery.

    +
+

The value MARKET is currently not supported.

+

Enumeration values:

+
  • USER

    +
  • MARKET

    +
+

update_time

+

String

+

Update time.

+

app_key

+

String

+

AppKey.

+

app_secret

+

String

+

AppSecret.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

app_type

+

String

+

App type.

+
  • apig: APIG app, which is not recommended.

    +
  • roma: ROMA integration application.

    +
+

The default value is apig. Other types are not supported currently.

+

Enumeration values:

+
  • apig

    +
  • roma

    +
+

roma_app_type

+

String

+

ROMA application type.

+
  • subscription: subscription application

    +
  • integration: integration application

    +
+

Currently, this parameter is not supported.

+

bind_num

+

Integer

+

Number of bound APIs.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "apps" : [ {
+    "bind_num" : 0,
+    "creator" : "USER",
+    "update_time" : "2020-08-03T13:09:13Z",
+    "app_key" : "ee8f878c252747028f07eb116c2cd91b",
+    "name" : "app_demo",
+    "remark" : "Demo app",
+    "id" : "356de8eb7a8742168586e5daf5339965",
+    "app_secret" : "416************ab8",
+    "register_time" : "2020-08-03T13:09:13Z",
+    "status" : 1,
+    "app_type" : "apig"
+  }, {
+    "bind_num" : 3,
+    "creator" : "USER",
+    "update_time" : "2020-05-27T10:38:03.133586Z",
+    "app_key" : "840b8b5b1efc4ec686639759c2c584da",
+    "name" : "app_001",
+    "id" : "9ed8b7fe84224de681e7d7a5587e76dc",
+    "app_secret" : "0a4************c6e",
+    "register_time" : "2020-03-28T11:09:06Z",
+    "status" : 1
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAttachedDomainsV2.html b/docs/apig/api-ref/ListAttachedDomainsV2.html new file mode 100644 index 00000000..cf6b310b --- /dev/null +++ b/docs/apig/api-ref/ListAttachedDomainsV2.html @@ -0,0 +1,444 @@ + + +

Querying Domain Names of an SSL Certificate

+

Function

This API is used to query the domain names to which an SSL certificate has been bound.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/certificates/{certificate_id}/attached-domains

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

certificate_id

+

Yes

+

String

+

Certificate ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

url_domain

+

No

+

String

+

Independent domain name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

bound_domains

+

Array of UrlDomainRefInfo objects

+

Bound domain names.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 UrlDomainRefInfo

Parameter

+

Type

+

Description

+

url_domain

+

String

+

Custom domain name.

+

id

+

String

+

Domain ID.

+

status

+

Integer

+

CNAME resolution status.

+
  • 1: not resolved

    +
  • 2: resolving

    +
  • 3: resolved

    +
  • 4: resolution failed

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
  • 3

    +
  • 4

    +
+

min_ssl_version

+

String

+

Minimum SSL version supported.

+

is_http_redirect_to_https

+

Boolean

+

Whether to enable HTTP redirection to HTTPS. The value false means disable and true means enable. The default value is false.

+

Default: false

+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

ssl_id

+

String

+

Certificate ID.

+

ssl_name

+

String

+

Certificate name.

+

api_group_id

+

String

+

API group ID.

+

api_group_name

+

String

+

API group name.

+

instance_id

+

String

+

Gateway ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "bound_domains" : [ {
+    "id" : "b9be707660c5406394f8973e087bae20",
+    "url_domain" : "apigtest.example.com",
+    "status" : 3,
+    "min_ssl_version" : "TLSv1.1",
+    "ssl_id" : "a27be832f2e9441c8127fe48e3b5ac67",
+    "ssl_name" : "cert_demo",
+    "instance_id" : "f0fa1789-3b76-433b-a787-9892951c620e",
+    "api_group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "api_group_name" : "default"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:dict_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListAvailableZonesV2.html b/docs/apig/api-ref/ListAvailableZonesV2.html new file mode 100644 index 00000000..5670424d --- /dev/null +++ b/docs/apig/api-ref/ListAvailableZonesV2.html @@ -0,0 +1,334 @@ + + +

Querying AZs

+

Function

This API is used to query AZs where you can buy gateways.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/available-zones

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

available_zones

+

Array of AvailableZone objects

+

AZ list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 AvailableZone

Parameter

+

Type

+

Description

+

name

+

String

+

AZ name.

+

id

+

String

+

Error message.

+

code

+

String

+

AZ code.

+

port

+

String

+

AZ port.

+

local_name

+

LocalName object

+

AZ names.

+

specs

+

Map<String,Boolean>

+

Gateway editions available in the AZ.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 LocalName

Parameter

+

Type

+

Description

+

en_us

+

String

+

AZ name.

+

zh_cn

+

String

+

AZ name.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "available_zones" : [ {
+    "code" : "xx-xxx-4a",
+    "id" : "effdcbc7d4d64a02aa1fa26b42f56533",
+    "local_name" : {
+      "en_us" : "AZ1",
+      "zh_cn" : "<Name_of_AZ1>"
+    },
+    "name" : "<Name_of_AZ1>",
+    "port" : "8403",
+    "specs" : {
+      "BASIC" : true,
+      "ENTERPRISE" : true,
+      "PLATINUM" : true,
+      "PROFESSIONAL" : true,
+    }
+  }, {
+    "code" : "xx-xxx-4b",
+    "id" : "a0865121f83b41cbafce65930a22a6e8",
+    "local_name" : {
+      "en_us" : "AZ2",
+      "zh_cn" : "<Name_of_AZ2>"
+    },
+    "name" : "<Name_of_AZ2>",
+    "port" : "8404",
+    "specs" : {
+      "BASIC" : true,
+      "ENTERPRISE" : true,
+      "PLATINUM" : true,
+      "PROFESSIONAL" : true,
+    }
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListBackendInstancesV2.html b/docs/apig/api-ref/ListBackendInstancesV2.html new file mode 100644 index 00000000..40434fb8 --- /dev/null +++ b/docs/apig/api-ref/ListBackendInstancesV2.html @@ -0,0 +1,550 @@ + + +

Querying Backend Servers of a VPC Channel

+

Function

This API is used to query the backend instances of a specified VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

name

+

No

+

String

+

Cloud server name.

+

member_group_name

+

No

+

String

+

Backend server group name.

+

member_group_id

+

No

+

String

+

Backend server group ID.

+

precise_search

+

No

+

String

+

Parameter name for exact matching. Separate multiple parameter names with commas (,).

+

Currently, name and member_group_name are supported.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

members

+

Array of VpcMemberInfo objects

+

Cloud server list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 VpcMemberInfo

Parameter

+

Type

+

Description

+

host

+

String

+

Backend server address.

+

This parameter is required when the member type is IP address.

+

Maximum: 64

+

weight

+

Integer

+

Weight.

+

The higher the weight is, the more requests a backend service will receive.

+

Minimum: 0

+

Maximum: 10000

+

is_backup

+

Boolean

+

Indicates whether the backend service is a standby node.

+

After you enable this function, the backend service serves as a standby node. It works only when all non-standby nodes are faulty.

+

This function is supported only when your gateway has been upgraded to the corresponding version. If your gateway does not support this function, contact technical support.

+

Default: false

+

member_group_name

+

String

+

Backend server group name. The server group facilitates backend service address modification.

+

status

+

Integer

+

Backend server status.

+
  • 1: available

    +
  • 2: unavailable

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

port

+

Integer

+

Backend server port.

+

Minimum: 0

+

Maximum: 65535

+

ecs_id

+

String

+

Backend server ID.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

+

Maximum: 255

+

ecs_name

+

String

+

Backend server name.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

Maximum: 64

+

id

+

String

+

Backend instance ID.

+

vpc_channel_id

+

String

+

VPC channel ID.

+

create_time

+

String

+

Time when the backend server is added to the VPC channel.

+

member_group_id

+

String

+

Backend server group ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "members" : [ {
+    "host" : "192.168.0.5",
+    "weight" : 1,
+    "is_backup" : false,
+    "member_group_name" : "",
+    "status" : 1,
+    "port" : 22,
+    "ecs_id" : "192.168.0.5",
+    "ecs_name" : "192.168.0.5",
+    "id" : "be63c6260a1043888187f84af39c9f0e",
+    "vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59",
+    "create_time" : "2020-07-23T07:11:57Z",
+    "member_group_id" : ""
+  }, {
+    "host" : "192.168.1.124",
+    "weight" : 2,
+    "is_backup" : false,
+    "member_group_name" : "",
+    "status" : 1,
+    "port" : 22,
+    "ecs_id" : "192.168.1.124",
+    "ecs_name" : "192.168.1.124",
+    "id" : "a57b13f1b89b417ca8acd76909e6df67",
+    "vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59",
+    "create_time" : "2020-07-23T07:11:57Z",
+    "member_group_id" : ""
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListCertificatesV2.html b/docs/apig/api-ref/ListCertificatesV2.html new file mode 100644 index 00000000..bb8dda0f --- /dev/null +++ b/docs/apig/api-ref/ListCertificatesV2.html @@ -0,0 +1,482 @@ + + +

Querying SSL Certificates

+

Function

This API is used to query the SSL certificates.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/certificates

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

name

+

No

+

String

+

Certificate name.

+

common_name

+

No

+

String

+

Certificate domain name.

+

signature_algorithm

+

No

+

String

+

Certificate signature algorithm.

+

type

+

No

+

String

+

Certificate scope.

+

Enumeration values:

+
  • instance

    +
  • global

    +
+

instance_id

+

Yes

+

String

+

ID of the gateway to which the certificate belongs.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

certs

+

Array of CertBase objects

+

Certificate basic content.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 CertBase

Parameter

+

Type

+

Description

+

id

+

String

+

Certificate ID.

+

name

+

String

+

Certificate name.

+

type

+

String

+

Certificate type.

+
  • global: Global certificate.

    +
  • instance: Gateway certificate.

    +
+

Enumeration values:

+
  • global

    +
  • instance

    +
+

instance_id

+

String

+

Gateway ID.

+
  • If type is set to global, the default value is common.

    +
  • If type is set to instance, a gateway ID is displayed.

    +
+

project_id

+

String

+

Project ID.

+

common_name

+

String

+

Domain name.

+

san

+

Array of strings

+

SAN domain name.

+

not_after

+

String

+

Expiration time.

+

signature_algorithm

+

String

+

Signature algorithm.

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "certs" : [ {
+    "id" : "a27be832f2e9441c8127fe48e3b5ac67",
+    "name" : "cert_demo",
+    "type" : "instance",
+    "project_id" : "73d69ae0cfcf460190522d06b60f05ad",
+    "instance_id" : "f0fa1789-3b76-433b-a787-9892951c620e",
+    "common_name" : "apigtest.example.com",
+    "san" : [ "apigtest.example.com", "*.san.com" ],
+    "not_after" : "2021-04-26T09:03:30Z",
+    "signature_algorithm" : "SHA256-RSA",
+    "create_time" : "2021-08-26T07:27:06.304004Z",
+    "update_time" : "2021-08-26T07:27:06.304004Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:dict_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListCustomAuthorizersV2.html b/docs/apig/api-ref/ListCustomAuthorizersV2.html new file mode 100644 index 00000000..8e51e614 --- /dev/null +++ b/docs/apig/api-ref/ListCustomAuthorizersV2.html @@ -0,0 +1,591 @@ + + +

Querying Custom Authorizers

+

Function

This API is used to query all the custom authorizers under a gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/authorizers

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

id

+

No

+

String

+

ID.

+

name

+

No

+

String

+

Name.

+

type

+

No

+

String

+

Type.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

authorizer_list

+

Array of AuthorizerResp objects

+

Custom authorizers.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 AuthorizerResp

Parameter

+

Type

+

Description

+

name

+

String

+

Custom authorizer name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

type

+

String

+

Custom authorizer type.

+
  • FRONTEND

    +
  • BACKEND

    +
+

Modification is not allowed.

+

Enumeration values:

+
  • FRONTEND

    +
  • BACKEND

    +
+

authorizer_type

+

String

+

Value: FUNC.

+

Enumeration values:

+
  • FUNC

    +
+

authorizer_uri

+

String

+

Function URN.

+

network_type

+

String

+

Function network architecture:

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Default: V1

+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

authorizer_version

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

authorizer_alias_uri

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

identities

+

Array of Identity objects

+

Identity source.

+

ttl

+

Integer

+

Maximum cache age.

+

user_data

+

String

+

User data.

+

ld_api_id

+

String

+

Custom backend ID.

+

Currently, this parameter is not supported.

+

need_body

+

Boolean

+

Indicates whether to send the body.

+

id

+

String

+

Custom authorizer ID.

+

create_time

+

String

+

Creation time.

+

roma_app_id

+

String

+

ID of the application to which the custom authorizer belongs.

+

Currently, this parameter is not supported.

+

roma_app_name

+

String

+

Name of the application to which the custom authorizer belongs.

+

Currently, this parameter is not supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 Identity

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • HEADER

    +
  • QUERY

    +
+

validation

+

String

+

Parameter verification expression. The default value is null, indicating that no verification is performed.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "authorizer_list" : [ {
+    "name" : "Authorizer_demo",
+    "type" : "FRONTEND",
+    "authorizer_type" : "FUNC",
+    "authorizer_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814",
+    "network_type" : "V1",
+    "authorizer_version" : "v1",
+    "authorizer_alias_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814:!v1",
+    "identities" : [ {
+      "name" : "header",
+      "location" : "HEADER"
+    } ],
+    "ttl" : 0,
+    "user_data" : "authorizer_test",
+    "id" : "0d982c1ac3da493dae47627b6439fc5c",
+    "create_time" : "2020-07-31T11:55:43Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListEndpointConnections.html b/docs/apig/api-ref/ListEndpointConnections.html new file mode 100644 index 00000000..3fae3783 --- /dev/null +++ b/docs/apig/api-ref/ListEndpointConnections.html @@ -0,0 +1,532 @@ + + +

Querying VPC Endpoint Connections

+

Function

This API is used to query the VPC endpoint connections of a gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/connections

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

id

+

No

+

String

+

Unique VPC endpoint ID.

+

marker_id

+

No

+

Integer

+

Packet ID of a VPC endpoint.

+

status

+

No

+

String

+

Connection status of a VPC endpoint. Options:

+
  • pendingAcceptance

    +
  • accepted

    +
  • rejected

    +
  • failed

    +
+

Enumeration values:

+
  • pendingAcceptance

    +
  • accepted

    +
  • rejected

    +
  • failed

    +
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

connections

+

Array of EndpointConnection objects

+

Connections.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 EndpointConnection

Parameter

+

Type

+

Description

+

id

+

String

+

Connection ID.

+

marker_id

+

Integer

+

Connection packet ID.

+

created_at

+

String

+

Connection creation time. UTC time in the format YYYY-MM-DDTHH:MM:SSZ.

+

updated_at

+

String

+

Connection update time. UTC time in the format YYYY-MM-DDTHH:MM:SSZ.

+

domain_id

+

String

+

Domain ID.

+

status

+

String

+

Connection status.

+
  • pendingAcceptance

    +
  • creating

    +
  • accepted

    +
  • rejected

    +
  • failed

    +
  • deleting

    +
+

Enumeration values:

+
  • pendingAcceptance

    +
  • creating

    +
  • accepted

    +
  • rejected

    +
  • failed

    +
  • deleting

    +
+
+
+

Status code: 401

+ +
+ + + + + + + + + +
Table 7 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + +
Table 9 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + +
Table 11 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 13 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 1,
+  "connections" : [ {
+    "id" : "76ad893c-6a1e-4055-8019-fe9c9bd3204d",
+    "marker_id" : 167960098,
+    "created_at" : "2021-04-29T02:12:44Z",
+    "updated_at" : "2021-04-29T02:12:45Z",
+    "domain_id" : "b70fde8e849b4e76a61dd8aa0ec05c81",
+    "status" : "accepted"
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Resource Not Found

+
{
+  "error_code" : "APIC.7314",
+  "error_msg" : "Endpoint service not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9007",
+  "error_msg" : "Failed to execute VCPEP request"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Resource Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListEndpointPermissions.html b/docs/apig/api-ref/ListEndpointPermissions.html new file mode 100644 index 00000000..4d4958cd --- /dev/null +++ b/docs/apig/api-ref/ListEndpointPermissions.html @@ -0,0 +1,464 @@ + + +

Querying Whitelist Records of a VPC Endpoint Service

+

Function

This API is used to query the whitelist records of a gateway's VPC endpoint service.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/permissions

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

permission

+

No

+

String

+

Permission account ID in format "iam:domain::domain_id". Fuzzy search is supported.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

permissions

+

Array of EndpointPermission objects

+

Whitelist records.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 EndpointPermission

Parameter

+

Type

+

Description

+

id

+

String

+

Record ID.

+

permission

+

String

+

Permission rules.

+

created_at

+

String

+

Creation time.

+
+
+

Status code: 401

+ +
+ + + + + + + + + +
Table 7 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + +
Table 9 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + +
Table 11 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + +
Table 13 Response header parameters

Parameter

+

Type

+

Description

+

x-request-id

+

String

+

Request ID.

+
+
+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 1,
+  "permissions" : [ {
+    "id" : "e4a7ba21-1e5c-43cc-977d-4aeeacb937ec",
+    "permission" : "iam:domain::821a2d452de64bcdb52319967f8a06b9",
+    "created_at" : "2021-05-07T14:10:49Z"
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Resource Not Found

+
{
+  "error_code" : "APIC.7314",
+  "error_msg" : "Endpoint service not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9007",
+  "error_msg" : "Failed to execute VCPEP request"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Resource Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListEnvironmentVariablesV2.html b/docs/apig/api-ref/ListEnvironmentVariablesV2.html new file mode 100644 index 00000000..490f7390 --- /dev/null +++ b/docs/apig/api-ref/ListEnvironmentVariablesV2.html @@ -0,0 +1,422 @@ + + +

Querying Environment Variables

+

Function

This API is used to query all environment variables under an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/env-variables

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

group_id

+

Yes

+

String

+

API group ID.

+

env_id

+

No

+

String

+

Environment ID.

+

variable_name

+

No

+

String

+

Variable name.

+

precise_search

+

No

+

String

+

Parameter name (name) for exact matching.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

variables

+

Array of EnvVariableInfo objects

+

Environment variable list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 EnvVariableInfo

Parameter

+

Type

+

Description

+

variable_value

+

String

+

The variable value can contain 1 to 255 characters. Only letters, digits, and special characters (_-/.:) are allowed.

+

env_id

+

String

+

Environment ID.

+

Minimum: 1

+

Maximum: 65

+

group_id

+

String

+

API group ID.

+

Minimum: 1

+

Maximum: 65

+

variable_name

+

String

+

Variable name, which can contain 3 to 32 characters, starting with a letter. Only letters, digits, hyphens (-), and underscores (_) are allowed. The variable name is equivalent to "#Name#" in API definitions. Characters between the number signs are case-sensitive. The variable name will be replaced with the variable value after API publication.

+

id

+

String

+

Environment variable ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "variables" : [ {
+    "variable_value" : "8080",
+    "env_id" : "cca3616af3684b329064b2a631cb3eeb",
+    "group_id" : "73c58022f20d495aa18885d718647f09",
+    "id" : "09ab8135722440b9bf5d107f2a09d409",
+    "variable_name" : "port"
+  }, {
+    "variable_value" : "192.168.1.5",
+    "env_id" : "7a1ad0c350844ee69479b47df9a881cb",
+    "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+    "id" : "25054838a624400bbf2267cf5b3a3f70",
+    "variable_name" : "address"
+  } ],
+  "total" : 2,
+  "size" : 2
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListEnvironmentsV2.html b/docs/apig/api-ref/ListEnvironmentsV2.html new file mode 100644 index 00000000..74854bb9 --- /dev/null +++ b/docs/apig/api-ref/ListEnvironmentsV2.html @@ -0,0 +1,382 @@ + + +

Querying Environments

+

Function

This API is used to query environments.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/envs

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

name

+

No

+

String

+

Environment name.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

envs

+

Array of EnvInfo objects

+

Environment list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 5 EnvInfo

Parameter

+

Type

+

Description

+

create_time

+

String

+

Creation time.

+

name

+

String

+

Environment name.

+

remark

+

String

+

Description.

+

id

+

String

+

Environment ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "envs" : [ {
+    "create_time" : "2019-02-12T19:42:19.914989Z",
+    "name" : "RELEASE",
+    "remark" : "xxx",
+    "id" : "DEFAULT_ENVIRONMENT_RELEASE_ID"
+  }, {
+    "create_time" : "2020-07-31T06:41:43Z",
+    "name" : "DEV",
+    "remark" : "Development environment",
+    "id" : "7a1ad0c350844ee69479b47df9a881cb"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListFeaturesV2.html b/docs/apig/api-ref/ListFeaturesV2.html new file mode 100644 index 00000000..bbceb35c --- /dev/null +++ b/docs/apig/api-ref/ListFeaturesV2.html @@ -0,0 +1,425 @@ + + +

Querying Gateway Features

+

Function

This API is used to query the features of a gateway. If a gateway does not support the features listed in the following table, contact technical support to upgrade the gateway.

+

For details about the supported features and configuration examples, see "Appendix" > "Supported Features" in this document.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/features

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

features

+

Array of FeatureInfo objects

+

Feature list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 FeatureInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Feature ID.

+

name

+

String

+

Feature name.

+

Minimum: 1

+

Maximum: 64

+

enable

+

Boolean

+

Indicates whether to enable the feature.

+

config

+

String

+

Parameter configuration.

+

instance_id

+

String

+

Gateway ID.

+

update_time

+

String

+

Feature update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "features" : [ {
+    "config" : "on",
+    "enable" : true,
+    "id" : "db9a9260cd3e4a16a9b5747a65d3ffaa",
+    "instance_id" : "eddc4d25480b4cd6b512f270a1b8b341",
+    "name" : "app_api_key",
+    "update_time" : "2020-08-24T01:17:31.041984Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListGatewayResponsesV2.html b/docs/apig/api-ref/ListGatewayResponsesV2.html new file mode 100644 index 00000000..3c31b423 --- /dev/null +++ b/docs/apig/api-ref/ListGatewayResponsesV2.html @@ -0,0 +1,507 @@ + + +

Querying Group Responses

+

Function

This API is used to query the responses of an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

responses

+

Array of ResponsesInfo objects

+

Response list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ResponsesInfo

Parameter

+

Type

+

Description

+

name

+

String

+

Response name.

+

responses

+

Map<String,ResponseInfoResp>

+

Response type definition. key indicates the error type. Options of key:

+
  • AUTH_FAILURE: Authentication failed.
  • AUTH_HEADER_MISSING: The identity source is missing.
  • AUTHORIZER_FAILURE: Custom authentication failed.
  • AUTHORIZER_CONF_FAILURE: Custom authorizer error.
  • AUTHORIZER_IDENTITIES_FAILURE: The identity source of the custom authorizer is invalid.
  • BACKEND_UNAVAILABLE: The backend is unavailable.
  • BACKEND_TIMEOUT: Backend timed out.
  • THROTTLED: The request was rejected due to request throttling.
  • UNAUTHORIZED: The app you are using has not been authorized to call the API.
  • ACCESS_DENIED: Access denied.
  • NOT_FOUND: No API is found.
  • REQUEST_PARAMETERS_FAILURE: Invalid request parameter.
  • DEFAULT_4XX: Default 4XX error occurred.
  • DEFAULT_5XX: Default 5XX error occurred.
  • THIRD_AUTH_FAILURE: Third-party authentication failed.
  • THIRD_AUTH_IDENTITIES_FAILURE: Identity source of the third-party authorizer is invalid.
  • THIRD_AUTH_CONF_FAILURE: Third-party authorizer configuration error.
  • ORCHESTRATION_PARAMETER_NOT_FOUND: No parameters are input to match the parameter orchestration rule, causing orchestration failure.
  • ORCHESTRATION_FAILURE: Input parameters cannot match orchestration rules, causing orchestration failure.
+

Each error type is in JSON format.

+

id

+

String

+

Response ID.

+

default

+

Boolean

+

Indicates whether the group response is the default response.

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 ResponseInfoResp

Parameter

+

Type

+

Description

+

status

+

Integer

+

HTTP status code of the response. The value ranges from 200 to 599, but cannot be 444.

+

body

+

String

+

Response body template.

+

headers

+

Array of ResponseInfoHeader objects

+

Custom response header.

+

Array Length: 0 - 10

+

default

+

Boolean

+

Indicates whether the response is the default response.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 ResponseInfoHeader

Parameter

+

Type

+

Description

+

key

+

String

+

Key of the custom group response header, which can contain 1 to 128 characters of letters, digits, and hyphens (-).

+

value

+

String

+

Value of the custom group response header, which is a string of 1 to 1,024 characters.

+

Minimum: 1

+

Maximum: 1024

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "responses" : [ {
+    "create_time" : "2020-08-12T06:52:02Z",
+    "default" : false,
+    "id" : "e839b367e10f4ab19d1c5008e476b83a",
+    "name" : "response_demo",
+    "update_time" : "2020-08-12T06:52:02Z"
+  }, {
+    "create_time" : "2020-07-31T11:39:23Z",
+    "default" : true,
+    "id" : "ed8e8c52ab0e4a1c9c809268e5002e64",
+    "name" : "default",
+    "update_time" : "2020-07-31T11:39:23Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:group_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListInstanceConfigsV2.html b/docs/apig/api-ref/ListInstanceConfigsV2.html new file mode 100644 index 00000000..cd42d89c --- /dev/null +++ b/docs/apig/api-ref/ListInstanceConfigsV2.html @@ -0,0 +1,373 @@ + + +

Querying Gateway Configurations

+

Function

This API is used to query the gateway configurations.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instance/configs

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

configs

+

Array of InstanceConfig objects

+

Quota list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 InstanceConfig

Parameter

+

Type

+

Description

+

config_id

+

String

+

Quota ID.

+

config_name

+

String

+

Quota name.

+

Enumeration values:

+
  • INSTANCE_NUM_LIMIT

    +
+

config_value

+

String

+

Quota value.

+

It indicates the value of the quota for the current gateway.

+

config_time

+

String

+

Time when the quota is created.

+

remark

+

String

+

Quota description.

+
  • INSTANCE_NUM_LIMIT: Maximum number of gateways that you can create.

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "configs" : [ {
+    "config_id" : "1",
+    "config_name" : "INSTANCE_NUM_LIMIT",
+    "config_value" : "5",
+    "config_time" : 1597981093255,
+    "remark" : "xxx"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListInstanceFeatures.html b/docs/apig/api-ref/ListInstanceFeatures.html new file mode 100644 index 00000000..86361734 --- /dev/null +++ b/docs/apig/api-ref/ListInstanceFeatures.html @@ -0,0 +1,287 @@ + + +

Querying the Supported Features of a Gateway

+

Function

This API is used to query the supported features of a gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/instance-features

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

features

+

Array of strings

+

Supported features:

+
  • "resize_huge_flavor"
  • "health_check_in_instance_etcd"
  • "shubao_support_add_node"
  • "upgrade_uninterrupted"
  • "shubao_support_pp2"
  • "shubao_support_full_pp2"
  • "etcd_cert_update"
  • "scc_material_update"
+

Features not displayed in the list are not supported by the gateway.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 3,
+  "size" : 3,
+  "features" : [ "health_check_in_instance_etcd", "shubao_support_add_node", "resize_huge_flavor" ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListInstanceTags.html b/docs/apig/api-ref/ListInstanceTags.html new file mode 100644 index 00000000..69d144d2 --- /dev/null +++ b/docs/apig/api-ref/ListInstanceTags.html @@ -0,0 +1,295 @@ + + +

Querying Tags of a Gateway

+

Function

This API is used to query all tags of a gateway.

+
+

Constraints

Only users who have been authorized with a policy containing actions apig:instanceTags:list and apig:instances:get can call this API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/instance-tags

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

resource_id

+

String

+

Gateway ID.

+

resouce_detail

+

String

+

Detailed description of the gateway. Not supported.

+

resource_name

+

String

+

Gateway name.

+

tags

+

Array of TmsKeyValue objects

+

Tags bound to the gateway.

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 TmsKeyValue

Parameter

+

Type

+

Description

+

key

+

String

+

Key.

+

Include UTF-8 letters, digits, spaces, or special characters (_.:=+-@).

+

Do not start with _sys_ because it is a system label.

+

Minimum: 1

+

Maximum: 128

+

value

+

String

+

Value.

+

You can enter letters, digits, and spaces or other special characters (_.:/=+-@) in UTF-8 format.

+

Minimum: 0

+

Maximum: 255

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "resource_id" : "e120108ac331422cb539d8609e9a7bb2",     
+  "resouce_detail" : null,     
+  "resource_name" : "apig_instance",
+  "tags" : [ {
+    "key" : "test-key",
+    "value" : "test-vaue"
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListInstancesV2.html b/docs/apig/api-ref/ListInstancesV2.html new file mode 100644 index 00000000..28b6ac31 --- /dev/null +++ b/docs/apig/api-ref/ListInstancesV2.html @@ -0,0 +1,491 @@ + + +

Querying Dedicated Gateways

+

Function

This API is used to query dedicated gateways.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

instance_id

+

No

+

String

+

Gateway ID.

+

instance_name

+

No

+

String

+

Gateway name.

+

status

+

No

+

String

+

Gateway status.

+
  • Creating
  • CreateSuccess
  • CreateFail
  • Initing
  • Registering
  • Running
  • InitingFailed
  • RegisterFailed
  • Installing
  • InstallFailed
  • Updating
  • UpdateFailed
  • Rollbacking
  • RollbackSuccess
  • RollbackFailed
  • Deleting
  • DeleteFailed
  • Unregistering
  • UnRegisterFailed
  • CreateTimeout
  • InitTimeout
  • RegisterTimeout
  • InstallTimeout
  • UpdateTimeout
  • RollbackTimeout
  • DeleteTimeout
  • UnregisterTimeout
  • Starting
  • Freezing
  • Frozen
  • Restarting
  • RestartFail
  • Unhealthy
  • RestartTimeout
+

Enumeration values:

+
  • Creating
  • CreateSuccess
  • CreateFail
  • Initing
  • Registering
  • Running
  • InitingFailed
  • RegisterFailed
  • Installing
  • InstallFailed
  • Updating
  • UpdateFailed
  • Rollbacking
  • RollbackSuccess
  • RollbackFailed
  • Deleting
  • DeleteFailed
  • Unregistering
  • UnRegisterFailed
  • CreateTimeout
  • InitTimeout
  • RegisterTimeout
  • InstallTimeout
  • UpdateTimeout
  • RollbackTimeout
  • DeleteTimeout
  • UnregisterTimeout
  • Starting
  • Freezing
  • Frozen
  • Restarting
  • RestartFail
  • Unhealthy
  • RestartTimeout
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

instances

+

Array of RespInstanceBase objects

+

Gateway list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 RespInstanceBase

Parameter

+

Type

+

Description

+

id

+

String

+

Gateway ID.

+

project_id

+

String

+

ID of the tenant to which the gateway belongs.

+

instance_name

+

String

+

Gateway name.

+

status

+

String

+

Instance status:

+
  • Creating: The instance is being created.
  • CreateSuccess: The instance is created successfully.
  • CreateFail: The instance fails to be created.
  • Initing: The instance is being initialized.
  • Registering: The instance is being registered.
  • Running: The instance is running.
  • InitingFailed: The instance fails to be initialized.
  • RegisterFailed: The instance fails to be registered.
  • Installing: The instance is being installed.
  • InstallFailed: The instance fails to be installed.
  • Updating: The instance is being upgraded.
  • UpdateFailed: The instance fails to be upgraded.
  • Rollbacking: The instance is being rolled back.
  • RollbackSuccess: The instance is rolled back successfully.
  • RollbackFailed: The instance fails to be rolled back.
  • Deleting: The instance is being deleted.
  • DeleteFailed: The instance fails to be deleted.
  • Unregistering: The instance is being deregistered.
  • UnRegisterFailed: The instance fails to be deregistered.
  • CreateTimeout: Creation of the instance times out.
  • InitTimeout: Initialization of the instance times out.
  • RegisterTimeout: Registration of the instance times out.
  • InstallTimeout: Installation of the instance times out.
  • UpdateTimeout: Upgrading of the instance times out.
  • RollbackTimeout: Rollback of the instance times out.
  • DeleteTimeout: Deletion of the instance times out.
  • UnregisterTimeout: Deregistration of the instance times out.
  • Starting: The instance is being started.
  • Freezing: The instance is being frozen.
  • Frozen: The instance is frozen.
  • Restarting: The instance is being restarted.
  • RestartFail: The instance fails to be restarted.
  • Unhealthy: The instance is abnormal.
  • RestartTimeout: Restart of the instance times out.
  • Resizing: The instance specification is changing.
  • ResizeFailed: The instance specification fails to be changed.
  • ResizeTimeout: The instance specification change times out.
+

Enumeration values:

+
  • Creating
  • CreateSuccess
  • CreateFail
  • Initing
  • Registering
  • Running
  • InitingFailed
  • RegisterFailed
  • Installing
  • InstallFailed
  • Updating
  • UpdateFailed
  • Rollbacking
  • RollbackSuccess
  • RollbackFailed
  • Deleting
  • DeleteFailed
  • Unregistering
  • UnRegisterFailed
  • CreateTimeout
  • InitTimeout
  • RegisterTimeout
  • InstallTimeout
  • UpdateTimeout
  • RollbackTimeout
  • DeleteTimeout
  • UnregisterTimeout
  • Starting
  • Freezing
  • Frozen
  • Restarting
  • RestartFail
  • Unhealthy
  • RestartTimeout
  • Resizing
  • ResizeFailed
  • ResizeTimeout
+

instance_status

+

Integer

+

Instance status ID:

+
  • 1: Creating
  • 2: Created successfully
  • 3: Creation failed
  • 4: Initializing
  • 5: Registering
  • 6: Running
  • 7: Initialization failed
  • 8: Registration failed
  • 10: Installing
  • 11: Installation failed
  • 12: Upgrading
  • 13: Upgrade failed
  • 20: Rolling back
  • 21: Rolled back
  • 22: Rollback failed
  • 23: Deleting
  • 24: Deletion failed
  • 25: Deregistering
  • 26: Deregistration failed
  • 27: Creation timed out
  • 28: Initialization timed out
  • 29: Registration timed out
  • 30: Installation timed out
  • 31: Upgrade timed out
  • 32: Rollback timed out
  • 33: Deletion timed out
  • 34: Deregistration timed out
  • 35: Starting
  • 36: Freezing
  • 37: Frozen
  • 38: Restarting
  • 39: Restart failed
  • 40: Abnormal
  • 41: Restart timed out
  • 42: Changing specification
  • 43: Specification change failed
  • 44: Specification change timed out
+

Enumeration values:

+
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 10
  • 11
  • 12
  • 13
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
+

type

+

String

+

Gateway type.

+

The default value is apig.

+

spec

+

String

+

Gateway edition.

+
  • BASIC
  • PROFESSIONAL
  • ENTERPRISE
  • PLATINUM
+

Enumeration values:

+
  • BASIC
  • PROFESSIONAL
  • ENTERPRISE
  • PLATINUM
+

create_time

+

Long

+

Time when the gateway is created. The time is in the Unix timestamp format.

+

enterprise_project_id

+

String

+

Enterprise project ID. This parameter is required for an enterprise account.

+

eip_address

+

String

+

EIP bound to the gateway.

+

charging_mode

+

Integer

+

Billing mode of the gateway.

+
  • 0: pay-per-use
  • 1: This parameter is not used currently.
+

Enumeration values:

+
  • 0
  • 1
+

cbc_metadata

+

String

+

This parameter is not used currently.

+

loadbalancer_provider

+

String

+

Type of the load balancer used by the gateway.

+
  • ELB
+

Enumeration values:

+
  • elb
+

cbc_operation_locks

+

Array of CbcOperationLock objects

+

Cloud operations restriction lock.

+

This parameter is not used currently.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 CbcOperationLock

Parameter

+

Type

+

Description

+

lock_scene

+

String

+

Restriction scenarios:

+
  • TO_PERIOD_LOCK: Changing the billing mode from pay-per-use to yearly/monthly. In this scenario, deleting resources, changing specifications, and changing from pay-per-use to yearly/monthly are not allowed.
  • SPEC_CHG_LOCK: Changing specifications of the yearly/monthly billing mode. In this scenario, deleting resources and changing specifications are not allowed.
+

Enumeration values:

+
  • TO_PERIOD_LOCK
  • PEC_CHG_LOCK
+

lock_source_id

+

String

+

ID of the object that initiates the restriction

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "instances" : [ {
+    "cbc_metadata" : "CS2006301043A28NF:00301-734023-0--0",
+    "charging_mode" : 1,
+    "create_time" : 1585302825070,
+    "eip_address" : "xxx.xxx.xxx.xxx",
+    "enterprise_project_id" : "0",
+    "id" : "eddc4d25480b4cd6b512f270a1b8b341",
+    "instance_name" : "apig-Enterprise_Project_Pay-per-Use",
+    "instance_status" : 6,
+    "project_id" : "73d69ae0cfcf460190522d06b60f05ad",
+    "spec" : "PROFESSIONAL",
+    "status" : "Running",
+    "type" : "apig"
+  }, {
+    "charging_mode" : 0,
+    "create_time" : 1594370987422,
+    "eip_address" : "xxx.xxx.xxx.xxx",
+    "enterprise_project_id" : "0",
+    "id" : "2e2d613c64094a4a94ad38e7ca30adee",
+    "instance_name" : "apig-autotest-apitest-nodelete",
+    "instance_status" : 6,
+    "project_id" : "73d69ae0cfcf460190522d06b60f05ad",
+    "spec" : "PROFESSIONAL",
+    "status" : "Running",
+    "type" : "apig",
+    "cbc_operation_locks" : [ {
+      "lock_scene" : "TO_PERIOD_LOCK",
+      "lock_source_id" : "CxxxxxxxxxxxM"
+    } ]
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListLatelyApiStatisticsV2.html b/docs/apig/api-ref/ListLatelyApiStatisticsV2.html new file mode 100644 index 00000000..0180897f --- /dev/null +++ b/docs/apig/api-ref/ListLatelyApiStatisticsV2.html @@ -0,0 +1,564 @@ + + +

Querying API Calls Within a Period

+

Function

This API is used to query the number of times APIs in an API group are called within a period. The query is based on 1 minute. If the time range is within one hour, the server returns the number of API calls made every minute.

+

For security purposes, clear your operation records, including but not limited to records in the ~/.bash_history and /var/log/messages directories (if any), after running the curl command on the server to query information.

+
+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/statistics/api/latest

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

api_id

+

Yes

+

String

+

API ID.

+

duration

+

Yes

+

String

+

Time range (unit: h or m). For example, 1h refers to the latest 1 hour and 1m refers to the latest 1 minute.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

code

+

String

+

Response code.

+

msg

+

String

+

Response message.

+

start_time

+

Long

+

Timestamp (UTC) of the start time.

+

end_time

+

Long

+

Timestamp (UTC) of the end time.

+

list

+

Array of StatisticsAPI objects

+

Statistic data.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 StatisticsAPI

Parameter

+

Type

+

Description

+

max_latency

+

Integer

+

Maximum latency.

+

Unit: ms

+

avg_latency

+

Float

+

Average latency.

+

Unit: ms

+

req_count

+

Integer

+

Total number of requests.

+

req_count2xx

+

Integer

+

Total number of 2xx response codes.

+

req_count4xx

+

Integer

+

Total number of 4xx response codes.

+

req_count5xx

+

Integer

+

Total number of 5xx response codes.

+

req_count_error

+

Integer

+

Errors.

+

max_inner_latency

+

Integer

+

Maximum gateway latency.

+

Unit: ms

+

avg_inner_latency

+

Float

+

Average gateway latency.

+

Unit: ms

+

max_backend_latency

+

Integer

+

Maximum backend latency.

+

avg_backend_latency

+

Float

+

Average backend latency.

+

output_throughput

+

Long

+

Downstream throughput (bytes).

+

input_throughput

+

Long

+

Upstream throughput (bytes).

+

current_minute

+

Long

+

Timestamp (UTC) of API access.

+

cycle

+

String

+

Statistical period.

+

Enumeration values:

+
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

api_id

+

String

+

API ID.

+

group_id

+

String

+

API group ID.

+

provider

+

String

+

API provider.

+

req_time

+

String

+

Request time.

+

register_time

+

String

+

Recording time.

+

status

+

Integer

+

Status.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "code" : "APIG.0000",
+  "start_time" : 1595573280,
+  "end_time" : 1595576820,
+  "list" : [ {
+    "api_id" : "39bce6d25a3f470e8cf7b2c97174f7d9",
+    "avg_backend_latency" : 2.71,
+    "avg_inner_latency" : 1.57,
+    "avg_latency" : 4.14,
+    "current_minute" : 1595576640,
+    "cycle" : "MINUTE",
+    "group_id" : "d0fc4e40b7d1492cba802f667c7c7226",
+    "input_throughput" : 1071,
+    "max_backend_latency" : 6,
+    "max_inner_latency" : 8,
+    "max_latency" : 14,
+    "output_throughput" : 3790,
+    "provider" : "73d69ae0cfcf460190522d06b60f05ad",
+    "register_time" : "2020-07-24 15:44:56",
+    "req_count" : 7,
+    "req_count2xx" : 0,
+    "req_count4xx" : 6,
+    "req_count5xx" : 1,
+    "req_count_error" : 7,
+    "req_time" : "2020-07-24 15:44:00",
+    "status" : 1
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:api_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 39bce6d25a3f470e8cf7b2c97174f7d9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListLatelyGroupStatisticsV2.html b/docs/apig/api-ref/ListLatelyGroupStatisticsV2.html new file mode 100644 index 00000000..0a684b5d --- /dev/null +++ b/docs/apig/api-ref/ListLatelyGroupStatisticsV2.html @@ -0,0 +1,507 @@ + + +

Querying API Calls Under an API Group in the Last One Hour

+

Function

This API is used to query the total number of times all APIs in an API group are called based on the API group ID. The query is based on 1 minute. If the time range is within one hour, the server returns the number of API calls made every minute.

+

For security purposes, clear your operation records, including but not limited to records in the ~/.bash_history and /var/log/messages directories (if any), after running the curl command on the server to query information.

+
+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/statistics/group/latest

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

group_id

+

Yes

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

code

+

String

+

Response code.

+

msg

+

String

+

Response message.

+

start_time

+

Long

+

Timestamp (UTC) of the start time.

+

end_time

+

Long

+

Timestamp (UTC) of the end time.

+

list

+

Array of StatisticsGroup objects

+

Statistic data.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 StatisticsGroup

Parameter

+

Type

+

Description

+

max_latency

+

Integer

+

Maximum latency.

+

Unit: ms

+

avg_latency

+

Float

+

Average latency.

+

Unit: ms

+

req_count

+

Integer

+

Total number of requests.

+

req_count2xx

+

Integer

+

Total number of 2xx response codes.

+

req_count4xx

+

Integer

+

Total number of 4xx response codes.

+

req_count5xx

+

Integer

+

Total number of 5xx response codes.

+

req_count_error

+

Integer

+

Errors.

+

output_throughput

+

Long

+

Downstream throughput (bytes).

+

input_throughput

+

Long

+

Upstream throughput (bytes).

+

current_minute

+

Long

+

Timestamp (UTC) of API access.

+

group_id

+

String

+

API group ID.

+

provider

+

String

+

API provider.

+

req_time

+

String

+

Request time.

+

register_time

+

String

+

Recording time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "code" : "APIG.0000",
+  "start_time" : 1595574540,
+  "end_time" : 1595578080,
+  "list" : [ {
+    "avg_latency" : 4.14,
+    "current_minute" : 1595576640,
+    "group_id" : "d0fc4e40b7d1492cba802f667c7c7226",
+    "input_throughput" : 1071,
+    "max_latency" : 14,
+    "output_throughput" : 3790,
+    "provider" : "73d69ae0cfcf460190522d06b60f05ad",
+    "register_time" : "2020-07-24 15:44:56",
+    "req_count" : 7,
+    "req_count2xx" : 0,
+    "req_count4xx" : 6,
+    "req_count5xx" : 1,
+    "req_count_error" : 7,
+    "req_time" : "2020-07-24 15:44:00"
+  }, {
+    "avg_latency" : 3.67,
+    "current_minute" : 1595577900,
+    "group_id" : "d0fc4e40b7d1492cba802f667c7c7226",
+    "input_throughput" : 915,
+    "max_latency" : 6,
+    "output_throughput" : 2763,
+    "provider" : "73d69ae0cfcf460190522d06b60f05ad",
+    "register_time" : "2020-07-24 16:05:12",
+    "req_count" : 6,
+    "req_count2xx" : 3,
+    "req_count4xx" : 0,
+    "req_count5xx" : 3,
+    "req_count_error" : 3,
+    "req_time" : "2020-07-24 16:05:00"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:group_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group d0fc4e40b7d1492cba802f667c7c7226 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListMemberGroups.html b/docs/apig/api-ref/ListMemberGroups.html new file mode 100644 index 00000000..6487af7a --- /dev/null +++ b/docs/apig/api-ref/ListMemberGroups.html @@ -0,0 +1,538 @@ + + +

Querying Backend Server Groups of a VPC Channel

+

Function

This API is used to query backend server groups of a VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

dict_code

+

No

+

String

+

Dictionary code.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

This parameter is currently not supported.

+

Minimum: 3

+

Maximum: 64

+

member_group_name

+

No

+

String

+

Backend server group name of the VPC channel.

+

precise_search

+

No

+

String

+

Parameter name for exact matching. Separate multiple parameter names with commas (,).

+

Currently, member_group_name is supported.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

member_groups

+

Array of MemberGroupInfo objects

+

Backend server groups of the VPC channel.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 MemberGroupInfo

Parameter

+

Type

+

Description

+

member_group_name

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

member_group_id

+

String

+

ID of the backend server group of the VPC channel.

+

create_time

+

String

+

Time when the backend server group is created.

+

update_time

+

String

+

Time when the backend server group is updated.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 MicroserviceLabel

Parameter

+

Type

+

Description

+

label_name

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "member_groups" : [ {
+    "member_group_name" : "vpc_member_group",
+    "member_group_remark" : "remark",
+    "member_group_weight" : 1,
+    "dict_code" : "",
+    "member_group_id" : "105c6902457144a4820dff8b1ad63331",
+    "create_time" : "2020-07-23T07:24:33Z",
+    "update_time" : "2020-07-23T07:24:33Z",
+    "microservice_version" : "",
+    "microservice_port" : 0,
+    "microservice_labels" : [ ]
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified, parameter name:members"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListMetricData.html b/docs/apig/api-ref/ListMetricData.html new file mode 100644 index 00000000..3a08da33 --- /dev/null +++ b/docs/apig/api-ref/ListMetricData.html @@ -0,0 +1,492 @@ + + +

Querying Monitoring Data

+

Function

This API is used to query the monitoring metric data at a specified granularity in a specified period of time.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/metric-data

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

dim

+

Yes

+

String

+

Metric dimension.

+
  • inbound_eip: Inbound public network bandwidth, which is supported only by gateways that support load balancing.

    +
  • outbound_eip: Outbound public network bandwidth.

    +
+

Enumeration values:

+
  • inbound_eip

    +
  • outbound_eip

    +
+

metric_name

+

Yes

+

String

+

Metric name.

+
  • upstream_bandwidth: Outbound bandwidth.

    +
  • downstream_bandwidth: Inbound bandwidth.

    +
  • upstream_bandwidth_usage: Outbound bandwidth usage.

    +
  • downstream_bandwidth_usage: Inbound bandwidth usage.

    +
  • up_stream: Outbound traffic.

    +
  • down_stream: Inbound traffic.

    +
+

Enumeration values:

+
  • upstream_bandwidth

    +
  • downstream_bandwidth

    +
  • upstream_bandwidth_usage

    +
  • downstream_bandwidth_usage

    +
  • up_stream

    +
  • down_stream

    +
+

from

+

Yes

+

String

+

Start time of the query. The time is a UNIX timestamp and the unit is ms.

+

to

+

Yes

+

String

+

End time of the query. The time is a UNIX timestamp and the unit is ms. The value of parameter from must be earlier than that of parameter to.

+

period

+

Yes

+

Integer

+

Monitoring data granularity.

+
  • 1: Real-time data.

    +
  • 300: 5 minutes.

    +
  • 1200: 20 minutes.

    +
  • 3600: 1 hour.

    +
  • 14400: 4 hours.

    +
  • 86400: 1 day.

    +
+

Enumeration values:

+
  • 1

    +
  • 300

    +
  • 1200

    +
  • 3600

    +
  • 14400

    +
  • 86400

    +
+

filter

+

Yes

+

String

+

Data rollup mode.

+
  • average: Average value of the metric data in the rollup period.

    +
  • max: Maximum value of the metric data in the rollup period.

    +
  • min: Minimum value of the metric data in the rollup period.

    +
  • sum: Sum of the metric data in the rollup period.

    +
  • variance: Variance value of the metric data in the rollup period.

    +
+

Enumeration values:

+
  • average

    +
  • max

    +
  • min

    +
  • sum

    +
  • variance

    +
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

datapoints

+

Array of MetricData objects

+

Metric data.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 MetricData

Parameter

+

Type

+

Description

+

average

+

Integer

+

Average value of metric data within a rollup period. This parameter is supported only when the value of filter in the request is average.

+

max

+

Integer

+

Maximum value of metric data within a rollup period. This parameter is supported only when the value of filter in the request is max.

+

min

+

Integer

+

Minimum value of metric data within a rollup period. This parameter is supported only when the value of filter in the request is min.

+

sum

+

Integer

+

Sum of metric data within a rollup period. This parameter is supported only when the value of filter in the request is sum.

+

variance

+

Integer

+

Variance value of metric data within a rollup period. This parameter is supported only when the value of filter in the request is variance.

+

timestamp

+

Long

+

Time when the metric is collected. It is a UNIX timestamp in milliseconds.

+

unit

+

String

+

Metric unit.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "datapoints" : [ {
+    "average" : 5,
+    "timestamp" : 1665304920000,
+    "unit" : "Byte"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:api_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 39bce6d25a3f470e8cf7b2c97174f7d9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListPluginAttachableApis.html b/docs/apig/api-ref/ListPluginAttachableApis.html new file mode 100644 index 00000000..32caa141 --- /dev/null +++ b/docs/apig/api-ref/ListPluginAttachableApis.html @@ -0,0 +1,627 @@ + + +

Querying APIs to Which a Plug-in Can Be Bound

+

Function

This API is used to query the APIs to which a plug-in can be bound.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/attachable-apis

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

plugin_id

+

Yes

+

String

+

Plug-in ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

env_id

+

Yes

+

String

+

Environment ID.

+

api_name

+

No

+

String

+

API name.

+

api_id

+

No

+

String

+

API ID.

+

group_id

+

No

+

String

+

Group ID.

+

req_method

+

No

+

String

+

Request method.

+

req_uri

+

No

+

String

+

Request path.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apis

+

Array of PluginApiInfo objects

+

APIs bound to the plug-in.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 PluginApiInfo

Parameter

+

Type

+

Description

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

Enter 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Integer

+

API type.

+
  • 1: Public API.

    +
  • 2: Private API.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

req_protocol

+

String

+

API request protocol.

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

String

+

API authentication mode.

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

match_mode

+

String

+

API matching mode.

+
  • SWA: Prefix match.

    +
  • NORMAL: Exact match.

    +
+

Default value: NORMAL

+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

remark

+

String

+

API description.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

roma_app_id

+

String

+

Integration application ID for ROMA instances. This parameter can be left blank.

+

env_id

+

String

+

ID of the environment for binding to the API.

+

env_name

+

String

+

Name of the environment for binding to the API.

+

publish_id

+

String

+

Publishing record ID.

+

plugin_attach_id

+

String

+

Plug-in binding record ID.

+

attached_time

+

String

+

Binding time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "apis" : [ {
+    "api_id" : "8aa097b00e9843efabc9c593d11b769d",
+    "api_name" : "Test_API",
+    "type" : 1,
+    "req_protocol" : "HTTP",
+    "req_method" : "GET",
+    "req_uri" : "/test",
+    "auth_type" : "IAM",
+    "match_mode" : "NORMAL",
+    "remark" : "API description.",
+    "group_id" : "b9be707660c5406394f8973e087bae20",
+    "group_name" : "DEFAULT",
+    "roma_app_id" : "",
+    "plugin_attach_id" : "8aa097b00e9843efacb9c593d11b769e",
+    "publish_id" : "4739b3s5b729aa2237ef0d66dc635276",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "attached_time" : "2020-11-02T12:31:23.353Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3068",
+  "error_msg" : "Plugin b294018ee0554156a875b3513e02e5b9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListPluginAttachedApis.html b/docs/apig/api-ref/ListPluginAttachedApis.html new file mode 100644 index 00000000..76dc2ac9 --- /dev/null +++ b/docs/apig/api-ref/ListPluginAttachedApis.html @@ -0,0 +1,628 @@ + + +

Querying APIs Bound with a Plug-in

+

Function

This API is used to query the APIs to which a plug-in has been bound.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/attached-apis

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

plugin_id

+

Yes

+

String

+

Plug-in ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

env_id

+

No

+

String

+

Environment ID.

+

api_name

+

No

+

String

+

API name.

+

api_id

+

No

+

String

+

API ID.

+

group_id

+

No

+

String

+

Group ID.

+

req_method

+

No

+

String

+

Request method.

+

req_uri

+

No

+

String

+

Request path.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

apis

+

Array of PluginApiInfo objects

+

APIs bound to the plug-in.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 PluginApiInfo

Parameter

+

Type

+

Description

+

api_id

+

String

+

API ID.

+

api_name

+

String

+

API name.

+

Enter 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Integer

+

API type.

+
  • 1: Public API.

    +
  • 2: Private API.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

req_protocol

+

String

+

API request protocol.

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

String

+

API authentication mode.

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

match_mode

+

String

+

API matching mode.

+
  • SWA: Prefix match.

    +
  • NORMAL: Exact match.

    +
+

Default value: NORMAL

+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

remark

+

String

+

API description.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

roma_app_id

+

String

+

Integration application ID for ROMA instances. This parameter can be left blank.

+

env_id

+

String

+

ID of the environment for binding to the API.

+

env_name

+

String

+

Name of the environment for binding to the API.

+

publish_id

+

String

+

Publishing record ID.

+

plugin_attach_id

+

String

+

Plug-in binding record ID.

+

attached_time

+

String

+

Binding time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "apis" : [ {
+    "api_id" : "8aa097b00e9843efabc9c593d11b769d",
+    "api_name" : "Test_API",
+    "type" : 1,
+    "req_protocol" : "HTTP",
+    "req_method" : "GET",
+    "req_uri" : "/test",
+    "auth_type" : "IAM",
+    "match_mode" : "NORMAL",
+    "remark" : "API description.",
+    "group_id" : "b9be707660c5406394f8973e087bae20",
+    "group_name" : "DEFAULT",
+    "roma_app_id" : "",
+    "plugin_attach_id" : "8aa097b00e9843efacb9c593d11b769e",
+    "publish_id" : "4739b3s5b729aa2237ef0d66dc635276",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "attached_time" : "2022-11-02T12:31:23.353Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3068",
+  "error_msg" : "Plugin b294018ee0554156a875b3513e02e5b9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListPlugins.html b/docs/apig/api-ref/ListPlugins.html new file mode 100644 index 00000000..27fd43eb --- /dev/null +++ b/docs/apig/api-ref/ListPlugins.html @@ -0,0 +1,478 @@ + + +

Querying Plug-ins

+

Function

This API is used to query details about a group of plug-ins that meet specified conditions.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/plugins

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

plugin_type

+

No

+

String

+

Plug-in type.

+

plugin_scope

+

No

+

String

+

Plug-in scope.

+

plugin_id

+

No

+

String

+

Plug-in ID.

+

plugin_name

+

No

+

String

+

Plug-in name, which can be used for fuzz query.

+

precise_search

+

No

+

String

+

Parameter name for exact match. Plug-in name is supported.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

plugins

+

Array of PluginInfo objects

+

Plug-ins.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 PluginInfo

Parameter

+

Type

+

Description

+

plugin_id

+

String

+

Plug-in ID.

+

plugin_name

+

String

+

Plug-in name. Start with a letter, and include only letters, digits, hyphens (-), and underscores(_). (3 to 255 characters)

+

plugin_type

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.

    +
  • set_resp_headers: HTTP response header management.

    +
  • kafka_log: Kafka log push.

    +
  • breaker: Circuit breaker.

    +
  • rate_limit: Request throttling.

    +
  • third_auth: Third-party authentication.

    +
+

Enumeration values:

+
  • cors

    +
  • set_resp_headers

    +
  • kafka_log

    +
  • breaker

    +
  • rate_limit

    +
  • third_auth

    +
+

plugin_scope

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global

    +
+

plugin_content

+

String

+

Plug-in content in JSON format. For details, see the model definition.

+
  • CorsPluginContent

    +
  • SetRespHeadersContent

    +
  • KafkaLogContent

    +
  • BreakerContent

    +
  • RateLimitContent

    +
  • ThirdAuthContent

    +
+

Maximum: 65535

+

remark

+

String

+

Plug-in description, with a maximum of 255 characters.

+

Maximum: 255

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "plugins" : [ {
+    "plugin_id" : "5b729aa252764739b3s237ef0d66dc63",
+    "plugin_name" : "CORS",
+    "plugin_type" : "cors",
+    "plugin_scope" : "global",
+    "plugin_content" : "{\"allow_origin\": \"*\",\"allow_methods\": \"GET,POST,PUT\",\"allow_headers\": \"Content-Type,Accept,Accept-Ranges,Cache-Control\",\"expose_headers\": \"X-Request-Id,X-Apig-Latency\",\"max_age\": 172800,\"allow_credentials\": true}",
+    "remark" : "Cross-origin resource sharing",
+    "create_time" : "2022-11-02T12:31:23.353Z",
+    "update_time" : "2022-11-02T12:31:23.353Z"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:plugin_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListProjectCofigsV2.html b/docs/apig/api-ref/ListProjectCofigsV2.html new file mode 100644 index 00000000..9dea1fb0 --- /dev/null +++ b/docs/apig/api-ref/ListProjectCofigsV2.html @@ -0,0 +1,517 @@ + + +

Querying Resource Configurations of a Gateway

+

Function

This API is used to query the resource configurations and usage of a gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/project/configs

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

configs

+

Array of Config objects

+

Quota list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Config

Parameter

+

Type

+

Description

+

config_id

+

String

+

Quota ID.

+

config_name

+

String

+

Quota name.

+

Enumeration values:

+
  • API_NUM_LIMIT

    +
  • APP_NUM_LIMIT

    +
  • APIGROUP_NUM_LIMIT

    +
  • ENVIRONMENT_NUM_LIMIT

    +
  • VARIABLE_NUM_LIMIT

    +
  • SIGN_NUM_LIMIT

    +
  • THROTTLE_NUM_LIMIT

    +
  • APIGROUP_DOMAIN_NUM_LIMIT

    +
  • API_VERSION_NUM_LIMIT

    +
  • VPC_NUM_LIMIT

    +
  • VPC_INSTANCE_NUM_LIMIT

    +
  • API_PARAM_NUM_LIMIT

    +
  • API_USER_CALL_LIMIT

    +
  • ACL_NUM_LIMIT

    +
  • APP_THROTTLE_LIMIT

    +
  • USER_THROTTLE_LIMIT

    +
  • API_NUM_LIMIT_PER_GROUP

    +
  • API_POLICY_NUM_LIMIT

    +
  • API_CONDITION_NUM_LIMIT

    +
  • SL_DOMAIN_CALL_LIMIT

    +
  • ELB_SWITCH

    +
  • AUTHORIZER_NUM_LIMIT

    +
  • AUTHORIZER_IDENTITY_NUM_LIMIT

    +
  • APP_CODE_NUM_LIMIT

    +
  • REGION_MANAGER_WHITELIST_SERVICES

    +
  • API_SWAGGER_NUM_LIMIT

    +
  • API_TAG_NUM_LIMIT

    +
  • LTS_SWITCH

    +
  • APP_KEY_SECRET_SWITCH

    +
  • RESPONSE_NUM_LIMIT

    +
  • CONFIG_NUM_LIMIT_PER_APP

    +
  • BACKEND_TOKEN_ALLOW_SWITCH

    +
  • APP_TOKEN_SWITCH

    +
  • API_DESIGNER_SWITCH

    +
  • APP_API_KEY_SWITCH

    +
  • APP_BASIC_SWITCH

    +
  • APP_JWT_SWITCH

    +
  • APP_ROUTE_SWITCH

    +
  • PUBLIC_KEY_SWITCH

    +
  • APP_SECRET_SWITCH

    +
  • CASCADE_SWITCH

    +
  • IS_INIT_API_PATH_HASH

    +
+

config_value

+

String

+

Quota value.

+

It indicates the value of the quota for the current gateway.

+

config_time

+

String

+

Time when the quota is created.

+

remark

+

String

+

Quota description.

+
  • API_NUM_LIMIT: Maximum number of APIs you can create.

    +
  • APP_NUM_LIMIT: Maximum number of apps you can create.

    +
  • APIGROUP_NUM_LIMIT: Maximum number of API groups you can create.

    +
  • ENVIRONMENT_NUM_LIMIT: Maximum number of environments you can create.

    +
  • VARIABLE_NUM_LIMIT: Maximum number of environment variables you can create for an API group.

    +
  • SIGN_NUM_LIMIT: Maximum number of signature keys you can create.

    +
  • THROTTLE_NUM_LIMIT: Maximum number of request throttling policies you can create.

    +
  • APIGROUP_DOMAIN_NUM_LIMIT: Maximum number of custom domain names you can bind to an API group.

    +
  • API_VERSION_NUM_LIMIT: Maximum number of versions you can retain for an API.

    +
  • VPC_NUM_LIMIT: Maximum number of VPC channels you can create.

    +
  • VPC_INSTANCE_NUM_LIMIT: Maximum number of cloud servers you can associate with a VPC channel.

    +
  • API_PARAM_NUM_LIMIT: Maximum number of parameters you can configure for an API.

    +
  • API_USER_CALL_LIMIT: Maximum number of times an API can be called within a specific period.

    +
  • ACL_NUM_LIMIT: Maximum number of access control policies you can create.

    +
  • APP_THROTTLE_LIMIT: Maximum number of excluded apps allowed for a request throttling policy.

    +
  • USER_THROTTLE_LIMIT: Maximum number of excluded tenants allowed for a request throttling policy.

    +
  • API_NUM_LIMIT_PER_GROUP: Maximum number of APIs you can create for an API group.

    +
  • API_POLICY_NUM_LIMIT: Maximum number of policy backends you can configure for an API.

    +
  • API_CONDITION_NUM_LIMIT: Maximum number of conditions you can configure for a policy backend.

    +
  • SL_DOMAIN_CALL_LIMIT: Maximum number of requests that can be sent to a subdomain name within a specific period.

    +
  • ELB_SWITCH: Whether to enable ELB channels.

    +
  • AUTHORIZER_NUM_LIMIT: Maximum number of custom authorizers you can create.

    +
  • AUTHORIZER_IDENTITY_NUM_LIMIT: Maximum number of identity sources you can configure for a custom authorizer.

    +
  • APP_CODE_NUM_LIMIT: Maximum number of AppCodes you can create for an app.

    +
  • REGION_MANAGER_WHITELIST_SERVICES: Whitelist of services that are not verified by the region manager.

    +
  • API_SWAGGER_NUM_LIMIT: Maximum number of Swagger files you can bind to an API group.

    +
  • API_TAG_NUM_LIMIT: Maximum number of tags you can configure for an API.

    +
  • LTS_SWITCH: Whether to enable LTS log reporting.

    +
  • APP_KEY_SECRET_SWITCH: Whether to enable AppKey and AppSecret customization. 1: enable; 2: disable.

    +
  • RESPONSE_NUM_LIMIT: Maximum number of responses you can create for an API group.

    +
  • CONFIG_NUM_LIMIT_PER_APP: Maximum number of configuration items you can set for an app.

    +
  • BACKEND_TOKEN_ALLOW_SWITCH: Whether to allow tenants to transparently transmit tokens to the backend. 1: allow; 2: disallow.

    +
  • APP_TOKEN_SWITCH: Whether to enable AppTokens.

    +
  • API_DESIGNER_SWITCH: Whether to enable the API designer. 1: enable; 2: disable.

    +
  • APP_API_KEY_SWITCH: Whether to enable APP_API_KEY authentication.

    +
  • APP_BASIC_SWITCH: Whether to enable APP_BASIC authentication.

    +
  • APP_JWT_SWITCH: Whether to enable APP_JWT authentication.

    +
  • APP_ROUTE_SWITCH: Whether to enable app routes.

    +
  • PUBLIC_KEY_SWITCH: Whether to enable PUBLIC_KEY backend authentication.

    +
  • APP_SECRET_SWITCH: Whether to enable APP_SECRET authentication.

    +
  • CASCADE_SWITCH: Whether to enable cascaded gateways.

    +
  • IS_INIT_API_PATH_HASH: Whether API path hashing has been performed.

    +
+

used

+

Long

+

Used quota of the gateway.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 43,
+  "size" : 2,
+  "configs" : [ {
+    "config_id" : "9",
+    "config_name" : "API_VERSION_NUM_LIMIT",
+    "config_value" : "10",
+    "config_time" : "2019-02-12T19:42:19.914989Z",
+    "remark" : "xxx",
+    "used" : 0
+  }, {
+    "config_id" : "8",
+    "config_name" : "APIGROUP_DOMAIN_NUM_LIMIT",
+    "config_value" : "5",
+    "config_time" : "2019-02-12T19:42:19.914989Z",
+    "remark" : "xxx",
+    "used" : 0
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListProjectInstanceTags.html b/docs/apig/api-ref/ListProjectInstanceTags.html new file mode 100644 index 00000000..eb467007 --- /dev/null +++ b/docs/apig/api-ref/ListProjectInstanceTags.html @@ -0,0 +1,260 @@ + + +

Querying All Gateway Tags of a Project

+

Function

This API is used to query all gateway tags of a project.

+
+

Constraints

Only users who have been authorized with a policy containing action apig:instanceTags:list can call this API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instance-tags

+ +
+ + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

tags

+

Array of TmsKeyValues objects

+

Tags bound to all gateways in the project.

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 TmsKeyValues

Parameter

+

Type

+

Description

+

key

+

String

+

Key.

+

Include UTF-8 letters, digits, spaces, or special characters (_.:=+-@).

+

Do not start with _sys_ because it is a system label.

+

Minimum: 1

+

Maximum: 128

+

values

+

Array of strings

+

Value.

+

You can enter letters, digits, and spaces or other special characters (_.:/=+-@) in UTF-8 format.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "tags" : [ {
+    "key" : "test-key",
+    "values" : [ "test-value1", "test-value2" ]
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListRequestThrottlingPoliciesBindedToApiV2.html b/docs/apig/api-ref/ListRequestThrottlingPoliciesBindedToApiV2.html new file mode 100644 index 00000000..914c2621 --- /dev/null +++ b/docs/apig/api-ref/ListRequestThrottlingPoliciesBindedToApiV2.html @@ -0,0 +1,570 @@ + + +

Querying Request Throttling Policies Bound to an API

+

Function

This API is used to query the request throttling policies that have been bound to an API. Only one request throttling policy can be bound to an API in an environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings/binded-throttles

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

api_id

+

Yes

+

String

+

API ID.

+

throttle_id

+

No

+

String

+

Request throttling policy ID.

+

throttle_name

+

No

+

String

+

Request throttling policy name.

+

env_id

+

No

+

String

+

Environment ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

throttles

+

Array of ThrottleForApi objects

+

Request throttling policy list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ThrottleForApi

Parameter

+

Type

+

Description

+

app_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an app within the same period. The value of this parameter cannot exceed the user call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

name

+

String

+

Request throttling policy name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

time_unit

+

String

+

Time unit for limiting the number of API calls.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

remark

+

String

+

Description of the request throttling policy, which can contain a maximum of 255 characters.

+

api_call_limits

+

Integer

+

Maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS. You can change the default limit to meet service requirements. The maximum value is 2,147,483,647. Enter a positive integer.

+

type

+

Integer

+

Type of the request throttling policy.

+
  • 1: API-based, limiting the maximum number of times a single API bound to the policy can be called within the specified period.

    +
  • 2: API-shared, limiting the maximum number of times all APIs bound to the policy can be called within the specified period.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

enable_adaptive_control

+

String

+

Indicates whether to enable dynamic request throttling.

+
  • TRUE

    +
  • FALSE

    +
+

Currently, this parameter is not supported.

+

user_call_limits

+

Integer

+

Maximum number of times the API can be accessed by a user within the same period. The value of this parameter cannot exceed the Max. API Requests. The maximum value is 2,147,483,647. Enter a positive integer.

+

time_interval

+

Integer

+

Period of time for limiting the number of API calls. This parameter applies with each API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

ip_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an IP address within the same period. The value of this parameter cannot exceed the API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

id

+

String

+

Request throttling policy ID.

+

bind_num

+

Integer

+

Number of APIs to which the request throttling policy has been bound.

+

is_inclu_special_throttle

+

Integer

+

Indicates whether an excluded request throttling configuration has been created.

+
  • 1: yes

    +
  • 2: no

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

create_time

+

String

+

Creation time.

+

env_name

+

String

+

Environment in which the request throttling policy takes effect.

+

bind_id

+

String

+

Policy binding record ID.

+

bind_time

+

String

+

Time when the policy is bound to the API.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "throttles" : [ {
+    "id" : "3437448ad06f4e0c91a224183116e965",
+    "name" : "throttle_demo",
+    "api_call_limits" : 800,
+    "user_call_limits" : 500,
+    "app_call_limits" : 300,
+    "ip_call_limits" : 600,
+    "time_interval" : 1,
+    "time_unit" : "SECOND",
+    "create_time" : "2020-07-31T08:44:02Z",
+    "remark" : "Total: 800 calls/second; user: 500 calls/second; app: 300 calls/second; IP address: 600 calls/second",
+    "is_inclu_special_throttle" : 2,
+    "env_name" : "RELEASE",
+    "type" : 1,
+    "bind_id" : "3e06ac135e18477e918060d3c59d6f6a",
+    "bind_time" : "2020-08-03T12:25:52Z",
+    "bind_num" : 0,
+    "enable_adaptive_control" : "FALSE"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:throttle_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListRequestThrottlingPolicyV2.html b/docs/apig/api-ref/ListRequestThrottlingPolicyV2.html new file mode 100644 index 00000000..f04792e5 --- /dev/null +++ b/docs/apig/api-ref/ListRequestThrottlingPolicyV2.html @@ -0,0 +1,499 @@ + + +

Querying Request Throttling Policies

+

Function

This API is used to query all the request throttling policies.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/throttles

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

id

+

No

+

String

+

Request throttling policy ID.

+

name

+

No

+

String

+

Request throttling policy name.

+

precise_search

+

No

+

String

+

Parameter name (name) for exact matching.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

throttles

+

Array of ThrottlesInfo objects

+

Request throttling policy list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ThrottlesInfo

Parameter

+

Type

+

Description

+

app_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an app within the same period. The value of this parameter cannot exceed the user call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

name

+

String

+

Request throttling policy name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

time_unit

+

String

+

Time unit for limiting the number of API calls.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

remark

+

String

+

Description of the request throttling policy, which can contain a maximum of 255 characters.

+

api_call_limits

+

Integer

+

Maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS. You can change the default limit to meet service requirements. The maximum value is 2,147,483,647. Enter a positive integer.

+

type

+

Integer

+

Type of the request throttling policy.

+
  • 1: API-based, limiting the maximum number of times a single API bound to the policy can be called within the specified period.

    +
  • 2: API-shared, limiting the maximum number of times all APIs bound to the policy can be called within the specified period.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

enable_adaptive_control

+

String

+

Indicates whether to enable dynamic request throttling.

+
  • TRUE

    +
  • FALSE

    +
+

Currently, this parameter is not supported.

+

user_call_limits

+

Integer

+

Maximum number of times the API can be accessed by a user within the same period. The value of this parameter cannot exceed the Max. API Requests. The maximum value is 2,147,483,647. Enter a positive integer.

+

time_interval

+

Integer

+

Period of time for limiting the number of API calls. This parameter applies with each API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

ip_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an IP address within the same period. The value of this parameter cannot exceed the API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

id

+

String

+

Request throttling policy ID.

+

bind_num

+

Integer

+

Number of APIs to which the request throttling policy has been bound.

+

is_inclu_special_throttle

+

Integer

+

Indicates whether an excluded request throttling configuration has been created.

+
  • 1: yes

    +
  • 2: no

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

create_time

+

String

+

Creation time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "throttles" : [ {
+    "name" : "throttle_demo",
+    "create_time" : "2020-07-31T08:44:02.205366118Z",
+    "remark" : "Total: 800 calls/second; user: 500 calls/second; app: 300 calls/second; IP address: 600 calls/second",
+    "type" : 1,
+    "time_interval" : 1,
+    "ip_call_limits" : 600,
+    "app_call_limits" : 300,
+    "time_unit" : "SECOND",
+    "api_call_limits" : 800,
+    "id" : "3437448ad06f4e0c91a224183116e965",
+    "user_call_limits" : 500,
+    "enable_adaptive_control" : "FALSE",
+    "bind_num" : 0,
+    "is_inclu_special_throttle" : 2
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListSignatureKeysBindedToApiV2.html b/docs/apig/api-ref/ListSignatureKeysBindedToApiV2.html new file mode 100644 index 00000000..8b8d9493 --- /dev/null +++ b/docs/apig/api-ref/ListSignatureKeysBindedToApiV2.html @@ -0,0 +1,569 @@ + + +

Querying Signature Keys Bound to an API

+

Function

This API is used to query the signature keys that have been bound to a specified API. Only one signature key can be bound to an API in an environment.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings/binded-signs

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

api_id

+

Yes

+

String

+

API ID.

+

sign_id

+

No

+

String

+

Signature key ID.

+

sign_name

+

No

+

String

+

Signature key name.

+

env_id

+

No

+

String

+

Environment ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

bindings

+

Array of SignApiBindingInfo objects

+

APIs bound to the signature key.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 SignApiBindingInfo

Parameter

+

Type

+

Description

+

publish_id

+

String

+

API publication record ID.

+

api_id

+

String

+

API ID.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

binding_time

+

String

+

Binding time.

+

env_id

+

String

+

ID of the environment in which the API has been published.

+

env_name

+

String

+

Name of the environment in which the API has been published.

+

api_type

+

Integer

+

API type.

+

api_name

+

String

+

API name.

+

id

+

String

+

Binding record ID.

+

api_remark

+

String

+

API description.

+

sign_id

+

String

+

Signature key ID.

+

sign_name

+

String

+

Signature key name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

req_method

+

String

+

Request method.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • DELETE

    +
  • PUT

    +
  • PATCH

    +
  • HEAD

    +
  • OPTIONS

    +
  • ANY

    +
+

sign_key

+

String

+

Signature key.

+
  • hmac: The value contains 8 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • basic: The value contains 4 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter. If not specified, a key is automatically generated.

    +
  • public_key: The value contains 8 to 512 characters, including letters, digits, and special characters (_-+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
  • aes: The value contains 16 characters if the aes-128-cfb algorithm is used, or 32 characters if the aes-256-cfb algorithm is used. Letters, digits, and special characters (_-!@#$%+/=) are allowed. It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
+

sign_secret

+

String

+

Signature secret.

+
  • hmac: The value contains 16 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a value is automatically generated.

    +
  • basic: The value contains 8 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a value is automatically generated.

    +
  • public_key: The value contains 15 to 2048 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a value is automatically generated.

    +
  • aes: The value contains 16 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a value is automatically generated.

    +
+

sign_type

+

String

+

Signature key type.

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+

To use a basic signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

To use a public_key signature key, ensure that the public_key feature has been configured for your gateway. For details, see "Appendix" > "Supported Features". If your gateway does not support this feature, contact technical support to enable it.

+

To use an AES signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

Enumeration values:

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "bindings" : [ {
+    "api_id" : "5f918d104dc84480a75166ba99efff21",
+    "group_name" : "api_group_001",
+    "binding_time" : "2020-08-03T04:00:11Z",
+    "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID",
+    "env_name" : "RELEASE",
+    "sign_id" : "0b0e8f456b8742218af75f945307173c",
+    "sign_name" : "signature_demo",
+    "sign_key" : "a071a20d460a4f639a636c3d7e3d8163",
+    "sign_secret" : "dc0************2b3",
+    "api_type" : 1,
+    "api_name" : "Api_http",
+    "id" : "25082bd52f74442bb1d273993d567938",
+    "api_remark" : "Web backend API"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:api_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListSignatureKeysV2.html b/docs/apig/api-ref/ListSignatureKeysV2.html new file mode 100644 index 00000000..23deb44f --- /dev/null +++ b/docs/apig/api-ref/ListSignatureKeysV2.html @@ -0,0 +1,483 @@ + + +

Querying Signature Keys

+

Function

This API is used to query all the signature keys.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/signs

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

id

+

No

+

String

+

Signature key ID.

+

name

+

No

+

String

+

Signature key name.

+

precise_search

+

No

+

String

+

Parameter name (name) for exact matching.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

signs

+

Array of SignatureWithBindNum objects

+

Signature key list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 SignatureWithBindNum

Parameter

+

Type

+

Description

+

name

+

String

+

Signature key name. It can contain letters, digits, and underscores(_) and must start with a letter.

+

Minimum: 3

+

Maximum: 64

+

sign_type

+

String

+

Signature key type.

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+

To use a basic signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

To use a public_key signature key, ensure that the public_key feature has been configured for your gateway. For details, see "Appendix" > "Supported Features". If your gateway does not support this feature, contact technical support to enable it.

+

To use an AES signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

Enumeration values:

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+

sign_key

+

String

+

Signature key.

+
  • hmac: The value contains 8 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • basic: The value contains 4 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter. If not specified, a key is automatically generated.

    +
  • public_key: The value contains 8 to 512 characters, including letters, digits, and special characters (_-+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
  • aes: The value contains 16 characters if the aes-128-cfb algorithm is used, or 32 characters if the aes-256-cfb algorithm is used. Letters, digits, and special characters (_-!@#$%+/=) are allowed. It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
+

sign_secret

+

String

+

Signature secret.

+
  • hmac: The value contains 16 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • basic: The value contains 8 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • public_key: The value can contain 16 to 2048 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
  • aes: The value contains 16 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
+

sign_algorithm

+

String

+

Signature algorithm. Specify a signature algorithm only when using an AES signature key. By default, no algorithm is used.

+

Enumeration values:

+
  • aes-128-cfb

    +
  • aes-256-cfb

    +
+

update_time

+

String

+

Update time.

+

create_time

+

String

+

Creation time.

+

id

+

String

+

Signature key ID.

+

bind_num

+

Integer

+

Number of bound APIs.

+

ldapi_bind_num

+

Integer

+

Number of custom backends bound.

+

Currently, this parameter is not supported.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "signs" : [ {
+    "sign_secret" : "sig************ret",
+    "update_time" : "2018-02-07T02:00:27.964766Z",
+    "create_time" : "2018-02-06T12:17:36Z",
+    "name" : "signature_demo",
+    "id" : "0b0e8f456b8742218af75f945307173c",
+    "sign_key" : "signkeysignkey",
+    "sign_type" : "hmac",
+    "bind_num" : 0,
+    "ldapi_bind_num" : 0
+  }, {
+    "sign_secret" : "9ce************16a",
+    "update_time" : "2020-07-30T03:56:58Z",
+    "create_time" : "2020-07-30T03:56:58Z",
+    "name" : "Signature_udlu",
+    "id" : "9dc388382fba485aadd19f932303f4c9",
+    "sign_key" : "ca50c5b670044c83b5b890a9a68a30d5",
+    "sign_type" : "hmac",
+    "bind_num" : 0,
+    "ldapi_bind_num" : 0
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListSpecialThrottlingConfigurationsV2.html b/docs/apig/api-ref/ListSpecialThrottlingConfigurationsV2.html new file mode 100644 index 00000000..fae6d3f5 --- /dev/null +++ b/docs/apig/api-ref/ListSpecialThrottlingConfigurationsV2.html @@ -0,0 +1,482 @@ + + +

Querying Excluded Request Throttling Configurations

+

Function

This API is used to query all excluded configurations of a request throttling policy.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}/throttle-specials

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

throttle_id

+

Yes

+

String

+

Request throttling policy ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

object_type

+

No

+

String

+

Object type, which can be APP or USER.

+

app_name

+

No

+

String

+

Name of an excluded app.

+

user

+

No

+

String

+

Name of an excluded user.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

throttle_specials

+

Array of ThrottleSpecialInfo objects

+

Excluded configuration list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ThrottleSpecialInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Excluded configuration ID.

+

call_limits

+

Integer

+

Maximum number of times an excluded object can access an API within the throttling period.

+

apply_time

+

String

+

Throttling period.

+

app_name

+

String

+

App name.

+

app_id

+

String

+

App ID.

+

object_id

+

String

+

ID of an object specified in the excluded configuration.

+

object_type

+

String

+

Excluded object type, which can be APP or USER.

+

object_name

+

String

+

Name of an app or a tenant to which the excluded configuration applies.

+

throttle_id

+

String

+

Request throttling policy ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 1,
+  "size" : 1,
+  "throttle_specials" : [ {
+    "call_limits" : 200,
+    "app_name" : "app_demo",
+    "object_name" : "app_demo",
+    "object_id" : "356de8eb7a8742168586e5daf5339965",
+    "throttle_id" : "3437448ad06f4e0c91a224183116e965",
+    "apply_time" : "2020-08-04T02:40:56Z",
+    "id" : "a3e9ff8db55544ed9db91d8b048770c0",
+    "app_id" : "356de8eb7a8742168586e5daf5339965",
+    "object_type" : "APP"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3005",
+  "error_msg" : "Request throttling policy 3437448ad06f4e0c91a224183116e965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListTagsV2.html b/docs/apig/api-ref/ListTagsV2.html new file mode 100644 index 00000000..62ea536a --- /dev/null +++ b/docs/apig/api-ref/ListTagsV2.html @@ -0,0 +1,361 @@ + + +

Querying Tags

+

Function

This API is used to query tags of a gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/tags

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

tags

+

Array of strings

+

Tag list.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "tags" : [ "webApi", "functionApi" ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ListVpcChannelsV2.html b/docs/apig/api-ref/ListVpcChannelsV2.html new file mode 100644 index 00000000..d0597d7e --- /dev/null +++ b/docs/apig/api-ref/ListVpcChannelsV2.html @@ -0,0 +1,941 @@ + + +

Querying VPC Channels

+

Function

This API is used to query the VPC channels under a gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 2 Query Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

offset

+

No

+

Long

+

Offset from which the query starts. If the value is less than 0, it is automatically converted to 0.

+

Default: 0

+

limit

+

No

+

Integer

+

Number of items displayed on each page. A value less than or equal to 0 will be automatically converted to 20, and a value greater than 500 will be automatically converted to 500.

+

Minimum: 1

+

Maximum: 500

+

Default: 20

+

id

+

No

+

String

+

VPC channel ID.

+

name

+

No

+

String

+

VPC channel name.

+

dict_code

+

No

+

String

+

Dictionary code of the VPC channel.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

This parameter is currently not supported.

+

Minimum: 3

+

Maximum: 64

+

precise_search

+

No

+

String

+

Parameter name for exact matching. Separate multiple parameter names with commas (,).

+

Currently, name and member_group_name are supported.

+

member_host

+

No

+

String

+

Backend service address. By default, exact match is used. Fuzzy match is not supported.

+

member_port

+

No

+

Integer

+

Backend server port.

+

Minimum: 0

+

Maximum: 65535

+

member_group_name

+

No

+

String

+

Backend server group name.

+

member_group_id

+

No

+

String

+

Backend server group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 3 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

vpc_channels

+

Array of VpcChannelInfo objects

+

VPC channel list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 VpcChannelInfo

Parameter

+

Type

+

Description

+

name

+

String

+

VPC channel name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

port

+

Integer

+

Host port of the VPC channel.

+

Range: 1–65535.

+

balance_strategy

+

Integer

+

Distribution algorithm.

+
  • 1: Weighted round robin (WRR).
  • 2: Weighted least connections (WLC).
  • 3: Source hashing.
  • 4: URI hashing.
+

Default: 1

+

Enumeration values:

+
  • 1
  • 2
  • 3
  • 4
+

member_type

+

String

+

Member type of the VPC channel.

+
  • ip
  • ecs
+

Default: ecs

+

Enumeration values:

+
  • ip
  • ecs
+

type

+

Integer

+

VPC channel type. The default type is server.

+
  • 2: Server type.
  • 3: Microservice type.
+

Default: 2

+

Enumeration values:

+
  • 2
  • 3
+

dict_code

+

String

+

Dictionary code of the VPC channel.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

This parameter is currently not supported.

+

Minimum: 3

+

Maximum: 64

+

create_time

+

String

+

Time when the VPC channel is created.

+

id

+

String

+

VPC channel ID.

+

status

+

Integer

+

VPC channel status.

+
  • 1: normal
  • 2: abnormal
+

Enumeration values:

+
  • 1
  • 2
+

member_groups

+

Array of MemberGroupInfo objects

+

Backend server groups.

+

microservice_info

+

MicroServiceInfo object

+

Microservice information.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 MemberGroupInfo

Parameter

+

Type

+

Description

+

member_group_name

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

member_group_id

+

String

+

ID of the backend server group of the VPC channel.

+

create_time

+

String

+

Time when the backend server group is created.

+

update_time

+

String

+

Time when the backend server group is updated.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 MicroserviceLabel

Parameter

+

Type

+

Description

+

label_name

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 MicroServiceInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Microservice ID.

+

instance_id

+

String

+

Gateway ID.

+

service_type

+

String

+

Microservice type. Options:

+
  • CSE: CSE microservice registration center
  • CCE: CCE workload
+

Enumeration values:

+
  • CSE
  • CCE
+

cse_info

+

MicroServiceInfoCSE object

+

CSE microservice details.

+

cce_info

+

MicroServiceInfoCCE object

+

CCE microservice workload details.

+

update_time

+

String

+

Microservice update time.

+

create_time

+

String

+

Microservice creation time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 MicroServiceInfoCSE

Parameter

+

Type

+

Description

+

engine_id

+

String

+

Microservice engine ID.

+

Maximum: 64

+

service_id

+

String

+

Microservice ID.

+

Maximum: 64

+

engine_name

+

String

+

Microservice engine name.

+

service_name

+

String

+

Microservice name.

+

register_address

+

String

+

Registration center address.

+

cse_app_id

+

String

+

App to which the microservice belongs.

+

version

+

String

+

Microservice version, which has been discarded and is reflected in the version of the backend server group.

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 MicroServiceInfoCCE

Parameter

+

Type

+

Description

+

cluster_id

+

String

+

CCE cluster ID.

+

Maximum: 64

+

namespace

+

String

+

Namespace.

+

Maximum: 64

+

workload_type

+

String

+

Workload type.

+
  • deployment
  • statefulset
  • daemonset
+

Enumeration values:

+
  • deployment
  • statefulset
  • daemonset
+

app_name

+

String

+

App name. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_key

+

String

+

Service label key. Start with a letter or digit, and use only letters, digits, and these special characters: -_./:(). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_value

+

String

+

Service label value. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

cluster_name

+

String

+

CCE cluster name.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "total" : 2,
+  "size" : 2,
+  "vpc_channels" : [ {
+    "name" : "channel 1",
+    "port" : 8080,
+    "balance_strategy" : 1,
+    "member_type" : "ip",
+    "dict_code" : "",
+    "create_time" : "2020-07-23T07:24:33Z",
+    "id" : "105c6902457144a4820dff8b1ad63331",
+    "status" : 1,
+    "member_groups" : [ ],
+    "type" : 2,
+    "microservice_info" : {
+      "id" : "",
+      "instance_id" : "",
+      "service_type" : "",
+      "cse_info" : {
+        "cse_app_id" : "",
+        "engine_id" : "",
+        "engine_name" : "",
+        "register_address" : "",
+        "service_id" : "",
+        "service_name" : ""
+      },
+      "cce_info" : {
+        "cluster_id" : "",
+        "cluster_name" : "",
+        "namespace" : "",
+        "workload_type" : "",
+        "app_name" : ""
+      },
+      "create_time" : "",
+      "update_time" : ""
+    }
+  }, {
+    "name" : "channel 2",
+    "port" : 8088,
+    "balance_strategy" : 2,
+    "member_type" : "ip",
+    "dict_code" : "",
+    "create_time" : "2020-07-23T07:11:57Z",
+    "id" : "56a7d7358e1b42459c9d730d65b14e59",
+    "status" : 1,
+    "member_groups" : [ ],
+    "type" : 3,
+    "microservice_info" : {
+      "id" : "9483afa235be45158a70c19ab817ac65",
+      "instance_id" : "eddc4d25480b4cd6b512f270a1b8b341",
+      "service_type" : "CCE",
+      "cse_info" : {
+        "cse_app_id" : "",
+        "engine_id" : "",
+        "engine_name" : "",
+        "register_address" : "",
+        "service_id" : "",
+        "service_name" : ""
+      },
+      "cce_info" : {
+        "cluster_id" : "ab1485b4f91b45abbcd560be591f7309",
+        "cluster_name" : "cce-test",
+        "namespace" : "default",
+        "workload_type" : "deployment",
+        "app_name" : "testapp"
+      },
+      "create_time" : "2020-07-23T07:11:57.244829604Z",
+      "update_time" : "2020-07-23T07:11:57.244829604Z"
+    }
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "The request parameters must be specified,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/MicroserviceCenterManagement.html b/docs/apig/api-ref/MicroserviceCenterManagement.html new file mode 100644 index 00000000..1babe47e --- /dev/null +++ b/docs/apig/api-ref/MicroserviceCenterManagement.html @@ -0,0 +1,16 @@ + + +

Microservice Center Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/MonitoringInfoQuerying.html b/docs/apig/api-ref/MonitoringInfoQuerying.html new file mode 100644 index 00000000..3964aa2f --- /dev/null +++ b/docs/apig/api-ref/MonitoringInfoQuerying.html @@ -0,0 +1,20 @@ + + +

Monitoring Information Query

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/PluginManagement.html b/docs/apig/api-ref/PluginManagement.html new file mode 100644 index 00000000..c0b8ed88 --- /dev/null +++ b/docs/apig/api-ref/PluginManagement.html @@ -0,0 +1,40 @@ + + +

Plug-in Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/RemoveEipV2.html b/docs/apig/api-ref/RemoveEipV2.html new file mode 100644 index 00000000..aa3f3f9a --- /dev/null +++ b/docs/apig/api-ref/RemoveEipV2.html @@ -0,0 +1,246 @@ + + +

Unbinding the EIP of a Dedicated Gateway

+

Function

This API is used to unbind the EIP of a dedicated gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/eip

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/RemoveEngressEipV2.html b/docs/apig/api-ref/RemoveEngressEipV2.html new file mode 100644 index 00000000..6f486bb8 --- /dev/null +++ b/docs/apig/api-ref/RemoveEngressEipV2.html @@ -0,0 +1,246 @@ + + +

Disabling Public Access for a Dedicated Gateway

+

Function

This API is used to disable public access for a dedicated gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/nat-eip

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/RemoveIngressEipV2.html b/docs/apig/api-ref/RemoveIngressEipV2.html new file mode 100644 index 00000000..e4e36be3 --- /dev/null +++ b/docs/apig/api-ref/RemoveIngressEipV2.html @@ -0,0 +1,246 @@ + + +

Disabling Public Inbound Access for a Gateway

+

Function

This API is used to disable public inbound access for a gateway that uses ELB for load balancing.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

DELETE /v2/{project_id}/apigw/instances/{instance_id}/ingress-eip

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

No Content

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ResettingAppSecretV2.html b/docs/apig/api-ref/ResettingAppSecretV2.html new file mode 100644 index 00000000..a177c00a --- /dev/null +++ b/docs/apig/api-ref/ResettingAppSecretV2.html @@ -0,0 +1,448 @@ + + +

Resetting the AppSecret of an App

+

Function

This API is used to reset the AppSecret of an app.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/apps/secret/{app_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

app_secret

+

No

+

String

+

Secret, which can contain 8 to 128 characters, starting with a letter or digit. Only letters, digits, and special characters (_-!@#$%). To define an AppSecret, first enable the app_secret parameter.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

Name.

+

remark

+

String

+

Description.

+

creator

+

String

+

Creator of the app.

+
  • USER: The app is created by an API user.

    +
  • MARKET: The app is allocated by KooGallery.

    +
+

The value MARKET is currently not supported.

+

Enumeration values:

+
  • USER

    +
  • MARKET

    +
+

update_time

+

String

+

Update time.

+

app_key

+

String

+

AppKey.

+

app_secret

+

String

+

AppSecret.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

app_type

+

String

+

App type.

+
  • apig: APIG app, which is not recommended.

    +
  • roma: ROMA integration application.

    +
+

The default value is apig. Other types are not supported currently.

+

Enumeration values:

+
  • apig

    +
  • roma

    +
+

roma_app_type

+

String

+

ROMA application type.

+
  • subscription: subscription application

    +
  • integration: integration application

    +
+

Currently, this parameter is not supported.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Resetting secret

+
{
+  "app_secret" : "1ff************9a4"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "creator" : "USER",
+  "update_time" : "2020-08-03T14:12:43.038171689Z",
+  "app_key" : "ee8f878c252747028f07eb116c2cd91b",
+  "name" : "app_demo",
+  "remark" : "Demo app",
+  "id" : "356de8eb7a8742168586e5daf5339965",
+  "app_secret" : "1ff************9a4",
+  "register_time" : "2020-08-03T13:09:13Z",
+  "status" : 1,
+  "app_type" : "apig"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ResourceQuery.html b/docs/apig/api-ref/ResourceQuery.html new file mode 100644 index 00000000..43474582 --- /dev/null +++ b/docs/apig/api-ref/ResourceQuery.html @@ -0,0 +1,20 @@ + + +

Resource Query

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ShowAppBoundAppQuota.html b/docs/apig/api-ref/ShowAppBoundAppQuota.html new file mode 100644 index 00000000..5e2a2ff0 --- /dev/null +++ b/docs/apig/api-ref/ShowAppBoundAppQuota.html @@ -0,0 +1,389 @@ + + +

Querying Quotas Associated with a Credential

+

Function

This API is used to query quotas associated with a specified credential.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/bound-quota

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

app_quota_id

+

String

+

Credential quota ID.

+

name

+

String

+

Quota name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

call_limits

+

Integer

+

Maximum number of times a credential quota can be called.

+

time_unit

+

String

+

Time unit. The options are SECOND, MINUTE, HOUR, and DAY.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

time_interval

+

Integer

+

Time limit of a quota.

+

remark

+

String

+

Parameter description.

+

Maximum: 255

+

reset_time

+

String

+

Time when the quota is reset for the first time. If this parameter is not specified, the time is calculated based on the first calling time by default.

+

create_time

+

String

+

Creation time.

+

bound_app_num

+

Integer

+

Number of applications bound to the quota policy.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "app_quota_id" : "c900c5612dbe451bb43cbcc49cfaf2f3",
+  "name" : "ClientQuota_demo",
+  "call_limits" : 1000,
+  "time_unit" : "DAY",
+  "time_interval" : 1,
+  "remark" : "remark",
+  "reset_time" : "2020-09-20 00:00:00 +0000 +0000",
+  "create_time" : "2020-09-19T07:27:47Z",
+  "bound_app_num" : 0
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "App 98df09fb-d459-4cbf-83a7-2b55ca6f3d5d does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowAppQuota.html b/docs/apig/api-ref/ShowAppQuota.html new file mode 100644 index 00000000..6754752e --- /dev/null +++ b/docs/apig/api-ref/ShowAppQuota.html @@ -0,0 +1,387 @@ + + +

Querying Credential Quota Details

+

Function

This API is used to query credential quota details.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_quota_id

+

Yes

+

String

+

Credential Quota ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

app_quota_id

+

String

+

Credential quota ID.

+

name

+

String

+

Quota name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

call_limits

+

Integer

+

Maximum number of times a credential quota can be called.

+

time_unit

+

String

+

Time unit. The options are SECOND, MINUTE, HOUR, and DAY.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

time_interval

+

Integer

+

Time limit of a quota.

+

remark

+

String

+

Parameter description.

+

Maximum: 255

+

reset_time

+

String

+

Time when the quota is reset for the first time. If this parameter is not specified, the time is calculated based on the first calling time by default.

+

create_time

+

String

+

Creation time.

+

bound_app_num

+

Integer

+

Number of applications bound to the quota policy.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "app_quota_id" : "c900c5612dbe451bb43cbcc49cfaf2f3",
+  "call_limits" : 1000,
+  "create_time" : "2020-09-19T07:27:47Z",
+  "name" : "ClientQuota_demo",
+  "reset_time" : "2020-09-20 00:00:00 +0000 +0000",
+  "time_interval" : 1,
+  "time_unit" : "DAY"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "App quota c900c5612dbe451bb43cbcc49cfaf2f3 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowAsyncTaskResult.html b/docs/apig/api-ref/ShowAsyncTaskResult.html new file mode 100644 index 00000000..62a2106b --- /dev/null +++ b/docs/apig/api-ref/ShowAsyncTaskResult.html @@ -0,0 +1,371 @@ + + +

Querying the Result of an Asynchronous Task

+

Function

This API is used to query the result of an asynchronous task.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/async-tasks/{task_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

task_id

+

Yes

+

String

+

Asynchronous task ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

task_id

+

String

+

Task ID.

+

task_status

+

String

+

Task status. Options: waiting, processing, succeed, and failed.

+

Enumeration values:

+
  • waiting
  • processing
  • succeed
  • failed
+

task_type

+

String

+

Task type. Options: import_api and export_api. Both types of tasks are asynchronous.

+

Enumeration values:

+
  • import_api
  • export_api
+

task_result

+

String

+

Task result. A string can be converted into a JSON object. If task_type is set to import_api, the fields include group_id, success (array), failure (array), swagger (structure), and ignore (array). The success array contains four fields: id (ID of a successfully imported API), method (API request method), path (API request path), and action (update or create). The failure array also contains four fields: method (API request method), path (API request path), error_code (import error code), and error_msg (import error message). The swagger structure contains two fields: id (Swagger file ID) and result (import result). The ignore array has two elements: method (API request method) and path (API request path). If task_type is set to export_api, the fields include file_type and content.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified,parameterName:task_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "The asynchronous task d9ce8c9eede54b3f841ec324fe0bfdc2 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfAclPolicyV2.html b/docs/apig/api-ref/ShowDetailsOfAclPolicyV2.html new file mode 100644 index 00000000..5ca4f025 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfAclPolicyV2.html @@ -0,0 +1,365 @@ + + +

Querying Details of an Access Control Policy

+

Function

This API is used to query the details of an access control policy.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/acls/{acl_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

acl_id

+

Yes

+

String

+

Access control policy ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

acl_name

+

String

+

Name.

+

acl_type

+

String

+

Type.

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

acl_value

+

String

+

Access control objects.

+

entity_type

+

String

+

Object type.

+
  • IP

    +
  • DOMAIN

    +
  • DOMAIN_ID

    +
+

id

+

String

+

ID.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "id" : "7eb619ecf2a24943b099833cd24a01ba",
+  "acl_name" : "acl_demo",
+  "entity_type" : "IP",
+  "acl_type" : "PERMIT",
+  "acl_value" : "192.168.1.5,192.168.10.1",
+  "update_time" : "2020-08-04T08:42:43Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3006",
+  "error_msg" : "Access control policy 7eb619ecf2a24943b099833cd24a01ba does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfApiGroupV2.html b/docs/apig/api-ref/ShowDetailsOfApiGroupV2.html new file mode 100644 index 00000000..0cc6f1d1 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfApiGroupV2.html @@ -0,0 +1,536 @@ + + +

Querying API Group Details

+

Function

This API is used to query the details of an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

API group name.

+

status

+

Integer

+

Status.

+
  • 1: valid
+

Enumeration values:

+
  • 1
+

sl_domain

+

String

+

Subdomain name that APIG automatically allocates to the API group.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Last modification time.

+

on_sell_status

+

Integer

+

Indicates whether the API group has been listed on KooGallery.

+
  • 1: listed
  • 2: not listed
  • 3: under review
+

Not supported currently.

+

url_domains

+

Array of UrlDomain objects

+

Independent domain names bound to the API group.

+

sl_domain_access_enabled

+

Boolean

+

Whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+

sl_domains

+

Array of strings

+

Automatically allocated subdomain names.

+

remark

+

String

+

Description.

+

call_limits

+

Integer

+

Total number of times all APIs in the API group can be accessed. Consider the payload capacity of the backend service when setting this parameter. By default, there is no limit on the number of API calls.

+

Currently, this parameter is not supported.

+

time_interval

+

Integer

+

Period of time for limiting the number of API calls.

+

Currently, this parameter is not supported.

+

time_unit

+

String

+

Time unit for limiting the number of API calls.

+

Currently, this parameter is not supported.

+

is_default

+

Integer

+

Indicates whether the API group is the default group.

+
  • 1: Yes
  • 2: No
+

version

+

String

+

Group version.

+
  • V1: global group
  • V2: application-level group
+

The default value is V1. This parameter is not supported currently.

+

roma_app_id

+

String

+

ID of the integration application to which the API group belongs.

+

This parameter is required when the group version is V2.

+

Currently, this parameter is not supported.

+

roma_app_name

+

String

+

Name of the integration application to which the API group belongs.

+

Currently, this parameter is not supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 UrlDomain

Parameter

+

Type

+

Description

+

id

+

String

+

Domain ID.

+

domain

+

String

+

Domain name.

+

cname_status

+

Integer

+

CNAME resolution status of the domain name.

+
  • 1: not resolved
  • 2: resolving
  • 3: resolved
  • 4: resolution failed
+

ssl_id

+

String

+

SSL certificate ID.

+

ssl_name

+

String

+

SSL certificate name.

+

min_ssl_version

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1
  • TLSv1.2
+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "update_time" : "2020-07-31T06:55:55Z",
+  "name" : "api_group_001",
+  "on_sell_status" : 2,
+  "remark" : "API group 1",
+  "sl_domains" : [ "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com", "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.cn" ],
+  "sl_domain" : "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com",
+  "id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "register_time" : "2020-07-31T06:55:55Z",
+  "status" : 1,
+  "is_default" : 2,
+  "sl_domain_access_enabled" : true
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3030",
+  "error_msg" : "The instance does not exist;id:eddc4d25480b4cd6b512f270a1b8b341"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfApiV2.html b/docs/apig/api-ref/ShowDetailsOfApiV2.html new file mode 100644 index 00000000..e4f16c15 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfApiV2.html @@ -0,0 +1,2077 @@ + + +

Querying API Details

+

Function

This API is used to query the details of an API.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

API name.

+

It can contain 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Integer

+

API type.

+
  • 1: public API

    +
  • 2: private API

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

version

+

String

+

API version.

+

Maximum: 16

+

req_protocol

+

String

+

API request protocol:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
  • GRPCS

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
  • GRPCS

    +
+

req_method

+

String

+

API request method. If the request protocol is set to GRPC, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

String

+

API authentication mode. Options:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER: custom authentication. When auth_type is set to AUTHORIZER, the authorizer_id field is mandatory.

    +
+

Custom authentication is unavailable if the request protocol is set to GRPC.

+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

auth_opt

+

AuthOpt object

+

Security authentication parameter.

+

cors

+

Boolean

+

Indicates whether CORS is supported.

+
  • TRUE: supported

    +
  • FALSE: not supported

    +
+

Default: false

+

Enumeration values:

+
  • true

    +
  • false

    +
+

match_mode

+

String

+

API matching mode:

+
  • SWA: Prefix match

    +
  • NORMAL: Exact match Default value: NORMAL

    +
+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

backend_type

+

String

+

Backend type. Options:

+
  • HTTP: web backend

    +
  • FUNCTION: FunctionGraph backend. When backend_type is set to FUNCTION, the func_info field is mandatory.

    +
  • MOCK: mock backend. When backend_type is set to MOCK, the mock_info field is mandatory.

    +
  • GRPC: gRPC backend.

    +
+

Enumeration values:

+
  • HTTP

    +
  • FUNCTION

    +
  • MOCK

    +
  • GRPC

    +
+

remark

+

String

+

API description. It cannot exceed 255 characters.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

body_remark

+

String

+

API request body, which can be an example request body, media type, or parameters. Ensure that the request body does not exceed 20,480 characters.

+

result_normal_sample

+

String

+

Example response for a successful request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

result_failure_sample

+

String

+

Example response for a failed request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

tags

+

Array of strings

+

Tag.

+

Use letters, digits, and special characters (-*#%.:_) and start with a letter.

+

By default, 10 tags are supported. To increase the quota, contact technical support to modify the API_TAG_NUM_LIMIT configuration.

+

Minimum: 1

+

Maximum: 128

+

response_id

+

String

+

Group response ID.

+

roma_app_id

+

String

+

Integration application ID.

+

Currently, this parameter is not supported.

+

domain_name

+

String

+

Custom domain name bound to the API.

+

Currently, this parameter is not supported.

+

tag

+

String

+

Tag.

+

This field will be deprecated. You can use the tags field instead.

+

content_type

+

String

+

Request content type:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

Coming soon.

+

Enumeration values:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

id

+

String

+

API ID.

+

status

+

Integer

+

App status.

+
  • 1: valid

    +
+

arrange_necessary

+

Integer

+

Indicates whether to enable orchestration.

+

register_time

+

String

+

Time when the API is registered.

+

update_time

+

String

+

Time when the API was last modified.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

group_version

+

String

+

Version of the API group to which the API belongs.

+

The default value is V1. Other versions are not supported.

+

Default: V1

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

Separate multiple environment IDs with vertical bars (|).

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

Separate multiple environment names with vertical bars (|).

+

publish_id

+

String

+

Publication record ID.

+

Separate multiple publication record IDs with vertical bars (|).

+

publish_time

+

String

+

Publication time.

+

Separate the time of multiple publication records with vertical bars (|).

+

roma_app_name

+

String

+

Name of the integration application to which the API belongs.

+

Currently, this parameter is not supported.

+

ld_api_id

+

String

+

ID of the corresponding custom backend API.

+

Currently, this parameter is not supported.

+

backend_api

+

BackendApi object

+

Web backend details.

+

api_group_info

+

ApiGroupCommonInfo object

+

API group information.

+

func_info

+

ApiFunc object

+

FunctionGraph backend details.

+

mock_info

+

ApiMock object

+

Mock backend details.

+

req_params

+

Array of ReqParam objects

+

Request parameters.

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

policy_functions

+

Array of ApiPolicyFunctionResp objects

+

FunctionGraph backend policies.

+

policy_mocks

+

Array of ApiPolicyMockResp objects

+

Mock backend policies.

+

policy_https

+

Array of ApiPolicyHttpResp objects

+

Web backend policies.

+
+
+ +
+ + + + + + + + + +
Table 4 AuthOpt

Parameter

+

Type

+

Description

+

app_code_auth_type

+

String

+

Indicates whether AppCode authentication is enabled. This parameter is valid only if auth_type is set to App. The default value is DISABLE.

+
  • DISABLE: AppCode authentication is disabled.

    +
  • HEADER: AppCode authentication is enabled and the AppCode is located in the header.

    +
+

Default: DISABLE

+

Enumeration values:

+
  • DISABLE

    +
  • HEADER

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 BackendApi

Parameter

+

Type

+

Description

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

url_domain

+

String

+

Backend service address.

+

A backend service address consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Host name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

String

+

Request protocol. You can select GRPCS for the GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

req_method

+

String

+

Request method. For the GRPC backend, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

version

+

String

+

Web backend version, which can contain a maximum of 16 characters.

+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

enable_client_ssl

+

Boolean

+

Indicates whether to enable two-way authentication.

+

retry_count

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

id

+

String

+

ID.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

register_time

+

String

+

Registration time.

+

update_time

+

String

+

Update time.

+

vpc_channel_info

+

VpcInfo object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 ApiGroupCommonInfo

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

API group name.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

sl_domain

+

String

+

Subdomain name that APIG automatically allocates to the API group.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Last modification time.

+

on_sell_status

+

Integer

+

Indicates whether the API group has been listed on KooGallery.

+
  • 1: listed

    +
  • 2: not listed

    +
  • 3: under review

    +
+

Not supported currently.

+

url_domains

+

Array of UrlDomain objects

+

Independent domain names bound to the API group.

+

sl_domain_access_enabled

+

Boolean

+

Whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 UrlDomain

Parameter

+

Type

+

Description

+

id

+

String

+

Domain ID.

+

domain

+

String

+

Domain name.

+

cname_status

+

Integer

+

CNAME resolution status of the domain name.

+
  • 1: not resolved

    +
  • 2: resolving

    +
  • 3: resolved

    +
  • 4: resolution failed

    +
+

ssl_id

+

String

+

SSL certificate ID.

+

ssl_name

+

String

+

SSL certificate name.

+

min_ssl_version

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1

    +
  • TLSv1.2

    +
+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 ApiFunc

Parameter

+

Type

+

Description

+

function_urn

+

String

+

Function URN.

+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

invocation_type

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

String

+

Function version.

+

If both a function alias URN and version are passed, only the alias URN will be used.

+

Maximum: 64

+

alias_urn

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

req_protocol

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

id

+

String

+

ID.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 ApiMock

Parameter

+

Type

+

Description

+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

result_content

+

String

+

Response.

+

version

+

String

+

Function version. It cannot exceed 64 characters.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

id

+

String

+

ID.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 ReqParam

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

The parameter name can contain 1 to 32 characters and must start with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

type

+

String

+

Parameter type.

+

Enumeration values:

+
  • STRING

    +
  • NUMBER

    +
+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

default_value

+

String

+

Default value.

+

sample_value

+

String

+

Example value.

+

required

+

Integer

+

Indicates whether the parameter is required. 1: yes 2: no

+

The value of this parameter is 1 if Location is set to PATH, and 2 if Location is set to another value.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

valid_enable

+

Integer

+

Indicates whether validity check is enabled.

+
  • 1: enabled

    +
  • 2: disabled

    +
+

Default: 2

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

enumerations

+

String

+

Enumerated value.

+

min_num

+

Integer

+

Minimum value.

+

This parameter is valid when type is set to NUMBER.

+

max_num

+

Integer

+

Maximum value.

+

This parameter is valid when type is set to NUMBER.

+

min_size

+

Integer

+

Minimum length.

+

This parameter is valid when type is set to STRING.

+

max_size

+

Integer

+

Maximum length.

+

This parameter is valid when type is set to STRING.

+

regular

+

String

+

Regular expression validation rule.

+

Currently, this parameter is not supported.

+

json_schema

+

String

+

JSON validation rule.

+

Currently, this parameter is not supported.

+

pass_through

+

Integer

+

Indicates whether to transparently transfer the parameter. 1: yes 2: no

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

id

+

String

+

Parameter ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 ApiPolicyFunctionResp

Parameter

+

Type

+

Description

+

function_urn

+

String

+

Function URN.

+

invocation_type

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

alias_urn

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

req_protocol

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 ApiPolicyMockResp

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

result_content

+

String

+

Response.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 13 ApiPolicyHttpResp

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

url_domain

+

String

+

Endpoint of the policy backend.

+

An endpoint consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Domain name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

String

+

Request protocol. Options include HTTP, HTTPS, and GRPCS. You can select GRPCS for a GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

req_method

+

String

+

Request method. Options include GET, POST, PUT, DELETE, HEAD, PATCH, OPTIONS, and ANY. This is fixed to POST for the GRPC backend.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

retry_count

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

vpc_channel_info

+

VpcInfo object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 14 BackendParam

Parameter

+

Type

+

Description

+

origin

+

String

+

Parameter type.

+
  • REQUEST: backend parameter

    +
  • CONSTANT: constant parameter

    +
  • SYSTEM: system parameter

    +
+

Enumeration values:

+
  • REQUEST

    +
  • CONSTANT

    +
  • SYSTEM

    +
+

name

+

String

+

Parameter name.

+

The parameter name must start with a letter and can only contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Minimum: 1

+

Maximum: 32

+

remark

+

String

+

Description, which can contain a maximum of 255 characters.

+

location

+

String

+

Parameter location. The value can be PATH, QUERY, or HEADER.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

value

+

String

+

Parameter value, which can contain a maximum of 255 characters.

+

If the origin type is REQUEST, the value of this parameter is the parameter name in req_params.

+

If the origin type is CONSTANT, the value is a constant.

+

If the origin type is SYSTEM, the value is a system parameter name. System parameters include gateway parameters, frontend authentication parameters, and backend authentication parameters. You can set the frontend or backend authentication parameters after enabling custom frontend or backend authentication.

+

The gateway parameters are as follows:

+
  • $context.sourceIp: source IP address of the API caller.

    +
  • $context.stage: deployment environment in which the API is called.

    +
  • $context.apiId: API ID.

    +
  • $context.appId: ID of the app used by the API caller.

    +
  • $context.requestId: request ID generated when the API is called.

    +
  • $context.serverAddr: address of the gateway server.

    +
  • $context.serverName: name of the gateway server.

    +
  • $context.handleTime: time when the API request is processed.

    +
  • $context.providerAppId: ID of the app used by the API owner. This parameter is currently not supported.

    +
+

Frontend authentication parameter: prefixed with "$context.authorizer.frontend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.frontend.aaa".

+

Backend authentication parameter: prefixed with "$context.authorizer.backend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.backend.aaa".

+

id

+

String

+

Parameter ID.

+

req_param_id

+

String

+

Request parameter ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 15 CoditionResp

Parameter

+

Type

+

Description

+

req_param_name

+

String

+

Input parameter name. This parameter is required if the policy type is param.

+

sys_param_name

+

String

+

Name of a built-in gateway parameter. This parameter is required if the policy type is system. The following parameters are supported:

+
  • req_path: request path. For example, /a/b.

    +
  • req_method: request method. For example, GET.

    +
  • reqPath: request path, which is discarded. For example, /a/b.

    +
  • reqMethod: request method, which is discarded. For example, GET.

    +
+

Enumeration values:

+
  • req_path

    +
  • req_method

    +
  • reqPath

    +
  • reqMethod

    +
+

cookie_param_name

+

String

+

COOKIE parameter name. This parameter is required if the policy type is cookie.

+

Minimum: 0

+

Maximum: 255

+

frontend_authorizer_param_name

+

String

+

System parameter: frontend authentication parameter name. This parameter is mandatory when the policy type is frontend_authorizer. The frontend authentication parameter name is prefixed with $context.authorizer.frontend. For example, if the frontend authentication parameter name is user_name, the name with the prefix will be $context.authorizer.frontend.user_name.

+

condition_type

+

String

+

Policy condition.

+
  • exact: Exact match

    +
  • enum: Enumeration

    +
  • pattern: Regular expression

    +
+

This parameter is required when the policy type is param, system, cookie, or frontend_authorizer.

+

Enumeration values:

+
  • exact

    +
  • enum

    +
  • pattern

    +
+

condition_origin

+

String

+

Policy type

+
  • param: parameter

    +
  • source: source IP address

    +
  • system: system parameter - gateway built-in parameter

    +
  • cookie: COOKIE parameter

    +
  • frontend_authorizer: system parameter - frontend authentication parameter

    +
+

Enumeration values:

+
  • param

    +
  • source

    +
  • system

    +
  • cookie

    +
  • frontend_authorizer

    +
+

condition_value

+

String

+

Policy value. This parameter is required when the policy type is param, source, cookie, or frontend_authorizer.

+

id

+

String

+

ID.

+

req_param_id

+

String

+

Input parameter ID.

+

req_param_location

+

String

+

Input parameter location.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 16 VpcInfo

Parameter

+

Type

+

Description

+

ecs_id

+

String

+

Cloud server ID.

+

ecs_name

+

String

+

Cloud server name.

+

cascade_flag

+

Boolean

+

Indicates whether to use the cascading mode.

+

Currently, this parameter is not supported.

+

vpc_channel_proxy_host

+

String

+

Proxy host.

+

vpc_channel_id

+

String

+

VPC channel ID.

+

vpc_channel_port

+

Integer

+

VPC channel port.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 17 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 18 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 19 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 20 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "id" : "5f918d104dc84480a75166ba99efff21",
+  "tags" : [ "webApi" ],
+  "arrange_necessary" : 2,
+  "backend_type" : "HTTP",
+  "auth_type" : "AUTHORIZER",
+  "auth_opt" : {
+    "app_code_auth_type" : "DISABLE"
+  },
+  "authorizer_id" : "8d0443832a194eaa84244e0c1c1912ac",
+  "backend_api" : {
+    "update_time" : "2020-08-02T16:32:47.077029Z",
+    "vpc_channel_status" : 1,
+    "vpc_channel_info" : {
+      "vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59",
+      "vpc_channel_proxy_host" : "www.example.com"
+    },
+    "url_domain" : "56a7d7358e1b42459c9d730d65b14e59",
+    "req_protocol" : "HTTPS",
+    "id" : "1ce8fda3586d4371bd83c955df37e102",
+    "req_method" : "GET",
+    "register_time" : "2020-07-31T12:42:51Z",
+    "req_uri" : "/test/benchmark",
+    "timeout" : 5000,
+    "status" : 1,
+    "retry_count" : "-1"
+  },
+  "cors" : false,
+  "status" : 1,
+  "group_name" : "api_group_001",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "group_version" : "V1",
+  "match_mode" : "NORMAL",
+  "name" : "Api_http",
+  "req_protocol" : "HTTPS",
+  "req_method" : "GET",
+  "req_uri" : "/test/http",
+  "type" : 1,
+  "version" : "V0.0.1",
+  "result_normal_sample" : "Example success response",
+  "result_failure_sample" : "Example failure response",
+  "register_time" : "2020-07-31T12:42:51Z",
+  "update_time" : "2020-08-02T16:32:47.046289Z",
+  "remark" : "Web backend API",
+  "backend_params" : [ {
+    "name" : "X-CONSTANT-HEADER",
+    "value" : "demo",
+    "location" : "HEADER",
+    "origin" : "CONSTANT",
+    "remark" : "constant_demo",
+    "id" : "8cb2eba19e7a4423a4e835647a8b8d76"
+  }, {
+    "name" : "app-id",
+    "value" : "$context.appId",
+    "location" : "HEADER",
+    "origin" : "SYSTEM",
+    "remark" : "App ID of the API caller",
+    "id" : "216ddda836e74d528f364ff589d9dd21"
+  } ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfAppAcl.html b/docs/apig/api-ref/ShowDetailsOfAppAcl.html new file mode 100644 index 00000000..4897c4c8 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfAppAcl.html @@ -0,0 +1,337 @@ + + +

Querying Access Control Details About an App

+

Function

This API is used to query the access control details about an app.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-acl

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

app_id

+

String

+

App ID.

+

app_acl_type

+

String

+

Type:

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

app_acl_values

+

Array of strings

+

Access control values. The values can be IP addresses, IP address ranges, or CIDR blocks. Use hyphens (-) to separate IP address segments.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "app_id" : "9ed8b7fe84224de681e7d7a5587e76dc",
+  "app_acl_type" : "PERMIT",
+  "app_acl_values" : [ "192.168.0.1", "192.168.0.5-192.168.0.10", "192.168.0.100/28" ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 9ed8b7fe84224de681e7d7a5587e76dc does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfAppCodeV2.html b/docs/apig/api-ref/ShowDetailsOfAppCodeV2.html new file mode 100644 index 00000000..f43490b6 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfAppCodeV2.html @@ -0,0 +1,352 @@ + + +

Querying AppCode Details

+

Function

This API is used to query the details of an AppCode created for an app for simple authentication.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes/{app_code_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+

app_code_id

+

Yes

+

String

+

AppCode ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

app_code

+

String

+

AppCode value.

+

It can contain 64 to 180 characters, starting with a letter, digit, plus sign (+), or slash (/). Only letters, digits, and the following special characters are allowed: +_!@#$%-/=

+

id

+

String

+

ID.

+

app_id

+

String

+

App ID.

+

create_time

+

String

+

Creation time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 201

+

Created

+
{
+  "app_code" : "fdc8d90a30174460a91ddacfa54d6f04c92e523a85cc4a1894f87cb13b6f572a",
+  "app_id" : "9ed8b7fe84224de681e7d7a5587e76dc",
+  "id" : "b3d34f746d0847fb95138670e10207ed",
+  "create_time" : "2020-07-24T02:31:45Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 9ed8b7fe84224de681e7d7a5587e76dc does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfAppV2.html b/docs/apig/api-ref/ShowDetailsOfAppV2.html new file mode 100644 index 00000000..517f95bd --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfAppV2.html @@ -0,0 +1,422 @@ + + +

Querying App Details

+

Function

This API is used to query the details of an app.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

Name.

+

remark

+

String

+

Description.

+

creator

+

String

+

Creator of the app.

+
  • USER: The app is created by an API user.

    +
  • MARKET: The app is allocated by KooGallery.

    +
+

The value MARKET is currently not supported.

+

Enumeration values:

+
  • USER

    +
  • MARKET

    +
+

update_time

+

String

+

Update time.

+

app_key

+

String

+

AppKey.

+

app_secret

+

String

+

AppSecret.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

app_type

+

String

+

App type.

+
  • apig: APIG app, which is not recommended.

    +
  • roma: ROMA integration application.

    +
+

The default value is apig. Other types are not supported currently.

+

Enumeration values:

+
  • apig

    +
  • roma

    +
+

roma_app_type

+

String

+

ROMA application type.

+
  • subscription: subscription application

    +
  • integration: integration application

    +
+

Currently, this parameter is not supported.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "creator" : "USER",
+  "update_time" : "2020-08-03T13:09:13Z",
+  "app_key" : "ee8f878c252747028f07eb116c2cd91b",
+  "name" : "app_demo",
+  "remark" : "Demo app",
+  "id" : "356de8eb7a8742168586e5daf5339965",
+  "app_secret" : "416************ab8",
+  "register_time" : "2020-08-03T13:09:13Z",
+  "status" : 1,
+  "app_type" : "apig"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfCertificateV2.html b/docs/apig/api-ref/ShowDetailsOfCertificateV2.html new file mode 100644 index 00000000..6635d182 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfCertificateV2.html @@ -0,0 +1,476 @@ + + +

Querying Certificate Details

+

Function

This API is used to query the details about a certificate.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/certificates/{certificate_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

certificate_id

+

Yes

+

String

+

Certificate ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Certificate ID.

+

name

+

String

+

Certificate name.

+

type

+

String

+

Certificate type.

+
  • global: Global certificate.

    +
  • instance: Gateway certificate.

    +
+

Enumeration values:

+
  • global

    +
  • instance

    +
+

instance_id

+

String

+

Gateway ID.

+
  • If type is set to global, the default value is common.

    +
  • If type is set to instance, a gateway ID is displayed.

    +
+

project_id

+

String

+

Project ID.

+

common_name

+

String

+

Domain name.

+

san

+

Array of strings

+

SAN domain name.

+

not_after

+

String

+

Expiration time.

+

signature_algorithm

+

String

+

Signature algorithm.

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+

version

+

Integer

+

Version.

+

organization

+

Array of strings

+

Company or organization.

+

organizational_unit

+

Array of strings

+

Department.

+

locality

+

Array of strings

+

City.

+

state

+

Array of strings

+

State or province.

+

country

+

Array of strings

+

Country or region.

+

not_before

+

String

+

Effective time.

+

serial_number

+

String

+

Serial number.

+

issuer

+

Array of strings

+

Issuer.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "id" : "a27be832f2e9441c8127fe48e3b5ac67",
+  "name" : "cert_demo",
+  "common_name" : "apigtest.example.com",
+  "san" : [ "apigtest.example.com", "*.san.com" ],
+  "version" : 3,
+  "organization" : [ "XX" ],
+  "organizational_unit" : [ "IT" ],
+  "locality" : [ "XX" ],
+  "state" : [ "XX" ],
+  "country" : [ "XX" ],
+  "not_before" : "2019-06-01T00:00:00Z",
+  "not_after" : "2031-08-16T06:36:13Z",
+  "serial_number" : "13010",
+  "issuer" : [ "XXSSL Inc" ],
+  "signature_algorithm" : "SHA256-RSA",
+  "create_time" : "2021-08-20T02:03:53Z",
+  "update_time" : "2021-08-20T02:03:53Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:domain_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfCustomAuthorizersV2.html b/docs/apig/api-ref/ShowDetailsOfCustomAuthorizersV2.html new file mode 100644 index 00000000..280bc220 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfCustomAuthorizersV2.html @@ -0,0 +1,500 @@ + + +

Querying Custom Authorizer Details

+

Function

This API is used to query the details of a custom authorizer.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/authorizers/{authorizer_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

authorizer_id

+

Yes

+

String

+

Custom authorizer ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Custom authorizer name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

type

+

String

+

Custom authorizer type.

+
  • FRONTEND

    +
  • BACKEND

    +
+

Modification is not allowed.

+

Enumeration values:

+
  • FRONTEND

    +
  • BACKEND

    +
+

authorizer_type

+

String

+

Value: FUNC.

+

Enumeration values:

+
  • FUNC

    +
+

authorizer_uri

+

String

+

Function URN.

+

network_type

+

String

+

Function network architecture:

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Default: V1

+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

authorizer_version

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

authorizer_alias_uri

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

identities

+

Array of Identity objects

+

Identity source.

+

ttl

+

Integer

+

Maximum cache age.

+

user_data

+

String

+

User data.

+

ld_api_id

+

String

+

Custom backend ID.

+

Currently, this parameter is not supported.

+

need_body

+

Boolean

+

Indicates whether to send the body.

+

id

+

String

+

Custom authorizer ID.

+

create_time

+

String

+

Creation time.

+

roma_app_id

+

String

+

ID of the application to which the custom authorizer belongs.

+

Currently, this parameter is not supported.

+

roma_app_name

+

String

+

Name of the application to which the custom authorizer belongs.

+

Currently, this parameter is not supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Identity

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • HEADER

    +
  • QUERY

    +
+

validation

+

String

+

Parameter verification expression. The default value is null, indicating that no verification is performed.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "name" : "Authorizer_demo",
+  "type" : "FRONTEND",
+  "authorizer_type" : "FUNC",
+  "authorizer_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814",
+  "network_type" : "V1",
+  "authorizer_version" : "v1",
+  "authorizer_alias_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814:!v1",
+  "identities" : [ {
+    "name" : "header",
+    "location" : "HEADER"
+  } ],
+  "ttl" : 0,
+  "user_data" : "authorizer_test",
+  "id" : "0d982c1ac3da493dae47627b6439fc5c",
+  "create_time" : "2020-07-31T11:55:43Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:type. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3081",
+  "error_msg" : "authorizer with id: 0d982c1ac3da493dae47627b6439fc5c not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfDomainNameCertificateV2.html b/docs/apig/api-ref/ShowDetailsOfDomainNameCertificateV2.html new file mode 100644 index 00000000..f91b9909 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfDomainNameCertificateV2.html @@ -0,0 +1,487 @@ + + +

Querying Details of the Certificate Bound to a Domain Name

+

Function

This API is used to query the details of the certificate bound to a domain name.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificate/{certificate_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

domain_id

+

Yes

+

String

+

Domain ID.

+

certificate_id

+

Yes

+

String

+

Certificate ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Certificate ID.

+

name

+

String

+

Certificate name.

+

type

+

String

+

Certificate type. Options:

+
  • global: Global certificate.

    +
  • instance: Gateway certificate.

    +
+

Enumeration values:

+
  • global

    +
  • instance

    +
+

instance_id

+

String

+

Gateway ID.

+
  • If type is set to global, the default value is common.

    +
  • If type is set to instance, a gateway ID is displayed.

    +
+

project_id

+

String

+

Project ID.

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+

common_name

+

String

+

Certificate domain name.

+

san

+

Array of strings

+

Subject alternative names.

+

version

+

Integer

+

Certificate version.

+

organization

+

Array of strings

+

Company or organization.

+

organizational_unit

+

Array of strings

+

Department.

+

locality

+

Array of strings

+

City.

+

state

+

Array of strings

+

State or province.

+

country

+

Array of strings

+

Country or region.

+

not_before

+

String

+

Start time of the certificate validity period.

+

not_after

+

String

+

End time of the certificate validity period.

+

serial_number

+

String

+

Serial No.

+

issuer

+

Array of strings

+

Certificate issuer.

+

signature_algorithm

+

String

+

Signature algorithm.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "serial_number" : "219450666855693268010130472645821723203",
+  "version" : 3,
+  "san" : [ "www.company.com" ],
+  "not_before" : "2019-06-01T00:00:00Z",
+  "issuer" : [ "mkcert development CA" ],
+  "not_after" : "2030-08-04T07:41:19Z",
+  "organization" : [ "mkcert development certificate" ],
+  "signature_algorithm" : "SHA256-RSA",
+  "organizational_unit" : [ "XXX\\\\DESKTOP-L2TFOFH" ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:domain_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfEnvironmentVariableV2.html b/docs/apig/api-ref/ShowDetailsOfEnvironmentVariableV2.html new file mode 100644 index 00000000..00410456 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfEnvironmentVariableV2.html @@ -0,0 +1,316 @@ + + +

Querying Variable Details

+

Function

This API is used to query the details of an environment variable.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/env-variables/{env_variable_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

env_variable_id

+

Yes

+

String

+

Environment variable ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

variable_value

+

String

+

The variable value can contain 1 to 255 characters. Only letters, digits, and special characters (_-/.:) are allowed.

+

env_id

+

String

+

Environment ID.

+

Minimum: 1

+

Maximum: 65

+

group_id

+

String

+

API group ID.

+

Minimum: 1

+

Maximum: 65

+

variable_name

+

String

+

Variable name, which can contain 3 to 32 characters, starting with a letter. Only letters, digits, hyphens (-), and underscores (_) are allowed. The variable name is equivalent to "#Name#" in API definitions. Characters between the number signs are case-sensitive. The variable name will be replaced with the variable value after API publication.

+

id

+

String

+

Environment variable ID.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "variable_value" : "192.168.1.5",
+  "env_id" : "7a1ad0c350844ee69479b47df9a881cb",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "id" : "25054838a624400bbf2267cf5b3a3f70",
+  "variable_name" : "address"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3011",
+  "error_msg" : "The environment variable does not exist, id: 25054838a624400bbf2267cf5b3a3f70"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfGatewayResponseTypeV2.html b/docs/apig/api-ref/ShowDetailsOfGatewayResponseTypeV2.html new file mode 100644 index 00000000..682cfcfe --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfGatewayResponseTypeV2.html @@ -0,0 +1,450 @@ + + +

Querying the Response of an Error Type

+

Function

This API is used to query the response of an error type defined for an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}/{response_type}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

response_id

+

Yes

+

String

+

Response ID.

+

response_type

+

Yes

+

String

+

Error type. Options:

+
  • AUTH_FAILURE: IAM or app authentication failed.

    +
  • AUTH_HEADER_MISSING: The identity source is missing.

    +
  • AUTHORIZER_FAILURE: Custom authentication failed.

    +
  • AUTHORIZER_CONF_FAILURE: A custom authorizer error has occurred. For example, communication failed or an error response was returned.

    +
  • AUTHORIZER_IDENTITIES_FAILURE: The identity source of the frontend custom authorizer is missing or invalid.

    +
  • BACKEND_UNAVAILABLE: The backend is unavailable due to communication error.

    +
  • BACKEND_TIMEOUT: Communication with the backend timed out.

    +
  • THROTTLED: The request was rejected due to throttling.

    +
  • UNAUTHORIZED: The credential you use is not authorized to call the API.

    +
  • ACCESS_DENIED: Access denied. For example, the access control policy is triggered or an attack is detected.

    +
  • NOT_FOUND: No API is matched.

    +
  • REQUEST_PARAMETERS_FAILURE: Invalid request parameter or unsupported HTTP method.

    +
  • DEFAULT_4XX: Another 4XX error occurred.

    +
  • DEFAULT_5XX: Another 5XX error occurred.

    +
  • THIRD_AUTH_FAILURE: Third-party authentication failed.

    +
  • THIRD_AUTH_IDENTITIES_FAILURE: The identity source of the third-party authorizer is missing or invalid.

    +
  • THIRD_AUTH_CONF_FAILURE: A third-party authorizer error has occurred. For example, communication failed or an error response was returned.

    +
  • ORCHESTRATION_PARAMETER_NOT_FOUND: Parameter orchestration failed. No input parameter is found in the request.

    +
  • ORCHESTRATION_FAILURE: Parameter orchestration failed. No orchestration rule to match.

    +
+

Enumeration values:

+
  • AUTH_FAILURE

    +
  • AUTH_HEADER_MISSING

    +
  • AUTHORIZER_FAILURE

    +
  • AUTHORIZER_CONF_FAILURE

    +
  • AUTHORIZER_IDENTITIES_FAILURE

    +
  • BACKEND_UNAVAILABLE

    +
  • BACKEND_TIMEOUT

    +
  • THROTTLED

    +
  • UNAUTHORIZED

    +
  • ACCESS_DENIED

    +
  • NOT_FOUND

    +
  • REQUEST_PARAMETERS_FAILURE

    +
  • DEFAULT_4XX

    +
  • DEFAULT_5XX

    +
  • THIRD_AUTH_FAILURE

    +
  • THIRD_AUTH_IDENTITIES_FAILURE

    +
  • THIRD_AUTH_CONF_FAILURE

    +
  • ORCHESTRATION_PARAMETER_NOT_FOUND

    +
  • ORCHESTRATION_FAILURE

    +
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

{User defined key}

+

Map<String,ResponseInfoResp>

+

OK

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 ResponseInfoResp

Parameter

+

Type

+

Description

+

status

+

Integer

+

HTTP status code of the response. The value ranges from 200 to 599, but cannot be 444.

+

body

+

String

+

Response body template.

+

headers

+

Array of ResponseInfoHeader objects

+

Custom response header.

+

Array Length: 0 - 10

+

default

+

Boolean

+

Indicates whether the response is the default response.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 ResponseInfoHeader

Parameter

+

Type

+

Description

+

key

+

String

+

Key of the custom group response header, which can contain 1 to 128 characters of letters, digits, and hyphens (-).

+

value

+

Object

+

Value of the custom group response header, which is a string of 1 to 1,024 characters.

+

Minimum: 1

+

Maximum: 1024

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "ACCESS_DENIED" : {
+    "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+    "default" : true,
+    "status" : 403
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:group_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfGatewayResponseV2.html b/docs/apig/api-ref/ShowDetailsOfGatewayResponseV2.html new file mode 100644 index 00000000..35c17110 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfGatewayResponseV2.html @@ -0,0 +1,522 @@ + + +

Querying Group Response Details

+

Function

This API is used to query the details of a response defined for an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

response_id

+

Yes

+

String

+

Response ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Response name.

+

responses

+

Map<String,ResponseInfoResp>

+

Response type definition. key indicates the error type. Options of key:

+
  • AUTH_FAILURE: Authentication failed.
  • AUTH_HEADER_MISSING: The identity source is missing.
  • AUTHORIZER_FAILURE: Custom authentication failed.
  • AUTHORIZER_CONF_FAILURE: Custom authorizer error.
  • AUTHORIZER_IDENTITIES_FAILURE: The identity source of the custom authorizer is invalid.
  • BACKEND_UNAVAILABLE: The backend is unavailable.
  • BACKEND_TIMEOUT: Backend timed out.
  • THROTTLED: The request was rejected due to request throttling.
  • UNAUTHORIZED: The app you are using has not been authorized to call the API.
  • ACCESS_DENIED: Access denied.
  • NOT_FOUND: No API is found.
  • REQUEST_PARAMETERS_FAILURE: Invalid request parameter.
  • DEFAULT_4XX: Default 4XX error occurred.
  • DEFAULT_5XX: Default 5XX error occurred.
  • THIRD_AUTH_FAILURE: Third-party authentication failed.
  • THIRD_AUTH_IDENTITIES_FAILURE: Identity source of the third-party authorizer is invalid.
  • THIRD_AUTH_CONF_FAILURE: Third-party authorizer configuration error.
  • ORCHESTRATION_PARAMETER_NOT_FOUND: No parameters are input to match the parameter orchestration rule, causing orchestration failure.
  • ORCHESTRATION_FAILURE: Input parameters cannot match orchestration rules, causing orchestration failure.
+

Each error type is in JSON format.

+

id

+

String

+

Response ID.

+

default

+

Boolean

+

Indicates whether the group response is the default response.

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 ResponseInfoResp

Parameter

+

Type

+

Description

+

status

+

Integer

+

HTTP status code of the response. The value ranges from 200 to 599, but cannot be 444.

+

body

+

String

+

Response body template.

+

headers

+

Array of ResponseInfoHeader objects

+

Custom response header.

+

Array Length: 0 - 10

+

default

+

Boolean

+

Indicates whether the response is the default response.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 ResponseInfoHeader

Parameter

+

Type

+

Description

+

key

+

String

+

Key of the custom group response header, which can contain 1 to 128 characters of letters, digits, and hyphens (-).

+

value

+

String

+

Value of the custom group response header, which is a string of 1 to 1,024 characters.

+

Minimum: 1

+

Maximum: 1024

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

Created

+
{
+  "create_time" : "2020-08-12T06:52:02Z",
+  "update_time" : "2020-08-12T06:52:02Z",
+  "default" : false,
+  "id" : "e839b367e10f4ab19d1c5008e476b83a",
+  "name" : "response_demo",
+  "responses" : {
+    "ACCESS_DENIED" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 403
+    },
+    "AUTHORIZER_CONF_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 500
+    },
+    "AUTHORIZER_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 500
+    },
+    "AUTHORIZER_IDENTITIES_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "AUTH_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "AUTH_HEADER_MISSING" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "BACKEND_TIMEOUT" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 504
+    },
+    "BACKEND_UNAVAILABLE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 502
+    },
+    "DEFAULT_4XX" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true
+    },
+    "DEFAULT_5XX" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true
+    },
+    "NOT_FOUND" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 404
+    },
+    "REQUEST_PARAMETERS_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 400
+    },
+    "THROTTLED" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 429
+    },
+    "UNAUTHORIZED" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "THIRD_AUTH_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "THIRD_AUTH_IDENTITIES_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "THIRD_AUTH_CONF_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 500
+    }
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:group_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfInstanceProgressV2.html b/docs/apig/api-ref/ShowDetailsOfInstanceProgressV2.html new file mode 100644 index 00000000..01a51ea7 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfInstanceProgressV2.html @@ -0,0 +1,350 @@ + + +

Querying the Creation Progress of a Dedicated Gateway

+

Function

This API is used to query the creation progress of a dedicated gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/progress

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

progress

+

Integer

+

Gateway creation progress.

+

Unit: %

+

Enumeration values:

+
  • 30
  • 50
  • 80
  • 90
  • 100
+

status

+

String

+

Gateway creation status.

+
  • creating
  • success
  • failed
+

Enumeration values:

+
  • creating
  • success
  • failed
+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+

start_time

+

Long

+

Time when the gateway creation starts. The time is in the Unix timestamp format.

+

end_time

+

Long

+

Time when the gateway creation is completed. The time is in the Unix timestamp format.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+ +

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfInstanceV2.html b/docs/apig/api-ref/ShowDetailsOfInstanceV2.html new file mode 100644 index 00000000..66d50a44 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfInstanceV2.html @@ -0,0 +1,696 @@ + + +

Querying Dedicated Gateway Details

+

Function

This API is used to query the details of a dedicated gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Gateway ID.

+

project_id

+

String

+

ID of the tenant to which the gateway belongs.

+

instance_name

+

String

+

Gateway name.

+

status

+

String

+

Instance status:

+
  • Creating: The instance is being created.
  • CreateSuccess: The instance is created successfully.
  • CreateFail: The instance fails to be created.
  • Initing: The instance is being initialized.
  • Registering: The instance is being registered.
  • Running: The instance is running.
  • InitingFailed: The instance fails to be initialized.
  • RegisterFailed: The instance fails to be registered.
  • Installing: The instance is being installed.
  • InstallFailed: The instance fails to be installed.
  • Updating: The instance is being upgraded.
  • UpdateFailed: The instance fails to be upgraded.
  • Rollbacking: The instance is being rolled back.
  • RollbackSuccess: The instance is rolled back successfully.
  • RollbackFailed: The instance fails to be rolled back.
  • Deleting: The instance is being deleted.
  • DeleteFailed: The instance fails to be deleted.
  • Unregistering: The instance is being deregistered.
  • UnRegisterFailed: The instance fails to be deregistered.
  • CreateTimeout: Creation of the instance times out.
  • InitTimeout: Initialization of the instance times out.
  • RegisterTimeout: Registration of the instance times out.
  • InstallTimeout: Installation of the instance times out.
  • UpdateTimeout: Upgrading of the instance times out.
  • RollbackTimeout: Rollback of the instance times out.
  • DeleteTimeout: Deletion of the instance times out.
  • UnregisterTimeout: Deregistration of the instance times out.
  • Starting: The instance is being started.
  • Freezing: The instance is being frozen.
  • Frozen: The instance is frozen.
  • Restarting: The instance is being restarted.
  • RestartFail: The instance fails to be restarted.
  • Unhealthy: The instance is abnormal.
  • RestartTimeout: Restart of the instance times out.
  • Resizing: The instance specification is changing.
  • ResizeFailed: The instance specification fails to be changed.
  • ResizeTimeout: The instance specification change times out.
+

Enumeration values:

+
  • Creating
  • CreateSuccess
  • CreateFail
  • Initing
  • Registering
  • Running
  • InitingFailed
  • RegisterFailed
  • Installing
  • InstallFailed
  • Updating
  • UpdateFailed
  • Rollbacking
  • RollbackSuccess
  • RollbackFailed
  • Deleting
  • DeleteFailed
  • Unregistering
  • UnRegisterFailed
  • CreateTimeout
  • InitTimeout
  • RegisterTimeout
  • InstallTimeout
  • UpdateTimeout
  • RollbackTimeout
  • DeleteTimeout
  • UnregisterTimeout
  • Starting
  • Freezing
  • Frozen
  • Restarting
  • RestartFail
  • Unhealthy
  • RestartTimeout
  • Resizing
  • ResizeFailed
  • ResizeTimeout
+

instance_status

+

Integer

+

Instance status ID:

+
  • 1: Creating
  • 2: Created successfully
  • 3: Creation failed
  • 4: Initializing
  • 5: Registering
  • 6: Running
  • 7: Initialization failed
  • 8: Registration failed
  • 10: Installing
  • 11: Installation failed
  • 12: Upgrading
  • 13: Upgrade failed
  • 20: Rolling back
  • 21: Rolled back
  • 22: Rollback failed
  • 23: Deleting
  • 24: Deletion failed
  • 25: Deregistering
  • 26: Deregistration failed
  • 27: Creation timed out
  • 28: Initialization timed out
  • 29: Registration timed out
  • 30: Installation timed out
  • 31: Upgrade timed out
  • 32: Rollback timed out
  • 33: Deletion timed out
  • 34: Deregistration timed out
  • 35: Starting
  • 36: Freezing
  • 37: Frozen
  • 38: Restarting
  • 39: Restart failed
  • 40: Abnormal
  • 41: Restart timed out
  • 42: Changing specification
  • 43: Specification change failed
  • 44: Specification change timed out
+

Enumeration values:

+
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 10
  • 11
  • 12
  • 13
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
+

type

+

String

+

Gateway type.

+

The default value is apig.

+

spec

+

String

+

Gateway edition.

+
  • BASIC
  • PROFESSIONAL
  • ENTERPRISE
  • PLATINUM
+

Enumeration values:

+
  • BASIC
  • PROFESSIONAL
  • ENTERPRISE
  • PLATINUM
+

create_time

+

Long

+

Time when the gateway is created. The time is in the Unix timestamp format.

+

enterprise_project_id

+

String

+

Enterprise project ID. This parameter is required for an enterprise account.

+

eip_address

+

String

+

EIP bound to the gateway.

+

charging_mode

+

Integer

+

Billing mode of the gateway.

+
  • 0: pay-per-use
  • 1: This parameter is not used currently.
+

Enumeration values:

+
  • 0
  • 1
+

cbc_metadata

+

String

+

This parameter is not used currently.

+

loadbalancer_provider

+

String

+

Type of the load balancer used by the gateway.

+
  • ELB
+

Enumeration values:

+
  • elb
+

description

+

String

+

Description about the gateway.

+

vpc_id

+

String

+

VPC ID.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console, and click the name of a VPC to view the VPC ID on the displayed details page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying VPCs" in the VPC API Reference.
+

subnet_id

+

String

+

Subnet network ID.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console and click the target subnet on the Subnets page. You can view the network ID on the displayed page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying Subnets" in the VPC API Reference.
+

security_group_id

+

String

+

ID of the security group to which the gateway belongs.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console. Choose Access Control > Security Groups in the navigation pane. On the Security Groups page, click the target security group. Then view the security group ID on the displayed page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying Security Groups" in the VPC API Reference.
+

maintain_begin

+

String

+

Start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.

+

During the maintenance time period, the O&M personnel can perform maintenance operations on the gateway. During maintenance, services can still be used, but occasionally there may be temporary service interruptions. Scheduled maintenance occurs infrequently (typically once every several months).

+

maintain_end

+

String

+

End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.

+

During the maintenance time period, the O&M personnel can perform maintenance operations on the gateway. During maintenance, services can still be used, but occasionally there may be temporary service interruptions. Scheduled maintenance occurs infrequently (typically once every several months).

+

ingress_ip

+

String

+

VPC ingress address.

+

ingress_ip_v6

+

String

+

VPC access address (IPv6).

+

Currently, this parameter is not supported.

+

user_id

+

String

+

ID of the account to which the gateway belongs.

+

nat_eip_address

+

String

+

IP address for public outbound access.

+

bandwidth_size

+

Integer

+

Outbound access bandwidth.

+

bandwidth_charging_mode

+

String

+

Billing mode of the public outbound access bandwidth.

+

available_zone_ids

+

String

+

AZ.

+

instance_version

+

String

+

Gateway version.

+

virsubnet_id

+

String

+

Subnet network ID.

+

Currently, this parameter is not supported.

+

roma_eip_address

+

String

+

ROMA EIP.

+

Currently, this parameter is not supported.

+

listeners

+

Object

+

Listener information.

+

Currently, this parameter is not supported.

+

supported_features

+

Array of strings

+

Supported features.

+

endpoint_service

+

EndpointService object

+

VPC endpoint service details.

+

This parameter will be deprecated. Use endpoint_services instead.

+

endpoint_services

+

Array of EndpointService objects

+

VPC endpoint services.

+

node_ips

+

NodeIps object

+

VPC endpoint ID.

+

publicips

+

Array of IpDetails objects

+

Public inbound access addresses.

+

privateips

+

Array of IpDetails objects

+

Private inbound access addresses.

+

unreliable_ips

+

Array of strings

+

List of unreliable gateway inbound access IP addresses, to which the subdomain name of the group is not CNAMEd. The DEFAULT group cannot be accessed directly using the IP address in this list.

+

is_releasable

+

Boolean

+

Whether the gateway can be released.

+
  • true: The gateway can be released.
  • false: The gateway cannot be released.
+

ingress_bandwidth_charging_mode

+

String

+

Billing mode of the public inbound access bandwidth.

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 EndpointService

Parameter

+

Type

+

Description

+

service_name

+

String

+

VPC endpoint service name.

+

created_at

+

String

+

Creation time.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 NodeIps

Parameter

+

Type

+

Description

+

livedata

+

Array of strings

+

LiveData node IP addresses.

+

shubao

+

Array of strings

+

Shubao node IP addresses.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 IpDetails

Parameter

+

Type

+

Description

+

ip_address

+

String

+

IP address.

+

bandwidth_size

+

Integer

+

Bandwidth.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "id" : "8dfxxxxxxxxxxxxxxxxxxxxxxxxxx00p",
+  "spec" : "BASIC",
+  "project_id" : "78xxxxxxxxxxxxxxxxxxxxxxxxxxxxoi",
+  "instance_name" : "apig-demo",
+  "status" : "Running",
+  "instance_status" : 6,
+  "eip_address" : null,
+  "type" : null,
+  "create_time" : 1635890506328,
+  "charging_mode" : 0,
+  "enterprise_project_id" : "0",
+  "loadbalancer_provider" : "elb",
+  "description" : "test create instance",
+  "instance_version" : "acc6d368a3cb4d47840380bf62b0ab32",
+  "available_zone_ids" : "[xx-xxx-7a, xx-xxx-7b]",
+  "user_id" : "e966ff7227ef4df49df7d57aaf00f8ed",
+  "vpc_id" : "0402ea19-5457-4032-9d1b-eb48b98f6c66",
+  "subnet_id" : "a3bd29e4-d5bc-414c-a79a-1f35ee4ead88",
+  "virsubnet_id" : "a3bd29e4-d5bc-414c-a79a-1f35ee4ead88",
+  "security_group_id" : "4b95a790-5cfc-463d-8de5-42199e55371c",
+  "maintain_begin" : "22:00:00",
+  "maintain_end" : "02:00:00",
+  "ingress_ip" : "192.168.0.152",
+  "ingress_ip_v6" : null,
+  "nat_eip_address" : "xxx.xxx.xxx.xxx",
+  "roma_eip_address" : null,
+  "bandwidth_size" : 5,
+  "bandwidth_charging_mode" : "bandwidth",
+  "supported_features" : [ "lts", "gateway_responses", "ratelimit", "request_body_size", "backend_timeout", "app_token", "app_basic", "app_secret", "multi_auth", "route", "sign_basic", "app_route", "backend_client_certificate", "ssl_ciphers", "cors", "app_quota", "app_acl", "real_ip_from_xff", "set_resp_headers", "vpc_backup", "throttle_strategy", "watch_instance", "sign_aes", "mock_status_code_and_header", "backend_retry_count", "custom_log", "real_ip_header_getter", "policy_sys_param", "vpc_name_modifiable", "breaker", "default_group_host_trustlist" ],
+  "node_ips" : {
+    "livedata" : [ ],
+    "shubao" : [ "192.168.0.123", "192.168.0.114" ]
+  },
+  "endpoint_service" : null,
+  "endpoint_services" : [ {
+    "service_name" : "xx-xxx-7a.apig.20bc4a91-1542-43s2-a278-b1e49c0hh6f9",
+    "created_at" : "2021-8-03 06:04:43"
+  } ],
+  "publicips" : [ {
+    "ip_address" : "xxx.xxx.xxx.xxx",
+    "bandwidth_size" : 5
+  } ],
+  "privateips" : [ {
+    "ip_address" : "xxx.xxx.xxx.xxx",
+    "bandwidth_size" : 5
+  } ],
+  "ingress_bandwidth_charging_mode" : "bandwidth",
+  "cbc_operation_locks" : [ {
+    "lock_scene" : "TO_PERIOD_LOCK",
+    "lock_source_id" : "CxxxxxxxxxxxM"
+  } ],
+  "unreliable_ips" : [ "192.xx.xxx.xxx" ]
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfMemberGroup.html b/docs/apig/api-ref/ShowDetailsOfMemberGroup.html new file mode 100644 index 00000000..a5fa1468 --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfMemberGroup.html @@ -0,0 +1,441 @@ + + +

Querying a Backend Server Group of a VPC Channel

+

Function

This API is used to query a backend server group of a specified VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups/{member_group_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+

member_group_id

+

Yes

+

String

+

Backend server group ID of the VPC channel.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

member_group_name

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

member_group_id

+

String

+

ID of the backend server group of the VPC channel.

+

create_time

+

String

+

Time when the backend server group is created.

+

update_time

+

String

+

Time when the backend server group is updated.

+
+
+ +
+ + + + + + + + + + + + + +
Table 4 MicroserviceLabel

Parameter

+

Type

+

Description

+

label_name

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "member_group_name" : "vpc_member_group",
+  "member_group_id" : "105c6902457144a4820dff8b1ad63331",
+  "dict_code" : "",
+  "member_group_remark" : "",
+  "create_time" : "2020-07-23T07:24:33Z",
+  "update_time" : "2020-07-23T07:24:33Z",
+  "microservice_version" : "",
+  "microservice_port" : 0,
+  "microservice_labels" : [ ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified, parameter name:members"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfRequestThrottlingPolicyV2.html b/docs/apig/api-ref/ShowDetailsOfRequestThrottlingPolicyV2.html new file mode 100644 index 00000000..03ea72bb --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfRequestThrottlingPolicyV2.html @@ -0,0 +1,408 @@ + + +

Querying Details of a Request Throttling Policy

+

Function

This API is used to query the details of a request throttling policy.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

throttle_id

+

Yes

+

String

+

Request throttling policy ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

app_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an app within the same period. The value of this parameter cannot exceed the user call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

name

+

String

+

Request throttling policy name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

time_unit

+

String

+

Time unit for limiting the number of API calls.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

remark

+

String

+

Description of the request throttling policy, which can contain a maximum of 255 characters.

+

api_call_limits

+

Integer

+

Maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS. You can change the default limit to meet service requirements. The maximum value is 2,147,483,647. Enter a positive integer.

+

type

+

Integer

+

Type of the request throttling policy.

+
  • 1: API-based, limiting the maximum number of times a single API bound to the policy can be called within the specified period.

    +
  • 2: API-shared, limiting the maximum number of times all APIs bound to the policy can be called within the specified period.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

enable_adaptive_control

+

String

+

Indicates whether to enable dynamic request throttling.

+
  • TRUE

    +
  • FALSE

    +
+

Currently, this parameter is not supported.

+

user_call_limits

+

Integer

+

Maximum number of times the API can be accessed by a user within the same period. The value of this parameter cannot exceed the Max. API Requests. The maximum value is 2,147,483,647. Enter a positive integer.

+

time_interval

+

Integer

+

Period of time for limiting the number of API calls. This parameter applies with each API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

ip_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an IP address within the same period. The value of this parameter cannot exceed the API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

id

+

String

+

Request throttling policy ID.

+

bind_num

+

Integer

+

Number of APIs to which the request throttling policy has been bound.

+

is_inclu_special_throttle

+

Integer

+

Indicates whether an excluded request throttling configuration has been created.

+
  • 1: yes

    +
  • 2: no

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

create_time

+

String

+

Creation time.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "name" : "throttle_demo",
+  "create_time" : "2020-07-31T08:44:02.205366118Z",
+  "remark" : "Total: 800 calls/second; user: 500 calls/second; app: 300 calls/second; IP address: 600 calls/second",
+  "type" : 1,
+  "time_interval" : 1,
+  "ip_call_limits" : 600,
+  "app_call_limits" : 300,
+  "time_unit" : "SECOND",
+  "api_call_limits" : 800,
+  "id" : "3437448ad06f4e0c91a224183116e965",
+  "user_call_limits" : 500,
+  "enable_adaptive_control" : "FALSE",
+  "bind_num" : 0,
+  "is_inclu_special_throttle" : 2
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3005",
+  "error_msg" : "Request throttling policy 3437448ad06f4e0c91a224183116e965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowDetailsOfVpcChannelV2.html b/docs/apig/api-ref/ShowDetailsOfVpcChannelV2.html new file mode 100644 index 00000000..34a7649f --- /dev/null +++ b/docs/apig/api-ref/ShowDetailsOfVpcChannelV2.html @@ -0,0 +1,1136 @@ + + +

Querying VPC Channel Details

+

Function

This API is used to query the details of a VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

VPC channel name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

port

+

Integer

+

Host port of the VPC channel.

+

Range: 1–65535.

+

balance_strategy

+

Integer

+

Distribution algorithm.

+
  • 1: Weighted round robin (WRR).
  • 2: Weighted least connections (WLC).
  • 3: Source hashing.
  • 4: URI hashing.
+

Default: 1

+

Enumeration values:

+
  • 1
  • 2
  • 3
  • 4
+

member_type

+

String

+

Member type of the VPC channel.

+
  • ip
  • ecs
+

Default: ecs

+

Enumeration values:

+
  • ip
  • ecs
+

type

+

Integer

+

VPC channel type. The default type is server.

+
  • 2: Server type.
  • 3: Microservice type.
+

Default: 2

+

Enumeration values:

+
  • 2
  • 3
+

dict_code

+

String

+

Dictionary code of the VPC channel.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

This parameter is currently not supported.

+

Minimum: 3

+

Maximum: 64

+

create_time

+

String

+

Time when the VPC channel is created.

+

id

+

String

+

VPC channel ID.

+

status

+

Integer

+

VPC channel status.

+
  • 1: normal
  • 2: abnormal
+

Enumeration values:

+
  • 1
  • 2
+

member_groups

+

Array of MemberGroupInfo objects

+

Backend server groups.

+

microservice_info

+

MicroServiceInfo object

+

Microservice information.

+

members

+

Array of VpcMemberInfo objects

+

Backend instances.

+

vpc_health_config

+

VpcHealthConfigInfo object

+

Health check details.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 MemberGroupInfo

Parameter

+

Type

+

Description

+

member_group_name

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

member_group_id

+

String

+

ID of the backend server group of the VPC channel.

+

create_time

+

String

+

Time when the backend server group is created.

+

update_time

+

String

+

Time when the backend server group is updated.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 MicroserviceLabel

Parameter

+

Type

+

Description

+

label_name

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 MicroServiceInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Microservice ID.

+

instance_id

+

String

+

Gateway ID.

+

service_type

+

String

+

Microservice type. Options:

+
  • CSE: CSE microservice registration center
  • CCE: CCE workload
+

Enumeration values:

+
  • CSE
  • CCE
+

cse_info

+

MicroServiceInfoCSE object

+

CSE microservice details.

+

cce_info

+

MicroServiceInfoCCE object

+

CCE microservice workload details.

+

update_time

+

String

+

Microservice update time.

+

create_time

+

String

+

Microservice creation time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 MicroServiceInfoCSE

Parameter

+

Type

+

Description

+

engine_id

+

String

+

Microservice engine ID.

+

Maximum: 64

+

service_id

+

String

+

Microservice ID.

+

Maximum: 64

+

engine_name

+

String

+

Microservice engine name.

+

service_name

+

String

+

Microservice name.

+

register_address

+

String

+

Registration center address.

+

cse_app_id

+

String

+

App to which the microservice belongs.

+

version

+

String

+

Microservice version, which has been discarded and is reflected in the version of the backend server group.

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 MicroServiceInfoCCE

Parameter

+

Type

+

Description

+

cluster_id

+

String

+

CCE cluster ID.

+

Maximum: 64

+

namespace

+

String

+

Namespace.

+

Maximum: 64

+

workload_type

+

String

+

Workload type.

+
  • deployment
  • statefulset
  • daemonset
+

Enumeration values:

+
  • deployment
  • statefulset
  • daemonset
+

app_name

+

String

+

App name. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_key

+

String

+

Service label key. Start with a letter or digit, and use only letters, digits, and these special characters: -_./:(). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_value

+

String

+

Service label value. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

cluster_name

+

String

+

CCE cluster name.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 VpcMemberInfo

Parameter

+

Type

+

Description

+

host

+

String

+

Backend server address.

+

This parameter is required when the member type is IP address.

+

Maximum: 64

+

weight

+

Integer

+

Weight.

+

The higher the weight is, the more requests a backend service will receive.

+

Minimum: 0

+

Maximum: 10000

+

is_backup

+

Boolean

+

Indicates whether the backend service is a standby node.

+

After you enable this function, the backend service serves as a standby node. It works only when all non-standby nodes are faulty.

+

This function is supported only when your gateway has been upgraded to the corresponding version. If your gateway does not support this function, contact technical support.

+

Default: false

+

member_group_name

+

String

+

Backend server group name. The server group facilitates backend service address modification.

+

status

+

Integer

+

Backend server status.

+
  • 1: available
  • 2: unavailable
+

Enumeration values:

+
  • 1
  • 2
+

port

+

Integer

+

Backend server port.

+

Minimum: 0

+

Maximum: 65535

+

ecs_id

+

String

+

Backend server ID.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

+

Maximum: 255

+

ecs_name

+

String

+

Backend server name.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

Maximum: 64

+

id

+

String

+

Backend instance ID.

+

vpc_channel_id

+

String

+

VPC channel ID.

+

create_time

+

String

+

Time when the backend server is added to the VPC channel.

+

member_group_id

+

String

+

Backend server group ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 VpcHealthConfigInfo

Parameter

+

Type

+

Description

+

protocol

+

String

+

Protocol for performing health checks on backend servers in the VPC channel.

+
  • TCP
  • HTTP
  • HTTPS
+

Enumeration values:

+
  • TCP
  • HTTP
  • HTTPS
+

path

+

String

+

Destination path for health checks. This parameter is required if protocol is set to http or https.

+

method

+

String

+

Request method for health checks.

+

Default: GET

+

Enumeration values:

+
  • GET
  • HEAD
+

port

+

Integer

+

Destination port for health checks. If this parameter is not specified or set to 0, the host port of the VPC channel is used.

+

If this parameter is set to a non-zero value, the corresponding port is used for health checks.

+

Minimum: 0

+

Maximum: 65535

+

threshold_normal

+

Integer

+

Healthy threshold. It refers to the number of consecutive successful checks required for a backend server to be considered healthy.

+

Minimum: 1

+

Maximum: 10

+

threshold_abnormal

+

Integer

+

Unhealthy threshold, which refers to the number of consecutive failed checks required for a backend server to be considered unhealthy.

+

Minimum: 1

+

Maximum: 10

+

time_interval

+

Integer

+

Interval between consecutive checks. Unit: s. The value must be greater than the value of timeout.

+

Minimum: 1

+

Maximum: 300

+

http_code

+

String

+

Response codes for determining a successful HTTP response. The value can be any integer within 100–599 in one of the following formats:

+
  • Multiple values, for example, 200,201,202
  • Range, for example, 200-299
  • Multiple values and ranges, for example, 201,202,210-299. This parameter is required if protocol is set to http.
+

enable_client_ssl

+

Boolean

+

Indicates whether to enable two-way authentication. If this function is enabled, the certificate specified in the backend_client_certificate configuration item of the gateway is used.

+

Default: false

+

status

+

Integer

+

Health check result.

+
  • 1: available
  • 2: unavailable
+

Enumeration values:

+
  • 1
  • 2
+

timeout

+

Integer

+

Timeout for determining whether a health check fails. Unit: s. The value must be less than the value of time_interval.

+

Minimum: 1

+

Maximum: 30

+

vpc_channel_id

+

String

+

VPC channel ID.

+

id

+

String

+

Health check ID.

+

create_time

+

String

+

Creation time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 14 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowPlugin.html b/docs/apig/api-ref/ShowPlugin.html new file mode 100644 index 00000000..20652edd --- /dev/null +++ b/docs/apig/api-ref/ShowPlugin.html @@ -0,0 +1,401 @@ + + +

Querying Plug-in Details

+

Function

This API is used to query the details of a plug-in.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

plugin_id

+

Yes

+

String

+

Plug-in ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

plugin_id

+

String

+

Plug-in ID.

+

plugin_name

+

String

+

Plug-in name. Start with a letter, and include only letters, digits, hyphens (-), and underscores(_). (3 to 255 characters)

+

plugin_type

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.

    +
  • set_resp_headers: HTTP response header management.

    +
  • kafka_log: Kafka log push.

    +
  • breaker: Circuit breaker.

    +
  • rate_limit: Request throttling.

    +
  • third_auth: Third-party authentication.

    +
+

Enumeration values:

+
  • cors

    +
  • set_resp_headers

    +
  • kafka_log

    +
  • breaker

    +
  • rate_limit

    +
  • third_auth

    +
+

plugin_scope

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global

    +
+

plugin_content

+

String

+

Plug-in content in JSON format. For details, see the model definition.

+
  • CorsPluginContent

    +
  • SetRespHeadersContent

    +
  • KafkaLogContent

    +
  • BreakerContent

    +
  • RateLimitContent

    +
  • ThirdAuthContent

    +
+

Maximum: 65535

+

remark

+

String

+

Plug-in description, with a maximum of 255 characters.

+

Maximum: 255

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "plugin_id" : "5b729aa252764739b3s237ef0d66dc63",
+  "plugin_name" : "CORS",
+  "plugin_type" : "cors",
+  "plugin_scope" : "global",
+  "plugin_content" : "{\"allow_origin\": \"*\",\"allow_methods\": \"GET,POST,PUT\",\"allow_headers\": \"Content-Type,Accept,Accept-Ranges,Cache-Control\",\"expose_headers\": \"X-Request-Id,X-Apig-Latency\",\"max_age\": 172800,\"allow_credentials\": true}",
+  "remark" : "Cross-origin resource sharing",
+  "create_time" : "2022-11-02T12:31:23.353Z",
+  "update_time" : "2022-11-02T12:31:23.353Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:instance_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3068",
+  "error_msg" : "Plugin b294018ee0554156a875b3513e02e5b9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/ShowRestrictionOfInstanceV2.html b/docs/apig/api-ref/ShowRestrictionOfInstanceV2.html new file mode 100644 index 00000000..a4f755ef --- /dev/null +++ b/docs/apig/api-ref/ShowRestrictionOfInstanceV2.html @@ -0,0 +1,279 @@ + + +

Querying Gateway Constraints

+

Function

This API is used to query the constraints of a gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

GET /v2/{project_id}/apigw/instances/{instance_id}/restriction

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + +
Table 3 Response body parameters

Parameter

+

Type

+

Description

+

restrict_cidrs

+

Array of strings

+

CIDR block list of the restricted IP network segment.

+

resource_subnet_cidr

+

String

+

CIDR block of the IP network segment of the resource tenant.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

None

+
+

Example Responses

Status code: 200

+

OK

+
{
+  "restrict_cidrs" : [ "127.0.0.1/32", "192.168.0.1/24" ],
+  "resource_subnet_cidr" : "192.168.0.1/24"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/SignatureKeyBindingManagement.html b/docs/apig/api-ref/SignatureKeyBindingManagement.html new file mode 100644 index 00000000..7b1d37e8 --- /dev/null +++ b/docs/apig/api-ref/SignatureKeyBindingManagement.html @@ -0,0 +1,24 @@ + + +

Binding/Unbinding Signature Keys

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/SignatureKeyManagement.html b/docs/apig/api-ref/SignatureKeyManagement.html new file mode 100644 index 00000000..1314bc01 --- /dev/null +++ b/docs/apig/api-ref/SignatureKeyManagement.html @@ -0,0 +1,22 @@ + + +

Signature Key Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/SpecialThrottlingSetting.html b/docs/apig/api-ref/SpecialThrottlingSetting.html new file mode 100644 index 00000000..f1c99048 --- /dev/null +++ b/docs/apig/api-ref/SpecialThrottlingSetting.html @@ -0,0 +1,22 @@ + + +

Excluded Request Throttling Configuration

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/SslCertificateManagement.html b/docs/apig/api-ref/SslCertificateManagement.html new file mode 100644 index 00000000..d01872d9 --- /dev/null +++ b/docs/apig/api-ref/SslCertificateManagement.html @@ -0,0 +1,34 @@ + + +

SSL Certificate Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ThrottlingPolicyBinding.html b/docs/apig/api-ref/ThrottlingPolicyBinding.html new file mode 100644 index 00000000..2ea47de4 --- /dev/null +++ b/docs/apig/api-ref/ThrottlingPolicyBinding.html @@ -0,0 +1,26 @@ + + +

Binding/Unbinding Request Throttling Policies

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/ThrottlingPolicyManagement.html b/docs/apig/api-ref/ThrottlingPolicyManagement.html new file mode 100644 index 00000000..8a729a89 --- /dev/null +++ b/docs/apig/api-ref/ThrottlingPolicyManagement.html @@ -0,0 +1,24 @@ + + +

Request Throttling Policy Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/UpdateAclStrategyV2.html b/docs/apig/api-ref/UpdateAclStrategyV2.html new file mode 100644 index 00000000..ab5eb7d5 --- /dev/null +++ b/docs/apig/api-ref/UpdateAclStrategyV2.html @@ -0,0 +1,441 @@ + + +

Modifying an Access Control Policy

+

Function

This API is used to modify an access control policy. Only attributes acl_name, acl_type, and acl_value can be modified.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/acls/{acl_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

acl_id

+

Yes

+

String

+

Access control policy ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

acl_name

+

Yes

+

String

+

Access control policy name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

acl_type

+

Yes

+

String

+

Type.

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

Enumeration values:

+
  • PERMIT

    +
  • DENY

    +
+

acl_value

+

Yes

+

String

+

One or more objects from which the access will be controlled. Separate multiple objects with commas.

+
  • If entity_type is set to IP, enter up to 100 IP addresses.

    +
  • If entity_type is set to DOMAIN, enter account names. Each account name can contain up to 64 ASCII characters except commas (,). Do not use only digits. The total length cannot exceed 1024 characters.

    +
  • If entity_type is set to DOMAIN_ID, enter account IDs. For details about how to obtain an account ID, see "Appendix" > "Obtaining an Account Name and Account ID" in this document.

    +
+

entity_type

+

Yes

+

String

+

Object type.

+
  • IP: IP address.

    +
  • DOMAIN: Account name.

    +
  • DOMAIN_ID: Account ID.

    +
+

Enumeration values:

+
  • IP

    +
  • DOMAIN

    +
  • DOMAIN_ID

    +
+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

acl_name

+

String

+

Name.

+

acl_type

+

String

+

Type.

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

acl_value

+

String

+

Access control objects.

+

entity_type

+

String

+

Object type.

+
  • IP

    +
  • DOMAIN

    +
  • DOMAIN_ID

    +
+

id

+

String

+

ID.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Updating an access control policy to allow access from specified IP addresses

+
{
+  "acl_name" : "acl_demo",
+  "entity_type" : "IP",
+  "acl_type" : "PERMIT",
+  "acl_value" : "192.168.1.5,192.168.10.1"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "id" : "7eb619ecf2a24943b099833cd24a01ba",
+  "acl_name" : "acl_demo",
+  "entity_type" : "IP",
+  "acl_type" : "PERMIT",
+  "acl_value" : "192.168.1.5,192.168.10.1",
+  "update_time" : "2020-08-04T08:54:55.975856802Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:acl_type. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3006",
+  "error_msg" : "Access control policy 7eb619ecf2a24943b099833cd24a01ba does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateApiGroupV2.html b/docs/apig/api-ref/UpdateApiGroupV2.html new file mode 100644 index 00000000..806afa7d --- /dev/null +++ b/docs/apig/api-ref/UpdateApiGroupV2.html @@ -0,0 +1,576 @@ + + +

Modifying an API Group

+

Function

This API is used to modify the attributes of an API group. Only the name and remark attributes of an API group can be modified.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

API group name.

+

The value can contain 3 to 255 characters, including letters, digits, and special characters (-_./():). It must start with a letter or digit.

+

Minimum: 3

+

Maximum: 255

+

remark

+

No

+

String

+

API group description.

+

Maximum: 1000

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

API group name.

+

status

+

Integer

+

Status.

+
  • 1: valid
+

Enumeration values:

+
  • 1
+

sl_domain

+

String

+

Subdomain name that APIG automatically allocates to the API group.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Last modification time.

+

on_sell_status

+

Integer

+

Indicates whether the API group has been listed on KooGallery.

+
  • 1: listed
  • 2: not listed
  • 3: under review
+

Not supported currently.

+

url_domains

+

Array of UrlDomain objects

+

Independent domain names bound to the API group.

+

sl_domain_access_enabled

+

Boolean

+

Whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+

sl_domains

+

Array of strings

+

Automatically allocated subdomain names.

+

remark

+

String

+

Description.

+

call_limits

+

Integer

+

Total number of times all APIs in the API group can be accessed. Consider the payload capacity of the backend service when setting this parameter. By default, there is no limit on the number of API calls.

+

Currently, this parameter is not supported.

+

time_interval

+

Integer

+

Period of time for limiting the number of API calls.

+

Currently, this parameter is not supported.

+

time_unit

+

String

+

Time unit for limiting the number of API calls.

+

Currently, this parameter is not supported.

+

is_default

+

Integer

+

Indicates whether the API group is the default group.

+
  • 1: Yes
  • 2: No
+

version

+

String

+

Group version.

+
  • V1: global group
  • V2: application-level group
+

The default value is V1. This parameter is not supported currently.

+

roma_app_id

+

String

+

ID of the integration application to which the API group belongs.

+

This parameter is required when the group version is V2.

+

Currently, this parameter is not supported.

+

roma_app_name

+

String

+

Name of the integration application to which the API group belongs.

+

Currently, this parameter is not supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 UrlDomain

Parameter

+

Type

+

Description

+

id

+

String

+

Domain ID.

+

domain

+

String

+

Domain name.

+

cname_status

+

Integer

+

CNAME resolution status of the domain name.

+
  • 1: not resolved
  • 2: resolving
  • 3: resolved
  • 4: resolution failed
+

ssl_id

+

String

+

SSL certificate ID.

+

ssl_name

+

String

+

SSL certificate name.

+

min_ssl_version

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1
  • TLSv1.2
+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying an API group

+
{
+  "name" : "api_group_001",
+  "remark" : "API group 1"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "update_time" : "2020-07-31T06:55:55Z.866474185Z",
+  "name" : "api_group_001",
+  "on_sell_status" : 2,
+  "remark" : "API group 1",
+  "sl_domains" : [ "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com", "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.cn" ],
+  "sl_domain" : "c77f5e81d9cb4424bf704ef2b0ac7600.apic.****.com",
+  "id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "register_time" : "2020-07-31T06:55:55Z",
+  "status" : 1,
+  "is_default" : 2,
+  "sl_domain_access_enabled" : true
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateApiV2.html b/docs/apig/api-ref/UpdateApiV2.html new file mode 100644 index 00000000..1f3112e3 --- /dev/null +++ b/docs/apig/api-ref/UpdateApiV2.html @@ -0,0 +1,3726 @@ + + +

Modifying an API

+

Function

This API is used to modify the information about an API, including its backend information.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

api_id

+

Yes

+

String

+

API ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

API name.

+

It can contain 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Yes

+

Integer

+

API type.

+
  • 1: public API

    +
  • 2: private API

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

version

+

No

+

String

+

API version.

+

Maximum: 16

+

req_protocol

+

Yes

+

String

+

API request protocol:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
  • GRPCS

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
  • GRPCS

    +
+

req_method

+

Yes

+

String

+

API request method. If the request protocol is set to GRPC, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

Yes

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

Yes

+

String

+

API authentication mode. Options:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER: custom authentication. When auth_type is set to AUTHORIZER, the authorizer_id field is mandatory.

    +
+

Custom authentication is unavailable if the request protocol is set to GRPC.

+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

auth_opt

+

No

+

AuthOpt object

+

Security authentication parameter.

+

cors

+

No

+

Boolean

+

Indicates whether CORS is supported.

+
  • TRUE: supported

    +
  • FALSE: not supported

    +
+

Default: false

+

Enumeration values:

+
  • true

    +
  • false

    +
+

match_mode

+

No

+

String

+

API matching mode:

+
  • SWA: Prefix match

    +
  • NORMAL: Exact match Default value: NORMAL

    +
+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

backend_type

+

Yes

+

String

+

Backend type. Options:

+
  • HTTP: web backend

    +
  • FUNCTION: FunctionGraph backend. When backend_type is set to FUNCTION, the func_info field is mandatory.

    +
  • MOCK: mock backend. When backend_type is set to MOCK, the mock_info field is mandatory.

    +
  • GRPC: gRPC backend.

    +
+

Enumeration values:

+
  • HTTP

    +
  • FUNCTION

    +
  • MOCK

    +
  • GRPC

    +
+

remark

+

No

+

String

+

API description. It cannot exceed 255 characters.

+

group_id

+

Yes

+

String

+

ID of the API group to which the API belongs.

+

body_remark

+

No

+

String

+

API request body, which can be an example request body, media type, or parameters. Ensure that the request body does not exceed 20,480 characters.

+

result_normal_sample

+

No

+

String

+

Example response for a successful request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

result_failure_sample

+

No

+

String

+

Example response for a failed request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

tags

+

No

+

Array of strings

+

Tag.

+

Use letters, digits, and special characters (-*#%.:_) and start with a letter.

+

By default, 10 tags are supported. To increase the quota, contact technical support to modify the API_TAG_NUM_LIMIT configuration.

+

Minimum: 1

+

Maximum: 128

+

response_id

+

No

+

String

+

Group response ID.

+

roma_app_id

+

No

+

String

+

Integration application ID.

+

Currently, this parameter is not supported.

+

domain_name

+

No

+

String

+

Custom domain name bound to the API.

+

Currently, this parameter is not supported.

+

tag

+

No

+

String

+

Tag.

+

This field will be deprecated. You can use the tags field instead.

+

content_type

+

No

+

String

+

Request content type:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

Coming soon.

+

Enumeration values:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

mock_info

+

No

+

ApiMockCreate object

+

Mock backend details.

+

func_info

+

No

+

ApiFuncCreate object

+

FunctionGraph backend details.

+

req_params

+

No

+

Array of ReqParamBase objects

+

Request parameters. This is unavailable if the request protocol is set to GRPC.

+

backend_params

+

No

+

Array of BackendParamBase objects

+

Backend parameters. This is unavailable if the request protocol is set to GRPC.

+

policy_mocks

+

No

+

Array of ApiPolicyMockCreate objects

+

Mock backend policies.

+

policy_functions

+

No

+

Array of ApiPolicyFunctionCreate objects

+

FunctionGraph backend policies.

+

backend_api

+

No

+

BackendApiCreate object

+

Web backend details.

+

policy_https

+

No

+

Array of ApiPolicyHttpCreate objects

+

Web backend policies.

+
+
+ +
+ + + + + + + + + + + +
Table 4 AuthOpt

Parameter

+

Mandatory

+

Type

+

Description

+

app_code_auth_type

+

No

+

String

+

Indicates whether AppCode authentication is enabled. This parameter is valid only if auth_type is set to App. The default value is DISABLE.

+
  • DISABLE: AppCode authentication is disabled.

    +
  • HEADER: AppCode authentication is enabled and the AppCode is located in the header.

    +
+

Default: DISABLE

+

Enumeration values:

+
  • DISABLE

    +
  • HEADER

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 ApiMockCreate

Parameter

+

Mandatory

+

Type

+

Description

+

remark

+

No

+

String

+

Description. It cannot exceed 255 characters.

+

result_content

+

No

+

String

+

Response.

+

version

+

No

+

String

+

Function version. It cannot exceed 64 characters.

+

authorizer_id

+

No

+

String

+

Backend custom authorizer ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 ApiFuncCreate

Parameter

+

Mandatory

+

Type

+

Description

+

function_urn

+

Yes

+

String

+

Function URN.

+

remark

+

No

+

String

+

Description. It cannot exceed 255 characters.

+

invocation_type

+

Yes

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

Yes

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

No

+

String

+

Function version.

+

If both a function alias URN and version are passed, only the alias URN will be used.

+

Maximum: 64

+

alias_urn

+

No

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Yes

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

authorizer_id

+

No

+

String

+

Backend custom authorizer ID.

+

req_protocol

+

No

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 ReqParamBase

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Parameter name.

+

The parameter name can contain 1 to 32 characters and must start with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

type

+

Yes

+

String

+

Parameter type.

+

Enumeration values:

+
  • STRING

    +
  • NUMBER

    +
+

location

+

Yes

+

String

+

Parameter location.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

default_value

+

No

+

String

+

Default value.

+

sample_value

+

No

+

String

+

Example value.

+

required

+

No

+

Integer

+

Indicates whether the parameter is required. 1: yes 2: no

+

The value of this parameter is 1 if Location is set to PATH, and 2 if Location is set to another value.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

valid_enable

+

No

+

Integer

+

Indicates whether validity check is enabled.

+
  • 1: enabled

    +
  • 2: disabled

    +
+

Default: 2

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

remark

+

No

+

String

+

Description. It cannot exceed 255 characters.

+

enumerations

+

No

+

String

+

Enumerated value.

+

min_num

+

No

+

Integer

+

Minimum value.

+

This parameter is valid when type is set to NUMBER.

+

max_num

+

No

+

Integer

+

Maximum value.

+

This parameter is valid when type is set to NUMBER.

+

min_size

+

No

+

Integer

+

Minimum length.

+

This parameter is valid when type is set to STRING.

+

max_size

+

No

+

Integer

+

Maximum length.

+

This parameter is valid when type is set to STRING.

+

regular

+

No

+

String

+

Regular expression validation rule.

+

Currently, this parameter is not supported.

+

json_schema

+

No

+

String

+

JSON validation rule.

+

Currently, this parameter is not supported.

+

pass_through

+

No

+

Integer

+

Indicates whether to transparently transfer the parameter. 1: yes 2: no

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 8 ApiPolicyMockCreate

Parameter

+

Mandatory

+

Type

+

Description

+

result_content

+

No

+

String

+

Response.

+

effect_mode

+

Yes

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

Yes

+

String

+

Backend name. It must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

No

+

Array of BackendParamBase objects

+

Backend parameters. This is unavailable for the GRPC backend.

+

conditions

+

Yes

+

Array of ApiConditionBase objects

+

Policy conditions.

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 9 ApiPolicyFunctionCreate

Parameter

+

Mandatory

+

Type

+

Description

+

function_urn

+

Yes

+

String

+

Function URN.

+

invocation_type

+

Yes

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

Yes

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

No

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

alias_urn

+

No

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

No

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

req_protocol

+

No

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

effect_mode

+

Yes

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

Yes

+

String

+

Backend name. It must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

No

+

Array of BackendParamBase objects

+

Backend parameters. This is unavailable for the GRPC backend.

+

conditions

+

Yes

+

Array of ApiConditionBase objects

+

Policy conditions.

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 BackendApiCreate

Parameter

+

Mandatory

+

Type

+

Description

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

url_domain

+

No

+

String

+

Backend service address.

+

A backend service address consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Host name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

Yes

+

String

+

Request protocol. You can select GRPCS for the GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

remark

+

No

+

String

+

Description. It cannot exceed 255 characters.

+

req_method

+

Yes

+

String

+

Request method. For the GRPC backend, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

version

+

No

+

String

+

Web backend version, which can contain a maximum of 16 characters.

+

req_uri

+

Yes

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Yes

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

enable_client_ssl

+

No

+

Boolean

+

Indicates whether to enable two-way authentication.

+

retry_count

+

No

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

vpc_channel_info

+

No

+

ApiBackendVpcReq object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

No

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 ApiPolicyHttpCreate

Parameter

+

Mandatory

+

Type

+

Description

+

url_domain

+

No

+

String

+

Endpoint of the policy backend.

+

An endpoint consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Domain name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

Yes

+

String

+

Request protocol. Options include HTTP, HTTPS, and GRPCS. You can select GRPCS for a GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

req_method

+

Yes

+

String

+

Request method. Options include GET, POST, PUT, DELETE, HEAD, PATCH, OPTIONS, and ANY. This is fixed to POST for the GRPC backend.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

Yes

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

No

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

retry_count

+

No

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

effect_mode

+

Yes

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

Yes

+

String

+

Backend name. It must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

No

+

Array of BackendParamBase objects

+

Backend parameters. This is unavailable for the GRPC backend.

+

conditions

+

Yes

+

Array of ApiConditionBase objects

+

Policy conditions.

+

authorizer_id

+

No

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

vpc_channel_info

+

No

+

ApiBackendVpcReq object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

No

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 BackendParamBase

Parameter

+

Mandatory

+

Type

+

Description

+

origin

+

Yes

+

String

+

Parameter type.

+
  • REQUEST: backend parameter

    +
  • CONSTANT: constant parameter

    +
  • SYSTEM: system parameter

    +
+

Enumeration values:

+
  • REQUEST

    +
  • CONSTANT

    +
  • SYSTEM

    +
+

name

+

Yes

+

String

+

Parameter name.

+

The parameter name must start with a letter and can only contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Minimum: 1

+

Maximum: 32

+

remark

+

No

+

String

+

Description, which can contain a maximum of 255 characters.

+

location

+

Yes

+

String

+

Parameter location. The value can be PATH, QUERY, or HEADER.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

value

+

Yes

+

String

+

Parameter value, which can contain a maximum of 255 characters.

+

If the origin type is REQUEST, the value of this parameter is the parameter name in req_params.

+

If the origin type is CONSTANT, the value is a constant.

+

If the origin type is SYSTEM, the value is a system parameter name. System parameters include gateway parameters, frontend authentication parameters, and backend authentication parameters. You can set the frontend or backend authentication parameters after enabling custom frontend or backend authentication.

+

The gateway parameters are as follows:

+
  • $context.sourceIp: source IP address of the API caller.

    +
  • $context.stage: deployment environment in which the API is called.

    +
  • $context.apiId: API ID.

    +
  • $context.appId: ID of the app used by the API caller.

    +
  • $context.requestId: request ID generated when the API is called.

    +
  • $context.serverAddr: address of the gateway server.

    +
  • $context.serverName: name of the gateway server.

    +
  • $context.handleTime: time when the API request is processed.

    +
  • $context.providerAppId: ID of the app used by the API owner. This parameter is currently not supported.

    +
+

Frontend authentication parameter: prefixed with "$context.authorizer.frontend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.frontend.aaa".

+

Backend authentication parameter: prefixed with "$context.authorizer.backend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.backend.aaa".

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 13 ApiConditionBase

Parameter

+

Mandatory

+

Type

+

Description

+

req_param_name

+

No

+

String

+

Input parameter name. This parameter is required if the policy type is param.

+

sys_param_name

+

No

+

String

+

Name of a built-in gateway parameter. This parameter is required if the policy type is system. The following parameters are supported:

+
  • req_path: request path. For example, /a/b.

    +
  • req_method: request method. For example, GET.

    +
  • reqPath: request path, which is discarded. For example, /a/b.

    +
  • reqMethod: request method, which is discarded. For example, GET.

    +
+

Enumeration values:

+
  • req_path

    +
  • req_method

    +
  • reqPath

    +
  • reqMethod

    +
+

cookie_param_name

+

No

+

String

+

COOKIE parameter name. This parameter is required if the policy type is cookie.

+

Minimum: 0

+

Maximum: 255

+

frontend_authorizer_param_name

+

No

+

String

+

System parameter: frontend authentication parameter name. This parameter is mandatory when the policy type is frontend_authorizer. The frontend authentication parameter name is prefixed with $context.authorizer.frontend. For example, if the frontend authentication parameter name is user_name, the name with the prefix will be $context.authorizer.frontend.user_name.

+

condition_type

+

No

+

String

+

Policy condition.

+
  • exact: Exact match

    +
  • enum: Enumeration

    +
  • pattern: Regular expression

    +
+

This parameter is required when the policy type is param, system, cookie, or frontend_authorizer.

+

Enumeration values:

+
  • exact

    +
  • enum

    +
  • pattern

    +
+

condition_origin

+

Yes

+

String

+

Policy type

+
  • param: parameter

    +
  • source: source IP address

    +
  • system: system parameter - gateway built-in parameter

    +
  • cookie: COOKIE parameter

    +
  • frontend_authorizer: system parameter - frontend authentication parameter

    +
+

Enumeration values:

+
  • param

    +
  • source

    +
  • system

    +
  • cookie

    +
  • frontend_authorizer

    +
+

condition_value

+

Yes

+

String

+

Policy value. This parameter is required when the policy type is param, source, cookie, or frontend_authorizer.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 14 ApiBackendVpcReq

Parameter

+

Mandatory

+

Type

+

Description

+

vpc_channel_proxy_host

+

No

+

String

+

Proxy host.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 15 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

API name.

+

It can contain 3 to 255 characters, starting with a letter or digit. Only letters, digits, and these special characters are allowed: -_./:()

+

type

+

Integer

+

API type.

+
  • 1: public API

    +
  • 2: private API

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

version

+

String

+

API version.

+

Maximum: 16

+

req_protocol

+

String

+

API request protocol:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH: Both HTTP and HTTPS are supported.

    +
  • GRPCS

    +
+

Default: HTTPS

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • BOTH

    +
  • GRPCS

    +
+

req_method

+

String

+

API request method. If the request protocol is set to GRPC, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+
NOTE:

The address must comply with the URI specifications.

+
+

auth_type

+

String

+

API authentication mode. Options:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER: custom authentication. When auth_type is set to AUTHORIZER, the authorizer_id field is mandatory.

    +
+

Custom authentication is unavailable if the request protocol is set to GRPC.

+

Enumeration values:

+
  • NONE

    +
  • APP

    +
  • IAM

    +
  • AUTHORIZER

    +
+

auth_opt

+

AuthOpt object

+

Security authentication parameter.

+

cors

+

Boolean

+

Indicates whether CORS is supported.

+
  • TRUE: supported

    +
  • FALSE: not supported

    +
+

Default: false

+

Enumeration values:

+
  • true

    +
  • false

    +
+

match_mode

+

String

+

API matching mode:

+
  • SWA: Prefix match

    +
  • NORMAL: Exact match Default value: NORMAL

    +
+

Enumeration values:

+
  • SWA

    +
  • NORMAL

    +
+

backend_type

+

String

+

Backend type. Options:

+
  • HTTP: web backend

    +
  • FUNCTION: FunctionGraph backend. When backend_type is set to FUNCTION, the func_info field is mandatory.

    +
  • MOCK: mock backend. When backend_type is set to MOCK, the mock_info field is mandatory.

    +
  • GRPC: gRPC backend.

    +
+

Enumeration values:

+
  • HTTP

    +
  • FUNCTION

    +
  • MOCK

    +
  • GRPC

    +
+

remark

+

String

+

API description. It cannot exceed 255 characters.

+

group_id

+

String

+

ID of the API group to which the API belongs.

+

body_remark

+

String

+

API request body, which can be an example request body, media type, or parameters. Ensure that the request body does not exceed 20,480 characters.

+

result_normal_sample

+

String

+

Example response for a successful request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

result_failure_sample

+

String

+

Example response for a failed request. Ensure that the response does not exceed 20,480 characters.

+

This is unavailable if the request protocol is set to GRPC.

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

tags

+

Array of strings

+

Tag.

+

Use letters, digits, and special characters (-*#%.:_) and start with a letter.

+

By default, 10 tags are supported. To increase the quota, contact technical support to modify the API_TAG_NUM_LIMIT configuration.

+

Minimum: 1

+

Maximum: 128

+

response_id

+

String

+

Group response ID.

+

roma_app_id

+

String

+

Integration application ID.

+

Currently, this parameter is not supported.

+

domain_name

+

String

+

Custom domain name bound to the API.

+

Currently, this parameter is not supported.

+

tag

+

String

+

Tag.

+

This field will be deprecated. You can use the tags field instead.

+

content_type

+

String

+

Request content type:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

Coming soon.

+

Enumeration values:

+
  • application/json

    +
  • application/xml

    +
  • multipart/form-data

    +
  • text/plain

    +
+

id

+

String

+

API ID.

+

status

+

Integer

+

App status.

+
  • 1: valid

    +
+

arrange_necessary

+

Integer

+

Indicates whether to enable orchestration.

+

register_time

+

String

+

Time when the API is registered.

+

update_time

+

String

+

Time when the API was last modified.

+

group_name

+

String

+

Name of the API group to which the API belongs.

+

group_version

+

String

+

Version of the API group to which the API belongs.

+

The default value is V1. Other versions are not supported.

+

Default: V1

+

run_env_id

+

String

+

ID of the environment in which the API has been published.

+

Separate multiple environment IDs with vertical bars (|).

+

run_env_name

+

String

+

Name of the environment in which the API has been published.

+

Separate multiple environment names with vertical bars (|).

+

publish_id

+

String

+

Publication record ID.

+

Separate multiple publication record IDs with vertical bars (|).

+

publish_time

+

String

+

Publication time.

+

Separate the time of multiple publication records with vertical bars (|).

+

roma_app_name

+

String

+

Name of the integration application to which the API belongs.

+

Currently, this parameter is not supported.

+

ld_api_id

+

String

+

ID of the corresponding custom backend API.

+

Currently, this parameter is not supported.

+

backend_api

+

BackendApi object

+

Web backend details.

+

api_group_info

+

ApiGroupCommonInfo object

+

API group information.

+

func_info

+

ApiFunc object

+

FunctionGraph backend details.

+

mock_info

+

ApiMock object

+

Mock backend details.

+

req_params

+

Array of ReqParam objects

+

Request parameters.

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

policy_functions

+

Array of ApiPolicyFunctionResp objects

+

FunctionGraph backend policies.

+

policy_mocks

+

Array of ApiPolicyMockResp objects

+

Mock backend policies.

+

policy_https

+

Array of ApiPolicyHttpResp objects

+

Web backend policies.

+
+
+ +
+ + + + + + + + + +
Table 16 AuthOpt

Parameter

+

Type

+

Description

+

app_code_auth_type

+

String

+

Indicates whether AppCode authentication is enabled. This parameter is valid only if auth_type is set to App. The default value is DISABLE.

+
  • DISABLE: AppCode authentication is disabled.

    +
  • HEADER: AppCode authentication is enabled and the AppCode is located in the header.

    +
+

Default: DISABLE

+

Enumeration values:

+
  • DISABLE

    +
  • HEADER

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 17 BackendApi

Parameter

+

Type

+

Description

+

authorizer_id

+

String

+

Custom authorizer ID. This is unavailable if the request protocol is set to GRPC.

+

url_domain

+

String

+

Backend service address.

+

A backend service address consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Host name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

String

+

Request protocol. You can select GRPCS for the GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

req_method

+

String

+

Request method. For the GRPC backend, the request method is fixed to POST.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

version

+

String

+

Web backend version, which can contain a maximum of 16 characters.

+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

enable_client_ssl

+

Boolean

+

Indicates whether to enable two-way authentication.

+

retry_count

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

id

+

String

+

ID.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

register_time

+

String

+

Registration time.

+

update_time

+

String

+

Update time.

+

vpc_channel_info

+

VpcInfo object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 18 ApiGroupCommonInfo

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

API group name.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

sl_domain

+

String

+

Subdomain name that APIG automatically allocates to the API group.

+

register_time

+

String

+

Creation time.

+

update_time

+

String

+

Last modification time.

+

on_sell_status

+

Integer

+

Indicates whether the API group has been listed on KooGallery.

+
  • 1: listed

    +
  • 2: not listed

    +
  • 3: under review

    +
+

Not supported currently.

+

url_domains

+

Array of UrlDomain objects

+

Independent domain names bound to the API group.

+

sl_domain_access_enabled

+

Boolean

+

Whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 19 UrlDomain

Parameter

+

Type

+

Description

+

id

+

String

+

Domain ID.

+

domain

+

String

+

Domain name.

+

cname_status

+

Integer

+

CNAME resolution status of the domain name.

+
  • 1: not resolved

    +
  • 2: resolving

    +
  • 3: resolved

    +
  • 4: resolution failed

    +
+

ssl_id

+

String

+

SSL certificate ID.

+

ssl_name

+

String

+

SSL certificate name.

+

min_ssl_version

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1

    +
  • TLSv1.2

    +
+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 20 ApiFunc

Parameter

+

Type

+

Description

+

function_urn

+

String

+

Function URN.

+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

invocation_type

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

String

+

Function version.

+

If both a function alias URN and version are passed, only the alias URN will be used.

+

Maximum: 64

+

alias_urn

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

req_protocol

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

id

+

String

+

ID.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 21 ApiMock

Parameter

+

Type

+

Description

+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

result_content

+

String

+

Response.

+

version

+

String

+

Function version. It cannot exceed 64 characters.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

id

+

String

+

ID.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Backend service status.

+
  • 1: valid

    +
+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 22 ReqParam

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

The parameter name can contain 1 to 32 characters and must start with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

type

+

String

+

Parameter type.

+

Enumeration values:

+
  • STRING

    +
  • NUMBER

    +
+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

default_value

+

String

+

Default value.

+

sample_value

+

String

+

Example value.

+

required

+

Integer

+

Indicates whether the parameter is required. 1: yes 2: no

+

The value of this parameter is 1 if Location is set to PATH, and 2 if Location is set to another value.

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

valid_enable

+

Integer

+

Indicates whether validity check is enabled.

+
  • 1: enabled

    +
  • 2: disabled

    +
+

Default: 2

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

remark

+

String

+

Description. It cannot exceed 255 characters.

+

enumerations

+

String

+

Enumerated value.

+

min_num

+

Integer

+

Minimum value.

+

This parameter is valid when type is set to NUMBER.

+

max_num

+

Integer

+

Maximum value.

+

This parameter is valid when type is set to NUMBER.

+

min_size

+

Integer

+

Minimum length.

+

This parameter is valid when type is set to STRING.

+

max_size

+

Integer

+

Maximum length.

+

This parameter is valid when type is set to STRING.

+

regular

+

String

+

Regular expression validation rule.

+

Currently, this parameter is not supported.

+

json_schema

+

String

+

JSON validation rule.

+

Currently, this parameter is not supported.

+

pass_through

+

Integer

+

Indicates whether to transparently transfer the parameter. 1: yes 2: no

+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

id

+

String

+

Parameter ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 23 ApiPolicyFunctionResp

Parameter

+

Type

+

Description

+

function_urn

+

String

+

Function URN.

+

invocation_type

+

String

+

Invocation mode.

+
  • async: asynchronous

    +
  • sync: synchronous

    +
+

Enumeration values:

+
  • async

    +
  • sync

    +
+

network_type

+

String

+

Function network architecture.

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

version

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

alias_urn

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. If the function network architecture is set to V1, the maximum timeout is 60,000. If the network architecture is set to V2, the maximum timeout is 600,000 and can be modified by using the gateway parameter backend_timeout.

+

Unit: ms.

+

Minimum: 1

+

req_protocol

+

String

+

Backend request protocol of a function. The value can be HTTPS (default) or GRPCS (available when the frontend request protocol is GRPCS).

+

Default: HTTPS

+

Enumeration values:

+
  • HTTPS

    +
  • GRPCS

    +
+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 24 ApiPolicyMockResp

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

result_content

+

String

+

Response.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 25 ApiPolicyHttpResp

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

effect_mode

+

String

+

Effective mode of the backend policy.

+
  • ALL: All conditions are met.

    +
  • ANY: Any condition is met.

    +
+

Enumeration values:

+
  • ALL

    +
  • ANY

    +
+

name

+

String

+

Backend name, which must start with a letter and can contain letters, digits, and underscores (_).

+

Minimum: 3

+

Maximum: 64

+

backend_params

+

Array of BackendParam objects

+

Backend parameters.

+

conditions

+

Array of CoditionResp objects

+

Policy conditions.

+

authorizer_id

+

String

+

Backend custom authorizer ID.

+

url_domain

+

String

+

Endpoint of the policy backend.

+

An endpoint consists of a domain name or IP address and a port number, with not more than 255 characters. It must be in the format "Domain name:Port number", for example, apig.example.com:7443. If the port number is not specified, the default HTTPS port 443 or the default HTTP port 80 is used.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

req_protocol

+

String

+

Request protocol. Options include HTTP, HTTPS, and GRPCS. You can select GRPCS for a GRPC backend.

+

Enumeration values:

+
  • HTTP

    +
  • HTTPS

    +
  • GRPCS

    +
+

req_method

+

String

+

Request method. Options include GET, POST, PUT, DELETE, HEAD, PATCH, OPTIONS, and ANY. This is fixed to POST for the GRPC backend.

+

Enumeration values:

+
  • GET

    +
  • POST

    +
  • PUT

    +
  • DELETE

    +
  • HEAD

    +
  • PATCH

    +
  • OPTIONS

    +
  • ANY

    +
+

req_uri

+

String

+

Request address, which can contain request parameters enclosed with braces ({}). For example, /getUserInfo/{userId}. Special characters, such as asterisks (*), slashes (/), percent signs (%), hyphens (-), underscores (_), and periods (.), are allowed. It can contain a maximum of 512 characters and must comply with URI specifications.

+

Environment variables are supported. Each must start with a letter and can consist of 3 to 32 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+
NOTE:

The address must comply with the URI specifications.

+
+

For the GRPC backend, the request address is fixed to /.

+

timeout

+

Integer

+

Timeout allowed for APIG to request the backend service. You can set the maximum timeout using the backend_timeout configuration item. The maximum value is 600,000.

+

Unit: ms.

+

Minimum: 1

+

retry_count

+

String

+

Number of retry attempts to request the backend service. The default value is –1. The value ranges from –1 to 10.

+

–1 indicates that idempotent APIs will retry once and non-idempotent APIs will not retry. POST and PATCH are non-idempotent. GET, HEAD, PUT, OPTIONS, and DELETE are idempotent.

+

Default: -1

+

vpc_channel_info

+

VpcInfo object

+

VPC channel details. This parameter is required if vpc_channel_status is set to 1.

+

vpc_channel_status

+

Integer

+

Indicates whether to use a VPC channel.

+
  • 1: A VPC channel is used.

    +
  • 2: No VPC channel is used.

    +
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 26 BackendParam

Parameter

+

Type

+

Description

+

origin

+

String

+

Parameter type.

+
  • REQUEST: backend parameter

    +
  • CONSTANT: constant parameter

    +
  • SYSTEM: system parameter

    +
+

Enumeration values:

+
  • REQUEST

    +
  • CONSTANT

    +
  • SYSTEM

    +
+

name

+

String

+

Parameter name.

+

The parameter name must start with a letter and can only contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Minimum: 1

+

Maximum: 32

+

remark

+

String

+

Description, which can contain a maximum of 255 characters.

+

location

+

String

+

Parameter location. The value can be PATH, QUERY, or HEADER.

+

Enumeration values:

+
  • PATH

    +
  • QUERY

    +
  • HEADER

    +
+

value

+

String

+

Parameter value, which can contain a maximum of 255 characters.

+

If the origin type is REQUEST, the value of this parameter is the parameter name in req_params.

+

If the origin type is CONSTANT, the value is a constant.

+

If the origin type is SYSTEM, the value is a system parameter name. System parameters include gateway parameters, frontend authentication parameters, and backend authentication parameters. You can set the frontend or backend authentication parameters after enabling custom frontend or backend authentication.

+

The gateway parameters are as follows:

+
  • $context.sourceIp: source IP address of the API caller.

    +
  • $context.stage: deployment environment in which the API is called.

    +
  • $context.apiId: API ID.

    +
  • $context.appId: ID of the app used by the API caller.

    +
  • $context.requestId: request ID generated when the API is called.

    +
  • $context.serverAddr: address of the gateway server.

    +
  • $context.serverName: name of the gateway server.

    +
  • $context.handleTime: time when the API request is processed.

    +
  • $context.providerAppId: ID of the app used by the API owner. This parameter is currently not supported.

    +
+

Frontend authentication parameter: prefixed with "$context.authorizer.frontend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.frontend.aaa".

+

Backend authentication parameter: prefixed with "$context.authorizer.backend.". For example, to return "aaa" upon successful custom authentication, set this parameter to "$context.authorizer.backend.aaa".

+

id

+

String

+

Parameter ID.

+

req_param_id

+

String

+

Request parameter ID.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 27 CoditionResp

Parameter

+

Type

+

Description

+

req_param_name

+

String

+

Input parameter name. This parameter is required if the policy type is param.

+

sys_param_name

+

String

+

Name of a built-in gateway parameter. This parameter is required if the policy type is system. The following parameters are supported:

+
  • req_path: request path. For example, /a/b.

    +
  • req_method: request method. For example, GET.

    +
  • reqPath: request path, which is discarded. For example, /a/b.

    +
  • reqMethod: request method, which is discarded. For example, GET.

    +
+

Enumeration values:

+
  • req_path

    +
  • req_method

    +
  • reqPath

    +
  • reqMethod

    +
+

cookie_param_name

+

String

+

COOKIE parameter name. This parameter is required if the policy type is cookie.

+

Minimum: 0

+

Maximum: 255

+

frontend_authorizer_param_name

+

String

+

System parameter: frontend authentication parameter name. This parameter is mandatory when the policy type is frontend_authorizer. The frontend authentication parameter name is prefixed with $context.authorizer.frontend. For example, if the frontend authentication parameter name is user_name, the name with the prefix will be $context.authorizer.frontend.user_name.

+

condition_type

+

String

+

Policy condition.

+
  • exact: Exact match

    +
  • enum: Enumeration

    +
  • pattern: Regular expression

    +
+

This parameter is required when the policy type is param, system, cookie, or frontend_authorizer.

+

Enumeration values:

+
  • exact

    +
  • enum

    +
  • pattern

    +
+

condition_origin

+

String

+

Policy type

+
  • param: parameter

    +
  • source: source IP address

    +
  • system: system parameter - gateway built-in parameter

    +
  • cookie: COOKIE parameter

    +
  • frontend_authorizer: system parameter - frontend authentication parameter

    +
+

Enumeration values:

+
  • param

    +
  • source

    +
  • system

    +
  • cookie

    +
  • frontend_authorizer

    +
+

condition_value

+

String

+

Policy value. This parameter is required when the policy type is param, source, cookie, or frontend_authorizer.

+

id

+

String

+

ID.

+

req_param_id

+

String

+

Input parameter ID.

+

req_param_location

+

String

+

Input parameter location.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 28 VpcInfo

Parameter

+

Type

+

Description

+

ecs_id

+

String

+

Cloud server ID.

+

ecs_name

+

String

+

Cloud server name.

+

cascade_flag

+

Boolean

+

Indicates whether to use the cascading mode.

+

Currently, this parameter is not supported.

+

vpc_channel_proxy_host

+

String

+

Proxy host.

+

vpc_channel_id

+

String

+

VPC channel ID.

+

vpc_channel_port

+

Integer

+

VPC channel port.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 29 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 30 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 31 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 32 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 33 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying an API (authentication mode: app; backend: VPC channel)

+
{
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "match_mode" : "NORMAL",
+  "name" : "Api_http",
+  "auth_type" : "APP",
+  "backend_type" : "HTTP",
+  "backend_api" : {
+    "vpc_channel_status" : 1,
+    "vpc_channel_info" : {
+      "vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59",
+      "vpc_channel_proxy_host" : "www.example.com"
+    },
+    "req_protocol" : "HTTPS",
+    "req_method" : "GET",
+    "req_uri" : "/test/benchmark",
+    "timeout" : 5000,
+    "retry_count" : "-1"
+  },
+  "cors" : false,
+  "req_protocol" : "HTTPS",
+  "req_uri" : "/test/http",
+  "remark" : "Web backend API",
+  "type" : 1,
+  "req_method" : "GET",
+  "result_normal_sample" : "Example success response",
+  "result_failure_sample" : "Example failure response",
+  "backend_params" : [ {
+    "name" : "X-CONSTANT-HEADER",
+    "value" : "demo",
+    "location" : "HEADER",
+    "origin" : "CONSTANT",
+    "remark" : "constant_demo"
+  }, {
+    "name" : "app-id",
+    "value" : "$context.appId",
+    "location" : "HEADER",
+    "origin" : "SYSTEM",
+    "remark" : "App ID of the API caller"
+  } ],
+  "tags" : [ "webApi" ]
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "id" : "5f918d104dc84480a75166ba99efff21",
+  "tags" : [ "webApi" ],
+  "arrange_necessary" : 2,
+  "backend_type" : "HTTP",
+  "auth_type" : "APP",
+  "auth_opt" : {
+    "app_code_auth_type" : "DISABLE"
+  },
+  "backend_api" : {
+    "update_time" : "2020-08-02T16:32:47.077028841Z",
+    "vpc_channel_status" : 1,
+    "vpc_channel_info" : {
+      "vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59",
+      "vpc_channel_proxy_host" : "www.example.com"
+    },
+    "url_domain" : "56a7d7358e1b42459c9d730d65b14e59",
+    "req_protocol" : "HTTPS",
+    "id" : "1ce8fda3586d4371bd83c955df37e102",
+    "req_method" : "GET",
+    "register_time" : "2020-07-31T12:42:51Z",
+    "req_uri" : "/test/benchmark",
+    "timeout" : 5000,
+    "status" : 1,
+    "retry_count" : "-1"
+  },
+  "cors" : false,
+  "status" : 1,
+  "group_name" : "api_group_001",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "group_version" : "V1",
+  "match_mode" : "NORMAL",
+  "name" : "Api_http",
+  "req_protocol" : "HTTPS",
+  "req_method" : "GET",
+  "req_uri" : "/test/http",
+  "type" : 1,
+  "version" : "V0.0.1",
+  "result_normal_sample" : "Example success response",
+  "result_failure_sample" : "Example failure response",
+  "register_time" : "2020-07-31T12:42:51Z",
+  "update_time" : "2020-08-02T16:32:47.046288842Z",
+  "remark" : "Web backend API",
+  "backend_params" : [ {
+    "name" : "X-CONSTANT-HEADER",
+    "value" : "demo",
+    "location" : "HEADER",
+    "origin" : "CONSTANT",
+    "remark" : "constant_demo",
+    "id" : "8cb2eba19e7a4423a4e835647a8b8d76"
+  }, {
+    "name" : "app-id",
+    "value" : "$context.appId",
+    "location" : "HEADER",
+    "origin" : "SYSTEM",
+    "remark" : "App ID of the API caller",
+    "id" : "216ddda836e74d528f364ff589d9dd21"
+  } ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "API 5f918d104dc84480a75166ba99efff21 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateAppAcl.html b/docs/apig/api-ref/UpdateAppAcl.html new file mode 100644 index 00000000..1db79a4e --- /dev/null +++ b/docs/apig/api-ref/UpdateAppAcl.html @@ -0,0 +1,375 @@ + + +

Configuring Access Control Settings for an App

+

Function

This API is used to configure access control settings for a credential.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-acl

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

app_acl_type

+

Yes

+

String

+

Type:

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

app_acl_values

+

Yes

+

Array of strings

+

Access control values. The values can be IP addresses, IP address ranges, or CIDR blocks. Use hyphens (-) to separate IP address segments.

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

app_id

+

String

+

App ID.

+

app_acl_type

+

String

+

Type:

+
  • PERMIT (whitelist)

    +
  • DENY (blacklist)

    +
+

app_acl_values

+

Array of strings

+

Access control values. The values can be IP addresses, IP address ranges, or CIDR blocks. Use hyphens (-) to separate IP address segments.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

{
+  "app_acl_type" : "PERMIT",
+  "app_acl_values" : [ "192.168.0.1", "192.168.0.5-192.168.0.10", "192.168.0.100/28" ]
+}
+
+

Example Responses

Status code: 201

+

Ok

+
{
+  "app_id" : "9ed8b7fe84224de681e7d7a5587e76dc",
+  "app_acl_type" : "PERMIT",
+  "app_acl_values" : [ "192.168.0.1", "192.168.0.5-192.168.0.10", "192.168.0.100/28" ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:app_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3004",
+  "error_msg" : "App 9ed8b7fe84224de681e7d7a5587e76dc does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Ok

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateAppQuota.html b/docs/apig/api-ref/UpdateAppQuota.html new file mode 100644 index 00000000..0b0c9d50 --- /dev/null +++ b/docs/apig/api-ref/UpdateAppQuota.html @@ -0,0 +1,475 @@ + + +

Modifying a Credential Quota

+

Function

This API is used to modify a credential quota.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_quota_id

+

Yes

+

String

+

Credential Quota ID

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Quota name. Start with a letter. Use letters, digits, or underscores (_).

+

Minimum: 3

+

Maximum: 255

+

call_limits

+

Yes

+

Integer

+

Maximum number of times a credential quota can be called.

+

Minimum: 1

+

Maximum: 2147483647

+

time_unit

+

Yes

+

String

+

Time unit. The options are SECOND, MINUTE, HOUR, and DAY.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

time_interval

+

Yes

+

Integer

+

Time interval for throttling.

+

Minimum: 1

+

Maximum: 2147483647

+

reset_time

+

No

+

String

+

Time when the quota is reset for the first time. If this parameter is not specified, the time is calculated based on the first calling time by default.

+

remark

+

No

+

String

+

Parameter description.

+

Brackets (<>) are not supported.

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

app_quota_id

+

String

+

Credential quota ID.

+

name

+

String

+

Quota name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

call_limits

+

Integer

+

Maximum number of times a credential quota can be called.

+

time_unit

+

String

+

Time unit. The options are SECOND, MINUTE, HOUR, and DAY.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

time_interval

+

Integer

+

Time limit of a quota.

+

remark

+

String

+

Parameter description.

+

Maximum: 255

+

reset_time

+

String

+

Time when the quota is reset for the first time. If this parameter is not specified, the time is calculated based on the first calling time by default.

+

create_time

+

String

+

Creation time.

+

bound_app_num

+

Integer

+

Number of applications bound to the quota policy.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

{
+  "call_limits" : 1000,
+  "name" : "ClientQuota_demo",
+  "reset_time" : "2020-09-20 00:00:00",
+  "time_interval" : 1,
+  "time_unit" : "DAY"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "app_quota_id" : "c900c5612dbe451bb43cbcc49cfaf2f3",
+  "call_limits" : 1000,
+  "create_time" : "2020-09-19T07:27:47Z",
+  "name" : "ClientQuota_demo",
+  "reset_time" : "2020-09-20 00:00:00",
+  "time_interval" : 1,
+  "time_unit" : "DAY"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3325",
+  "error_msg" : "The API quota name already exists"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "App quota c900c5612dbe451bb43cbcc49cfaf2f3 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateAppV2.html b/docs/apig/api-ref/UpdateAppV2.html new file mode 100644 index 00000000..29e9c174 --- /dev/null +++ b/docs/apig/api-ref/UpdateAppV2.html @@ -0,0 +1,476 @@ + + +

Modifying an App

+

Function

This API is used to modify the information about an app. Only the name and remark parameters can be modified. If the function of customizing keys and secrets is enabled, app_key and app_secret can also be modified.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

app_id

+

Yes

+

String

+

App ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

App name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

remark

+

No

+

String

+

App description. It cannot exceed 255 characters.

+

app_key

+

No

+

String

+

AppKey, which can contain 8 to 200 characters, starting with a letter or digit. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

app_secret

+

No

+

String

+

Secret, which can contain 8 to 128 characters, starting with a letter or digit. Only letters, digits, and the following special characters are allowed: _-!@#$%

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

ID.

+

name

+

String

+

Name.

+

remark

+

String

+

Description.

+

creator

+

String

+

Creator of the app.

+
  • USER: The app is created by an API user.

    +
  • MARKET: The app is allocated by KooGallery.

    +
+

The value MARKET is currently not supported.

+

Enumeration values:

+
  • USER

    +
  • MARKET

    +
+

update_time

+

String

+

Update time.

+

app_key

+

String

+

AppKey.

+

app_secret

+

String

+

AppSecret.

+

register_time

+

String

+

Registration time.

+

status

+

Integer

+

Status.

+
  • 1: valid

    +
+

Enumeration values:

+
  • 1

    +
+

app_type

+

String

+

App type.

+
  • apig: APIG app, which is not recommended.

    +
  • roma: ROMA integration application.

    +
+

The default value is apig. Other types are not supported currently.

+

Enumeration values:

+
  • apig

    +
  • roma

    +
+

roma_app_type

+

String

+

ROMA application type.

+
  • subscription: subscription application

    +
  • integration: integration application

    +
+

Currently, this parameter is not supported.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying an app

+
{
+  "name" : "app_demo",
+  "remark" : "Demo app"
+}
+
+

Example Responses

Status code: 201

+

OK

+
{
+  "creator" : "USER",
+  "update_time" : "2020-08-03T13:21:48.381148828Z",
+  "app_key" : "ee8f878c252747028f07eb116c2cd91b",
+  "name" : "app_demo",
+  "remark" : "Demo app",
+  "id" : "356de8eb7a8742168586e5daf5339965",
+  "app_secret" : "416************ab8",
+  "register_time" : "2020-08-03T13:09:13",
+  "status" : 1,
+  "app_type" : "apig"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3002",
+  "error_msg" : "App 356de8eb7a8742168586e5daf5339965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateBackendInstancesV2.html b/docs/apig/api-ref/UpdateBackendInstancesV2.html new file mode 100644 index 00000000..acfdb893 --- /dev/null +++ b/docs/apig/api-ref/UpdateBackendInstancesV2.html @@ -0,0 +1,644 @@ + + +

Updating Backend Instances

+

Function

This API is used to update the backend instances of a specified VPC channel. During the update, the request parameters overwrite the backend instances of the corresponding cloud server group. If no cloud server group is specified, all cloud server groups are overwritten.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

members

+

No

+

Array of MemberInfo objects

+

Backend instances.

+

member_group_name

+

No

+

String

+

Backend server group to be modified.

+

If this parameter is not specified, all backends defined by members for the VPC channel are modified.

+

If this parameter is specified, only the backend instances in the backend server group defined by members are modified. Input parameters of other backend server groups are ignored. For example, if member_group_name=primary is passed, only backend instances of backend server group 105c6902457144a4820dff8b1ad63331 in members are modified.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 MemberInfo

Parameter

+

Mandatory

+

Type

+

Description

+

host

+

No

+

String

+

Backend server address.

+

This parameter is required when the member type is IP address.

+

Maximum: 64

+

weight

+

No

+

Integer

+

Weight.

+

The higher the weight is, the more requests a backend service will receive.

+

Minimum: 0

+

Maximum: 10000

+

is_backup

+

No

+

Boolean

+

Indicates whether the backend service is a standby node.

+

After you enable this function, the backend service serves as a standby node. It works only when all non-standby nodes are faulty.

+

This function is supported only when your gateway has been upgraded to the corresponding version. If your gateway does not support this function, contact technical support.

+

Default: false

+

member_group_name

+

No

+

String

+

Backend server group name. The server group facilitates backend service address modification.

+

status

+

No

+

Integer

+

Backend server status.

+
  • 1: available

    +
  • 2: unavailable

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

port

+

No

+

Integer

+

Backend server port.

+

Minimum: 0

+

Maximum: 65535

+

ecs_id

+

No

+

String

+

Backend server ID.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

+

Maximum: 255

+

ecs_name

+

No

+

String

+

Backend server name.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

Maximum: 64

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

size

+

Integer

+

Length of the returned resource list.

+

total

+

Long

+

Number of resources that match the query conditions.

+

members

+

Array of VpcMemberInfo objects

+

Cloud server list.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 VpcMemberInfo

Parameter

+

Type

+

Description

+

host

+

String

+

Backend server address.

+

This parameter is required when the member type is IP address.

+

Maximum: 64

+

weight

+

Integer

+

Weight.

+

The higher the weight is, the more requests a backend service will receive.

+

Minimum: 0

+

Maximum: 10000

+

is_backup

+

Boolean

+

Indicates whether the backend service is a standby node.

+

After you enable this function, the backend service serves as a standby node. It works only when all non-standby nodes are faulty.

+

This function is supported only when your gateway has been upgraded to the corresponding version. If your gateway does not support this function, contact technical support.

+

Default: false

+

member_group_name

+

String

+

Backend server group name. The server group facilitates backend service address modification.

+

status

+

Integer

+

Backend server status.

+
  • 1: available

    +
  • 2: unavailable

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

port

+

Integer

+

Backend server port.

+

Minimum: 0

+

Maximum: 65535

+

ecs_id

+

String

+

Backend server ID.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

+

Maximum: 255

+

ecs_name

+

String

+

Backend server name.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

Maximum: 64

+

id

+

String

+

Backend instance ID.

+

vpc_channel_id

+

String

+

VPC channel ID.

+

create_time

+

String

+

Time when the backend server is added to the VPC channel.

+

member_group_id

+

String

+

Backend server group ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 200

+

OK

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified, parameter name:members"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateCertificateV2.html b/docs/apig/api-ref/UpdateCertificateV2.html new file mode 100644 index 00000000..fb67902f --- /dev/null +++ b/docs/apig/api-ref/UpdateCertificateV2.html @@ -0,0 +1,554 @@ + + +

Modifying an SSL Certificate

+

Function

This API is used to modify an SSL certificate.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/certificates/{certificate_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

certificate_id

+

Yes

+

String

+

Certificate ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Certificate name. It can contain 4 to 50 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

cert_content

+

Yes

+

String

+

Certificate content.

+

private_key

+

Yes

+

String

+

Certificate private key.

+

type

+

No

+

String

+

Certificate scope.

+

Default: global

+

Enumeration values:

+
  • instance

    +
  • global

    +
+

instance_id

+

No

+

String

+

Gateway ID. This parameter is required if type is set to instance.

+

trusted_root_ca

+

No

+

String

+

Trusted root certificate (CA).

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Certificate ID.

+

name

+

String

+

Certificate name.

+

type

+

String

+

Certificate type.

+
  • global: Global certificate.

    +
  • instance: Gateway certificate.

    +
+

Enumeration values:

+
  • global

    +
  • instance

    +
+

instance_id

+

String

+

Gateway ID.

+
  • If type is set to global, the default value is common.

    +
  • If type is set to instance, a gateway ID is displayed.

    +
+

project_id

+

String

+

Project ID.

+

common_name

+

String

+

Domain name.

+

san

+

Array of strings

+

SAN domain name.

+

not_after

+

String

+

Expiration time.

+

signature_algorithm

+

String

+

Signature algorithm.

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+

is_has_trusted_root_ca

+

Boolean

+

Whether a trusted root certificate (CA) exists. The value is true if trusted_root_ca exists in the bound certificate.

+

Default: false

+

version

+

Integer

+

Version.

+

organization

+

Array of strings

+

Company or organization.

+

organizational_unit

+

Array of strings

+

Department.

+

locality

+

Array of strings

+

City.

+

state

+

Array of strings

+

State or province.

+

country

+

Array of strings

+

Country or region.

+

not_before

+

String

+

Effective time.

+

serial_number

+

String

+

Serial number.

+

issuer

+

Array of strings

+

Issuer.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying an SSL certificate

+
{
+  "name" : "cert_demo",
+  "private_key" : "'-----BEGIN PRIVATE KEY-----THIS IS YOUR PRIVATE KEY-----END PRIVATE KEY-----\\n'",
+  "cert_content" : "'-----BEGIN CERTIFICATE-----THIS IS YOUR CERT CONTENT-----END CERTIFICATE-----\\n'"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "id" : "a27be832f2e9441c8127fe48e3b5ac67",
+  "name" : "cert_demo",
+  "common_name" : "apigtest.example.com",
+  "san" : [ "apigtest.example.com", "*.san.com" ],
+  "version" : 3,
+  "organization" : [ "XX" ],
+  "organizational_unit" : [ "IT" ],
+  "locality" : [ "XX" ],
+  "state" : [ "XX" ],
+  "country" : [ "XX" ],
+  "not_before" : "2019-06-01T00:00:00Z",
+  "not_after" : "2031-08-16T06:36:13Z",
+  "serial_number" : "13010",
+  "issuer" : [ "XXSSL Inc" ],
+  "signature_algorithm" : "SHA256-RSA",
+  "create_time" : "2021-08-20T02:03:53Z",
+  "update_time" : "2021-08-20T02:03:53Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3325",
+  "error_msg" : "The dictionary name already exists"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3093",
+  "error_msg" : "App quota c900c5612dbe451bb43cbcc49cfaf2f3 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateCustomAuthorizerV2.html b/docs/apig/api-ref/UpdateCustomAuthorizerV2.html new file mode 100644 index 00000000..1de042d7 --- /dev/null +++ b/docs/apig/api-ref/UpdateCustomAuthorizerV2.html @@ -0,0 +1,667 @@ + + +

Modifying a Custom Authorizer

+

Function

This API is used to modify a custom authorizer.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/authorizers/{authorizer_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

authorizer_id

+

Yes

+

String

+

Custom authorizer ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Custom authorizer name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

type

+

Yes

+

String

+

Custom authorizer type.

+
  • FRONTEND

    +
  • BACKEND

    +
+

Modification is not allowed.

+

Enumeration values:

+
  • FRONTEND

    +
  • BACKEND

    +
+

authorizer_type

+

Yes

+

String

+

Value: FUNC.

+

Enumeration values:

+
  • FUNC

    +
+

authorizer_uri

+

Yes

+

String

+

Function URN.

+

network_type

+

No

+

String

+

Function network architecture:

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Default: V1

+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

authorizer_version

+

No

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

authorizer_alias_uri

+

No

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

identities

+

No

+

Array of Identity objects

+

Identity source.

+

ttl

+

No

+

Integer

+

Maximum cache age.

+

user_data

+

No

+

String

+

User data.

+

ld_api_id

+

No

+

String

+

Custom backend ID.

+

Currently, this parameter is not supported.

+

need_body

+

No

+

Boolean

+

Indicates whether to send the body.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Identity

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Parameter name.

+

location

+

Yes

+

String

+

Parameter location.

+

Enumeration values:

+
  • HEADER

    +
  • QUERY

    +
+

validation

+

No

+

String

+

Parameter verification expression. The default value is null, indicating that no verification is performed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Custom authorizer name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

type

+

String

+

Custom authorizer type.

+
  • FRONTEND

    +
  • BACKEND

    +
+

Modification is not allowed.

+

Enumeration values:

+
  • FRONTEND

    +
  • BACKEND

    +
+

authorizer_type

+

String

+

Value: FUNC.

+

Enumeration values:

+
  • FUNC

    +
+

authorizer_uri

+

String

+

Function URN.

+

network_type

+

String

+

Function network architecture:

+
  • V1: non-VPC

    +
  • V2: VPC

    +
+

Default: V1

+

Enumeration values:

+
  • V1

    +
  • V2

    +
+

authorizer_version

+

String

+

Function version.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

Maximum: 64

+

authorizer_alias_uri

+

String

+

Function alias URN.

+

If both a function alias URN and version are passed, the alias URN will be used and the version will be ignored.

+

identities

+

Array of Identity objects

+

Identity source.

+

ttl

+

Integer

+

Maximum cache age.

+

user_data

+

String

+

User data.

+

ld_api_id

+

String

+

Custom backend ID.

+

Currently, this parameter is not supported.

+

need_body

+

Boolean

+

Indicates whether to send the body.

+

id

+

String

+

Custom authorizer ID.

+

create_time

+

String

+

Creation time.

+

roma_app_id

+

String

+

ID of the application to which the custom authorizer belongs.

+

Currently, this parameter is not supported.

+

roma_app_name

+

String

+

Name of the application to which the custom authorizer belongs.

+

Currently, this parameter is not supported.

+
+
+ +
+ + + + + + + + + + + + + + + + + +
Table 6 Identity

Parameter

+

Type

+

Description

+

name

+

String

+

Parameter name.

+

location

+

String

+

Parameter location.

+

Enumeration values:

+
  • HEADER

    +
  • QUERY

    +
+

validation

+

String

+

Parameter verification expression. The default value is null, indicating that no verification is performed.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Updating a frontend custom authorizer

+
{
+  "name" : "Authorizer_demo",
+  "type" : "FRONTEND",
+  "authorizer_type" : "FUNC",
+  "authorizer_uri" : "urn:fss:xx-xxx:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814",
+  "network_type" : "V1",
+  "authorizer_version" : "v1",
+  "authorizer_alias_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814:!v1",
+  "user_data" : "authorizer_test",
+  "identities" : [ {
+    "name" : "header",
+    "location" : "HEADER"
+  } ]
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "name" : "Authorizer_demo",
+  "type" : "FRONTEND",
+  "authorizer_type" : "FUNC",
+  "authorizer_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814",
+  "network_type" : "V1",
+  "authorizer_version" : "v1",
+  "authorizer_alias_uri" : "urn:fss:xx-xxx-4:106506b9a92342df9a5025fc12351cfc:function:defau:apigDemo_1592617458814:!v1",
+  "identities" : [ {
+    "name" : "header",
+    "location" : "HEADER"
+  } ],
+  "ttl" : 5,
+  "user_data" : "authorizer_test",
+  "id" : "0d982c1ac3da493dae47627b6439fc5c",
+  "create_time" : "2020-07-08T03:27:52.000+0000"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3081",
+  "error_msg" : "authorizer with id: 0d982c1ac3da493dae47627b6439fc5c not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateDomainV2.html b/docs/apig/api-ref/UpdateDomainV2.html new file mode 100644 index 00000000..7b84b627 --- /dev/null +++ b/docs/apig/api-ref/UpdateDomainV2.html @@ -0,0 +1,431 @@ + + +

Modifying a Domain Name

+

Function

This API is used to modify the configuration of a domain name bound to an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

domain_id

+

Yes

+

String

+

Domain ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

min_ssl_version

+

Yes

+

String

+

Minimum SSL version. TLS 1.1 and TLS 1.2 are supported.

+

Default: TLSv1.1

+

Enumeration values:

+
  • TLSv1.1

    +
  • TLSv1.2

    +
+

is_http_redirect_to_https

+

No

+

Boolean

+

Whether to enable HTTP redirection to HTTPS. The value false means disable and true means enable. The default value is false.

+

Default: false

+

verified_client_certificate_enabled

+

No

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+
+
+
+

Response Parameters

Status code: 201

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

url_domain

+

String

+

Custom domain name.

+

id

+

String

+

Domain ID.

+

status

+

Integer

+

CNAME resolution status.

+
  • 1: not resolved

    +
  • 2: resolving

    +
  • 3: resolved

    +
  • 4: resolution failed

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
  • 3

    +
  • 4

    +
+

min_ssl_version

+

String

+

Minimum SSL version supported.

+

is_http_redirect_to_https

+

Boolean

+

Whether to enable HTTP redirection to HTTPS. The value false means disable and true means enable. The default value is false.

+

Default: false

+

verified_client_certificate_enabled

+

Boolean

+

Whether to enable client certificate verification. This parameter is available only when a certificate is bound. It is enabled by default if trusted_root_ca exists, and disabled if trusted_root_ca does not exist.

+

Default: false

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying a domain name

+
{
+  "min_ssl_version" : "TLSv1.2"
+}
+
+

Example Responses

Status code: 201

+

Created

+
{
+  "id" : "0a515af69f4e4dcca84fbf85f68c0e27",
+  "url_domain" : "www.example.com",
+  "status" : 3,
+  "min_ssl_version" : "TLSv1.2",
+  "is_http_redirect_to_https" : false,
+  "verified_client_certificate_enabled" : false
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3474",
+  "error_msg" : "The API group ID in the URL does not match the API group to which the URL domain has been bound"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

201

+

Created

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateEngressEipV2.html b/docs/apig/api-ref/UpdateEngressEipV2.html new file mode 100644 index 00000000..2c03e5b4 --- /dev/null +++ b/docs/apig/api-ref/UpdateEngressEipV2.html @@ -0,0 +1,325 @@ + + +

Updating the Outbound Access Bandwidth of a Dedicated Gateway

+

Function

This API is used to update the outbound access bandwidth of a dedicated gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/nat-eip

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

bandwidth_size

+

No

+

String

+

Outbound access bandwidth.

+

Unit: Mbit/s

+

bandwidth_charging_mode

+

No

+

String

+

Billing type of the public outbound access bandwidth.

+
  • bandwidth: billed by bandwidth
+

Default: bandwidth

+

Enumeration values:

+
  • bandwidth
+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Updating the outbound access bandwidth of a gateway

+
{
+  "bandwidth_size" : 5,
+  "bandwidth_charging_mode" : "bandwidth"
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIC.9211",
+  "error_msg" : "update bandwidth size failed"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateEnvironmentV2.html b/docs/apig/api-ref/UpdateEnvironmentV2.html new file mode 100644 index 00000000..0a0911f7 --- /dev/null +++ b/docs/apig/api-ref/UpdateEnvironmentV2.html @@ -0,0 +1,381 @@ + + +

Modifying an Environment

+

Function

This API is used to modify the information about an environment. Only the name and remark attributes of an environment can be modified.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/envs/{env_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

env_id

+

Yes

+

String

+

Environment ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Environment name, which can contain letters, digits, and underscores (_) and must start with a letter.

+

Minimum: 3

+

Maximum: 64

+

remark

+

No

+

String

+

Description.

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

create_time

+

String

+

Creation time.

+

name

+

String

+

Environment name.

+

remark

+

String

+

Description.

+

id

+

String

+

Environment ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying an environment

+
{
+  "name" : "DEV",
+  "remark" : "Development environment"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "create_time" : "2020-07-31T06:41:43Z",
+  "name" : "DEV",
+  "remark" : "Development environment",
+  "id" : "7a1ad0c350844ee69479b47df9a881cb"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3003",
+  "error_msg" : "Environment 7a1ad0c350844ee69479b47df9a881cb does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateEnvironmentVariableV2.html b/docs/apig/api-ref/UpdateEnvironmentVariableV2.html new file mode 100644 index 00000000..9403e794 --- /dev/null +++ b/docs/apig/api-ref/UpdateEnvironmentVariableV2.html @@ -0,0 +1,379 @@ + + +

Modifying a Variable

+

Function

This API is used to modify an environment variable. If an environment variable is referenced by the backend service address of an API, modifying the environment variable will publish all APIs that use the variable again.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/env-variables/{env_variable_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

env_variable_id

+

Yes

+

String

+

Environment variable ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

variable_value

+

Yes

+

String

+

The variable value can contain 1 to 255 characters. Only letters, digits, and special characters (_-/.:) are allowed.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

variable_value

+

String

+

The variable value can contain 1 to 255 characters. Only letters, digits, and special characters (_-/.:) are allowed.

+

env_id

+

String

+

Environment ID.

+

Minimum: 1

+

Maximum: 65

+

group_id

+

String

+

API group ID.

+

Minimum: 1

+

Maximum: 65

+

variable_name

+

String

+

Variable name, which can contain 3 to 32 characters, starting with a letter. Only letters, digits, hyphens (-), and underscores (_) are allowed. The variable name is equivalent to "#Name#" in API definitions. Characters between the number signs are case-sensitive. The variable name will be replaced with the variable value after API publication.

+

id

+

String

+

Environment variable ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+
+

Example Requests

{
+  "variable_value" : "192.168.1.5"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "variable_value" : "192.168.1.5",
+  "env_id" : "7a1ad0c350844ee69479b47df9a881cb",
+  "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600",
+  "id" : "25054838a624400bbf2267cf5b3a3f70",
+  "variable_name" : "address"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:variable_name"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3003",
+  "error_msg" : "Environment 7a1ad0c350844ee69479b47df9a881cb does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateGatewayResponseTypeV2.html b/docs/apig/api-ref/UpdateGatewayResponseTypeV2.html new file mode 100644 index 00000000..3da1f2c4 --- /dev/null +++ b/docs/apig/api-ref/UpdateGatewayResponseTypeV2.html @@ -0,0 +1,492 @@ + + +

Modifying the Response of an Error Type

+

Function

This API is used to modify the response of an error type defined for an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}/{response_type}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

response_id

+

Yes

+

String

+

Response ID.

+

response_type

+

Yes

+

String

+

Error type. Options:

+
  • AUTH_FAILURE: IAM or app authentication failed.
  • AUTH_HEADER_MISSING: The identity source is missing.
  • AUTHORIZER_FAILURE: Custom authentication failed.
  • AUTHORIZER_CONF_FAILURE: A custom authorizer error has occurred. For example, communication failed or an error response was returned.
  • AUTHORIZER_IDENTITIES_FAILURE: The identity source of the frontend custom authorizer is missing or invalid.
  • BACKEND_UNAVAILABLE: The backend is unavailable due to communication error.
  • BACKEND_TIMEOUT: Communication with the backend timed out.
  • THROTTLED: The request was rejected due to throttling.
  • UNAUTHORIZED: The credential you use is not authorized to call the API.
  • ACCESS_DENIED: Access denied. For example, the access control policy is triggered or an attack is detected.
  • NOT_FOUND: No API is matched.
  • REQUEST_PARAMETERS_FAILURE: Invalid request parameter or unsupported HTTP method.
  • DEFAULT_4XX: Another 4XX error occurred.
  • DEFAULT_5XX: Another 5XX error occurred.
  • THIRD_AUTH_FAILURE: Third-party authentication failed.
  • THIRD_AUTH_IDENTITIES_FAILURE: The identity source of the third-party authorizer is missing or invalid.
  • THIRD_AUTH_CONF_FAILURE: A third-party authorizer error has occurred. For example, communication failed or an error response was returned.
  • ORCHESTRATION_PARAMETER_NOT_FOUND: Parameter orchestration failed. No input parameter is found in the request.
  • ORCHESTRATION_FAILURE: Parameter orchestration failed. No orchestration rule to match.
+

Enumeration values:

+
  • AUTH_FAILURE
  • AUTH_HEADER_MISSING
  • AUTHORIZER_FAILURE
  • AUTHORIZER_CONF_FAILURE
  • AUTHORIZER_IDENTITIES_FAILURE
  • BACKEND_UNAVAILABLE
  • BACKEND_TIMEOUT
  • THROTTLED
  • UNAUTHORIZED
  • ACCESS_DENIED
  • NOT_FOUND
  • REQUEST_PARAMETERS_FAILURE
  • DEFAULT_4XX
  • DEFAULT_5XX
  • THIRD_AUTH_FAILURE
  • THIRD_AUTH_IDENTITIES_FAILURE
  • THIRD_AUTH_CONF_FAILURE
  • ORCHESTRATION_PARAMETER_NOT_FOUND
  • ORCHESTRATION_FAILURE
+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

status

+

No

+

Integer

+

HTTP status code of the response. The value ranges from 200 to 599, but cannot be 444.

+

body

+

No

+

String

+

Response body template.

+

headers

+

No

+

Array of ResponseInfoHeader objects

+

Custom response header.

+

Array Length: 0 - 10

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 ResponseInfoHeader

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

Key of the custom group response header, which can contain 1 to 128 characters of letters, digits, and hyphens (-).

+

value

+

No

+

String

+

Value of the custom group response header, which is a string of 1 to 1,024 characters.

+

Minimum: 1

+

Maximum: 1024

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

{User defined key}

+

Map<String,ResponseInfoResp>

+

OK

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 6 ResponseInfoResp

Parameter

+

Type

+

Description

+

status

+

Integer

+

HTTP status code of the response. The value ranges from 200 to 599, but cannot be 444.

+

body

+

String

+

Response body template.

+

headers

+

Array of ResponseInfoHeader objects

+

Custom response header.

+

Array Length: 0 - 10

+

default

+

Boolean

+

Indicates whether the response is the default response.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 ResponseInfoHeader

Parameter

+

Type

+

Description

+

key

+

String

+

Key of the custom group response header, which can contain 1 to 128 characters of letters, digits, and hyphens (-).

+

value

+

String

+

Value of the custom group response header, which is a string of 1 to 1,024 characters.

+

Minimum: 1

+

Maximum: 1024

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying the response of an error type defined for an API group

+
{
+  "body" : "body: \"{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}\"",
+  "status" : 403
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "ACCESS_DENIED" : {
+    "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+    "default" : true,
+    "status" : 403
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2012",
+  "error_msg" : "Invalid parameter value,parameterName:group_id. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateGatewayResponseV2.html b/docs/apig/api-ref/UpdateGatewayResponseV2.html new file mode 100644 index 00000000..77537bf6 --- /dev/null +++ b/docs/apig/api-ref/UpdateGatewayResponseV2.html @@ -0,0 +1,635 @@ + + +

Modifying a Group Response

+

Function

This API is used to modify a response of an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+

response_id

+

Yes

+

String

+

Response ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Response name. Enter 1 to 64 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

responses

+

No

+

Map<String,ResponseInfo>

+

Response type definition. key indicates the error type. Options of key:

+
  • AUTH_FAILURE: Authentication failed.
  • AUTH_HEADER_MISSING: The identity source is missing.
  • AUTHORIZER_FAILURE: Custom authentication failed.
  • AUTHORIZER_CONF_FAILURE: Custom authorizer error.
  • AUTHORIZER_IDENTITIES_FAILURE: The identity source of the custom authorizer is invalid.
  • BACKEND_UNAVAILABLE: The backend is unavailable.
  • BACKEND_TIMEOUT: Backend timed out.
  • THROTTLED: The request was rejected due to request throttling.
  • UNAUTHORIZED: The app you are using has not been authorized to call the API.
  • ACCESS_DENIED: Access denied.
  • NOT_FOUND: No API is found.
  • REQUEST_PARAMETERS_FAILURE: Invalid request parameter.
  • DEFAULT_4XX: Default 4XX error occurred.
  • DEFAULT_5XX: Default 5XX error occurred.
  • THIRD_AUTH_FAILURE: Third-party authentication failed.
  • THIRD_AUTH_IDENTITIES_FAILURE: Identity source of the third-party authorizer is invalid.
  • THIRD_AUTH_CONF_FAILURE: Third-party authorizer configuration error.
  • ORCHESTRATION_PARAMETER_NOT_FOUND: No parameters are input to match the parameter orchestration rule, causing orchestration failure.
  • ORCHESTRATION_FAILURE: Input parameters cannot match orchestration rules, causing orchestration failure.
+

Each error type is in JSON format.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 4 ResponseInfo

Parameter

+

Mandatory

+

Type

+

Description

+

status

+

No

+

Integer

+

HTTP status code of the response. The value ranges from 200 to 599, but cannot be 444.

+

body

+

No

+

String

+

Response body template.

+

headers

+

No

+

Array of ResponseInfoHeader objects

+

Custom response header.

+

Array Length: 0 - 10

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 ResponseInfoHeader

Parameter

+

Mandatory

+

Type

+

Description

+

key

+

No

+

String

+

Key of the custom group response header, which can contain 1 to 128 characters of letters, digits, and hyphens (-).

+

value

+

No

+

String

+

Value of the custom group response header, which is a string of 1 to 1,024 characters.

+

Minimum: 1

+

Maximum: 1024

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Response name.

+

responses

+

Map<String,ResponseInfoResp>

+

Response type definition. key indicates the error type. Options of key:

+
  • AUTH_FAILURE: Authentication failed.
  • AUTH_HEADER_MISSING: The identity source is missing.
  • AUTHORIZER_FAILURE: Custom authentication failed.
  • AUTHORIZER_CONF_FAILURE: Custom authorizer error.
  • AUTHORIZER_IDENTITIES_FAILURE: The identity source of the custom authorizer is invalid.
  • BACKEND_UNAVAILABLE: The backend is unavailable.
  • BACKEND_TIMEOUT: Backend timed out.
  • THROTTLED: The request was rejected due to request throttling.
  • UNAUTHORIZED: The app you are using has not been authorized to call the API.
  • ACCESS_DENIED: Access denied.
  • NOT_FOUND: No API is found.
  • REQUEST_PARAMETERS_FAILURE: Invalid request parameter.
  • DEFAULT_4XX: Default 4XX error occurred.
  • DEFAULT_5XX: Default 5XX error occurred.
  • THIRD_AUTH_FAILURE: Third-party authentication failed.
  • THIRD_AUTH_IDENTITIES_FAILURE: Identity source of the third-party authorizer is invalid.
  • THIRD_AUTH_CONF_FAILURE: Third-party authorizer configuration error.
  • ORCHESTRATION_PARAMETER_NOT_FOUND: No parameters are input to match the parameter orchestration rule, causing orchestration failure.
  • ORCHESTRATION_FAILURE: Input parameters cannot match orchestration rules, causing orchestration failure.
+

Each error type is in JSON format.

+

id

+

String

+

Response ID.

+

default

+

Boolean

+

Indicates whether the group response is the default response.

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 7 ResponseInfoResp

Parameter

+

Type

+

Description

+

status

+

Integer

+

HTTP status code of the response. The value ranges from 200 to 599, but cannot be 444.

+

body

+

String

+

Response body template.

+

headers

+

Array of ResponseInfoHeader objects

+

Custom response header.

+

Array Length: 0 - 10

+

default

+

Boolean

+

Indicates whether the response is the default response.

+
+
+ +
+ + + + + + + + + + + + + +
Table 8 ResponseInfoHeader

Parameter

+

Type

+

Description

+

key

+

String

+

Key of the custom group response header, which can contain 1 to 128 characters of letters, digits, and hyphens (-).

+

value

+

String

+

Value of the custom group response header, which is a string of 1 to 1,024 characters.

+

Minimum: 1

+

Maximum: 1024

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 13 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying a response of an API group

+
{
+  "name" : "response_demo"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "create_time" : "2020-08-12T06:52:02Z",
+  "update_time" : "2020-08-12T15:22:21.929863859+08:00",
+  "default" : false,
+  "id" : "e839b367e10f4ab19d1c5008e476b83a",
+  "name" : "response_demo",
+  "responses" : {
+    "ACCESS_DENIED" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 403
+    },
+    "AUTHORIZER_CONF_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 500
+    },
+    "AUTHORIZER_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 500
+    },
+    "AUTHORIZER_IDENTITIES_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "AUTH_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "AUTH_HEADER_MISSING" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "BACKEND_TIMEOUT" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 504
+    },
+    "BACKEND_UNAVAILABLE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 502
+    },
+    "DEFAULT_4XX" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true
+    },
+    "DEFAULT_5XX" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true
+    },
+    "NOT_FOUND" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 404
+    },
+    "REQUEST_PARAMETERS_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 400
+    },
+    "THROTTLED" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 429
+    },
+    "UNAUTHORIZED" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "THIRD_AUTH_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "THIRD_AUTH_IDENTITIES_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 401
+    },
+    "THIRD_AUTH_CONF_FAILURE" : {
+      "body" : "{\"error_code\":\"$context.error.code\",\"error_msg\":\"$context.error.message\",\"request_id\":\"$context.requestId\"}",
+      "default" : true,
+      "status" : 500
+    }
+  }
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3001",
+  "error_msg" : "API group c77f5e81d9cb4424bf704ef2b0ac7600 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateHealthCheck.html b/docs/apig/api-ref/UpdateHealthCheck.html new file mode 100644 index 00000000..13d4fd3a --- /dev/null +++ b/docs/apig/api-ref/UpdateHealthCheck.html @@ -0,0 +1,620 @@ + + +

Modifying VPC Channel Health Check

+

Function

This API is used to modify the health check configuration of a VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/health-config

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

protocol

+

Yes

+

String

+

Protocol for performing health checks on backend servers in the VPC channel.

+
  • TCP

    +
  • HTTP

    +
  • HTTPS

    +
+

Enumeration values:

+
  • TCP

    +
  • HTTP

    +
  • HTTPS

    +
+

path

+

No

+

String

+

Destination path for health checks. This parameter is required if protocol is set to http or https.

+

method

+

No

+

String

+

Request method for health checks.

+

Default: GET

+

Enumeration values:

+
  • GET

    +
  • HEAD

    +
+

port

+

No

+

Integer

+

Destination port for health checks. If this parameter is not specified or set to 0, the host port of the VPC channel is used.

+

If this parameter is set to a non-zero value, the corresponding port is used for health checks.

+

Minimum: 0

+

Maximum: 65535

+

threshold_normal

+

Yes

+

Integer

+

Healthy threshold. It refers to the number of consecutive successful checks required for a backend server to be considered healthy.

+

Minimum: 1

+

Maximum: 10

+

threshold_abnormal

+

Yes

+

Integer

+

Unhealthy threshold, which refers to the number of consecutive failed checks required for a backend server to be considered unhealthy.

+

Minimum: 1

+

Maximum: 10

+

time_interval

+

Yes

+

Integer

+

Interval between consecutive checks. Unit: s. The value must be greater than the value of timeout.

+

Minimum: 1

+

Maximum: 300

+

http_code

+

No

+

String

+

Response codes for determining a successful HTTP response. The value can be any integer within 100–599 in one of the following formats:

+
  • Multiple values, for example, 200,201,202

    +
  • Range, for example, 200-299

    +
  • Multiple values and ranges, for example, 201,202,210-299. This parameter is required if protocol is set to http.

    +
+

enable_client_ssl

+

No

+

Boolean

+

Indicates whether to enable two-way authentication. If this function is enabled, the certificate specified in the backend_client_certificate configuration item of the gateway is used.

+

Default: false

+

status

+

No

+

Integer

+

Health check result.

+
  • 1: available

    +
  • 2: unavailable

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

timeout

+

Yes

+

Integer

+

Timeout for determining whether a health check fails. Unit: s. The value must be less than the value of time_interval.

+

Minimum: 1

+

Maximum: 30

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

protocol

+

String

+

Protocol for performing health checks on backend servers in the VPC channel.

+
  • TCP

    +
  • HTTP

    +
  • HTTPS

    +
+

Enumeration values:

+
  • TCP

    +
  • HTTP

    +
  • HTTPS

    +
+

path

+

String

+

Destination path for health checks. This parameter is required if protocol is set to http or https.

+

method

+

String

+

Request method for health checks.

+

Default: GET

+

Enumeration values:

+
  • GET

    +
  • HEAD

    +
+

port

+

Integer

+

Destination port for health checks. If this parameter is not specified or set to 0, the host port of the VPC channel is used.

+

If this parameter is set to a non-zero value, the corresponding port is used for health checks.

+

Minimum: 0

+

Maximum: 65535

+

threshold_normal

+

Integer

+

Healthy threshold. It refers to the number of consecutive successful checks required for a backend server to be considered healthy.

+

Minimum: 1

+

Maximum: 10

+

threshold_abnormal

+

Integer

+

Unhealthy threshold, which refers to the number of consecutive failed checks required for a backend server to be considered unhealthy.

+

Minimum: 1

+

Maximum: 10

+

time_interval

+

Integer

+

Interval between consecutive checks. Unit: s. The value must be greater than the value of timeout.

+

Minimum: 1

+

Maximum: 300

+

http_code

+

String

+

Response codes for determining a successful HTTP response. The value can be any integer within 100–599 in one of the following formats:

+
  • Multiple values, for example, 200,201,202

    +
  • Range, for example, 200-299

    +
  • Multiple values and ranges, for example, 201,202,210-299. This parameter is required if protocol is set to http.

    +
+

enable_client_ssl

+

Boolean

+

Indicates whether to enable two-way authentication. If this function is enabled, the certificate specified in the backend_client_certificate configuration item of the gateway is used.

+

Default: false

+

status

+

Integer

+

Health check result.

+
  • 1: available

    +
  • 2: unavailable

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

timeout

+

Integer

+

Timeout for determining whether a health check fails. Unit: s. The value must be less than the value of time_interval.

+

Minimum: 1

+

Maximum: 30

+

vpc_channel_id

+

String

+

VPC channel ID.

+

id

+

String

+

Health check ID.

+

create_time

+

String

+

Creation time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying health check configurations of a VPC channel

+
{
+  "http_code" : "200",
+  "path" : "/vpc/demo",
+  "port" : 22,
+  "protocol" : "http",
+  "threshold_abnormal" : 5,
+  "threshold_normal" : 2,
+  "time_interval" : 10,
+  "timeout" : 5,
+  "enable_client_ssl" : false
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "protocol" : "http",
+  "path" : "/vpc/demo",
+  "method" : "GET",
+  "port" : 22,
+  "threshold_abnormal" : 5,
+  "threshold_normal" : 2,
+  "time_interval" : 10,
+  "http_code" : "200",
+  "enable_client_ssl" : false,
+  "status" : 1,
+  "timeout" : 5,
+  "id" : "3b3d02026c5f402d85e8645ea95b0816",
+  "vpc_channel_id" : "d38c55c926ca44c2bfb37886d93b9a0d",
+  "create_time" : "2020-07-23T07:11:57Z"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified, parameter name:members"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateIngressEipV2.html b/docs/apig/api-ref/UpdateIngressEipV2.html new file mode 100644 index 00000000..418862c8 --- /dev/null +++ b/docs/apig/api-ref/UpdateIngressEipV2.html @@ -0,0 +1,366 @@ + + +

Updating Public Inbound Access Bandwidth of a Gateway

+

Function

This API is used to update the public inbound access bandwidth of a gateway that uses ELB for load balancing.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/ingress-eip

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

bandwidth_size

+

No

+

Integer

+

Public inbound access bandwidth.

+

Unit: Mbit/s

+

bandwidth_charging_mode

+

No

+

String

+

Billing type of the public inbound access bandwidth.

+
  • bandwidth: billed by bandwidth
+

Default: bandwidth

+

Enumeration values:

+
  • bandwidth
+
+
+
+

Response Parameters

Status code: 202

+ +
+ + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

instance_id

+

String

+

Gateway ID.

+

message

+

String

+

Public access address change task.

+

job_id

+

String

+

Task ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Updating public inbound access bandwidth of a gateway

+
{
+  "bandwidth_size" : 5,
+  "bandwidth_charging_mode" : "bandwidth"
+}
+
+

Example Responses

Status code: 202

+

Accepted

+
{
+  "instance_id" : "6a7d71827fd54572b1f31aa9548fcc81",
+  "message" : "JOB_ASSIGNED_FOR_UPDATE_0077I:The job JOB-a7c1241c33334490a3fdcd11102bcbda is assigned to the instance 6a7d71827fd54572b1f31aa9548fcc81 for running updating",
+  "job_id" : "JOB-a7c1241c33334490a3fdcd11102bcbda"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIC.9211",
+  "error_msg" : "update bandwidth size failed"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

202

+

Accepted

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateInstanceV2.html b/docs/apig/api-ref/UpdateInstanceV2.html new file mode 100644 index 00000000..560086db --- /dev/null +++ b/docs/apig/api-ref/UpdateInstanceV2.html @@ -0,0 +1,768 @@ + + +

Updating a Dedicated Gateway

+

Function

This API is used to update a dedicated gateway.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}

+ +
+ + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

description

+

No

+

String

+

Gateway description. The value can contain up to 255 characters except > and <.

+

maintain_begin

+

No

+

String

+

Start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.

+

During the maintenance time period, O&M personnel perform maintenance on the gateway. During this period, services can still be used, but occasionally there may be temporary interruptions. Scheduled maintenance occurs infrequently (typically once every several months).

+

maintain_end

+

No

+

String

+

End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.

+

During the maintenance time period, O&M personnel perform maintenance on the gateway. During this period, services can still be used, but occasionally there may be temporary interruptions. Scheduled maintenance occurs infrequently (typically once every several months).

+

instance_name

+

No

+

String

+

Gateway name.

+

Enter 3 to 64 characters, starting with a letter. Only letters, digits, hyphens (-), and underscores (_) are allowed.

+

Minimum: 3

+

Maximum: 64

+

security_group_id

+

No

+

String

+

Security group to which the gateway belongs.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console. Choose Access Control > Security Groups in the navigation pane. On the Security Groups page, click the target security group. Then view the security group ID on the displayed page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying Security Groups" in the VPC API Reference.
+

vpcep_service_name

+

No

+

String

+

Name of a VPC endpoint service.

+

It can contain max. 16 characters, including letters, digits, hyphens (-), and underscores.

+

If this parameter is not specified, the system automatically generates a name in the "{region}.{service_id}" format.

+

If this parameter is specified, the system automatically generates a name in the "{region}.{vpcep_service_name}.{service_id}" format.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Gateway ID.

+

project_id

+

String

+

ID of the tenant to which the gateway belongs.

+

instance_name

+

String

+

Gateway name.

+

status

+

String

+

Instance status:

+
  • Creating: The instance is being created.
  • CreateSuccess: The instance is created successfully.
  • CreateFail: The instance fails to be created.
  • Initing: The instance is being initialized.
  • Registering: The instance is being registered.
  • Running: The instance is running.
  • InitingFailed: The instance fails to be initialized.
  • RegisterFailed: The instance fails to be registered.
  • Installing: The instance is being installed.
  • InstallFailed: The instance fails to be installed.
  • Updating: The instance is being upgraded.
  • UpdateFailed: The instance fails to be upgraded.
  • Rollbacking: The instance is being rolled back.
  • RollbackSuccess: The instance is rolled back successfully.
  • RollbackFailed: The instance fails to be rolled back.
  • Deleting: The instance is being deleted.
  • DeleteFailed: The instance fails to be deleted.
  • Unregistering: The instance is being deregistered.
  • UnRegisterFailed: The instance fails to be deregistered.
  • CreateTimeout: Creation of the instance times out.
  • InitTimeout: Initialization of the instance times out.
  • RegisterTimeout: Registration of the instance times out.
  • InstallTimeout: Installation of the instance times out.
  • UpdateTimeout: Upgrading of the instance times out.
  • RollbackTimeout: Rollback of the instance times out.
  • DeleteTimeout: Deletion of the instance times out.
  • UnregisterTimeout: Deregistration of the instance times out.
  • Starting: The instance is being started.
  • Freezing: The instance is being frozen.
  • Frozen: The instance is frozen.
  • Restarting: The instance is being restarted.
  • RestartFail: The instance fails to be restarted.
  • Unhealthy: The instance is abnormal.
  • RestartTimeout: Restart of the instance times out.
  • Resizing: The instance specification is changing.
  • ResizeFailed: The instance specification fails to be changed.
  • ResizeTimeout: The instance specification change times out.
+

Enumeration values:

+
  • Creating
  • CreateSuccess
  • CreateFail
  • Initing
  • Registering
  • Running
  • InitingFailed
  • RegisterFailed
  • Installing
  • InstallFailed
  • Updating
  • UpdateFailed
  • Rollbacking
  • RollbackSuccess
  • RollbackFailed
  • Deleting
  • DeleteFailed
  • Unregistering
  • UnRegisterFailed
  • CreateTimeout
  • InitTimeout
  • RegisterTimeout
  • InstallTimeout
  • UpdateTimeout
  • RollbackTimeout
  • DeleteTimeout
  • UnregisterTimeout
  • Starting
  • Freezing
  • Frozen
  • Restarting
  • RestartFail
  • Unhealthy
  • RestartTimeout
  • Resizing
  • ResizeFailed
  • ResizeTimeout
+

instance_status

+

Integer

+

Instance status ID:

+
  • 1: Creating
  • 2: Created successfully
  • 3: Creation failed
  • 4: Initializing
  • 5: Registering
  • 6: Running
  • 7: Initialization failed
  • 8: Registration failed
  • 10: Installing
  • 11: Installation failed
  • 12: Upgrading
  • 13: Upgrade failed
  • 20: Rolling back
  • 21: Rolled back
  • 22: Rollback failed
  • 23: Deleting
  • 24: Deletion failed
  • 25: Deregistering
  • 26: Deregistration failed
  • 27: Creation timed out
  • 28: Initialization timed out
  • 29: Registration timed out
  • 30: Installation timed out
  • 31: Upgrade timed out
  • 32: Rollback timed out
  • 33: Deletion timed out
  • 34: Deregistration timed out
  • 35: Starting
  • 36: Freezing
  • 37: Frozen
  • 38: Restarting
  • 39: Restart failed
  • 40: Abnormal
  • 41: Restart timed out
  • 42: Changing specification
  • 43: Specification change failed
  • 44: Specification change timed out
+

Enumeration values:

+
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 10
  • 11
  • 12
  • 13
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
+

type

+

String

+

Gateway type.

+

The default value is apig.

+

spec

+

String

+

Gateway edition.

+
  • BASIC
  • PROFESSIONAL
  • ENTERPRISE
  • PLATINUM
+

Enumeration values:

+
  • BASIC
  • PROFESSIONAL
  • ENTERPRISE
  • PLATINUM
+

create_time

+

Long

+

Time when the gateway is created. The time is in the Unix timestamp format.

+

enterprise_project_id

+

String

+

Enterprise project ID. This parameter is required for an enterprise account.

+

eip_address

+

String

+

EIP bound to the gateway.

+

charging_mode

+

Integer

+

Billing mode of the gateway.

+
  • 0: pay-per-use
  • 1: This parameter is not used currently.
+

Enumeration values:

+
  • 0
  • 1
+

cbc_metadata

+

String

+

This parameter is not used currently.

+

loadbalancer_provider

+

String

+

Type of the load balancer used by the gateway.

+
  • ELB
+

Enumeration values:

+
  • elb
+

description

+

String

+

Description about the gateway.

+

vpc_id

+

String

+

VPC ID.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console, and click the name of a VPC to view the VPC ID on the displayed details page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying VPCs" in the VPC API Reference.
+

subnet_id

+

String

+

Subnet network ID.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console and click the target subnet on the Subnets page. You can view the network ID on the displayed page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying Subnets" in the VPC API Reference.
+

security_group_id

+

String

+

ID of the security group to which the gateway belongs.

+

You can obtain it in either of the following ways:

+
  • Method 1: Log in to the VPC console. Choose Access Control > Security Groups in the navigation pane. On the Security Groups page, click the target security group. Then view the security group ID on the displayed page.
  • Method 2: Call the corresponding VPC API. For details, see section "Querying Security Groups" in the VPC API Reference.
+

maintain_begin

+

String

+

Start time of the maintenance time window. It must be in the format "xx:00:00". The value of xx can be 02, 06, 10, 14, 18, or 22.

+

During the maintenance time period, the O&M personnel can perform maintenance operations on the gateway. During maintenance, services can still be used, but occasionally there may be temporary service interruptions. Scheduled maintenance occurs infrequently (typically once every several months).

+

maintain_end

+

String

+

End time of the maintenance time window. It must be in the format "xx:00:00". There is a 4-hour difference between the start time and end time.

+

During the maintenance time period, the O&M personnel can perform maintenance operations on the gateway. During maintenance, services can still be used, but occasionally there may be temporary service interruptions. Scheduled maintenance occurs infrequently (typically once every several months).

+

ingress_ip

+

String

+

VPC ingress address.

+

user_id

+

String

+

ID of the account to which the gateway belongs.

+

nat_eip_address

+

String

+

IP address for public outbound access.

+

bandwidth_size

+

Integer

+

Outbound access bandwidth.

+

bandwidth_charging_mode

+

String

+

Billing mode of the public outbound access bandwidth.

+

available_zone_ids

+

String

+

AZ.

+

instance_version

+

String

+

Gateway version.

+

virsubnet_id

+

String

+

Subnet network ID.

+

Currently, this parameter is not supported.

+

roma_eip_address

+

String

+

ROMA EIP.

+

Currently, this parameter is not supported.

+

listeners

+

Object

+

Listener information.

+

Currently, this parameter is not supported.

+

supported_features

+

Array of strings

+

Supported features.

+

endpoint_service

+

EndpointService object

+

VPC endpoint service details.

+

This parameter will be deprecated. Use endpoint_services instead.

+

endpoint_services

+

Array of EndpointService objects

+

VPC endpoint services.

+

node_ips

+

NodeIps object

+

VPC endpoint ID.

+

publicips

+

Array of IpDetails objects

+

Public inbound access addresses.

+

privateips

+

Array of IpDetails objects

+

Private inbound access addresses.

+

unreliable_ips

+

Array of strings

+

List of unreliable gateway inbound access IP addresses, to which the subdomain name of the group is not CNAMEd. The DEFAULT group cannot be accessed directly using the IP address in this list.

+

is_releasable

+

Boolean

+

Whether the gateway can be released.

+
  • true: The gateway can be released.
  • false: The gateway cannot be released.
+

ingress_bandwidth_charging_mode

+

String

+

Billing mode of the public inbound access bandwidth.

+
+
+ +
+ + + + + + + + + + + + + +
Table 5 EndpointService

Parameter

+

Type

+

Description

+

service_name

+

String

+

VPC endpoint service name.

+

created_at

+

String

+

Creation time.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 NodeIps

Parameter

+

Type

+

Description

+

livedata

+

Array of strings

+

LiveData node IP addresses.

+

shubao

+

Array of strings

+

Shubao node IP addresses.

+
+
+ +
+ + + + + + + + + + + + + +
Table 7 IpDetails

Parameter

+

Type

+

Description

+

ip_address

+

String

+

IP address.

+

bandwidth_size

+

Integer

+

Bandwidth.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 12 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying a gateway

+
{
+  "description" : "test create instance",
+  "instance_name" : "apig-demo"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "available_zone_ids" : "[xx-xxx-7a, xx-xxx-7b]",
+  "bandwidth_size" : 5,
+  "description" : "test create instance",
+  "enterprise_project_id" : "0",
+  "instance_name" : "apig-demo",
+  "maintain_begin" : "22:00:00",
+  "maintain_end" : "02:00:00",
+  "security_group_id" : "36d0ec18-bd10-4da7-86f3-ad7a5ddc55d7",
+  "spec" : "PROFESSIONAL",
+  "subnet_id" : "a938121c-11c4-4c91-b983-bc9acd347bb5",
+  "vpc_id" : "0957108c-257c-4ce0-9e93-527d279ce763",
+  "unreliable_ips" : [ "192.xx.xxx.xxx" ]
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIC.7211",
+  "error_msg" : "Parameter value does not match the rules, parameter name[maintainBegin]"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIC.7102",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIC.7106",
+  "error_msg" : "No permissions to request for the method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIC.7302",
+  "error_msg" : "Instance not found"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIC.9000",
+  "error_msg" : "Failed to request internal service"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateMemberGroup.html b/docs/apig/api-ref/UpdateMemberGroup.html new file mode 100644 index 00000000..4dcea8a8 --- /dev/null +++ b/docs/apig/api-ref/UpdateMemberGroup.html @@ -0,0 +1,600 @@ + + +

Updating a Backend Server Group of a VPC Channel

+

Function

This API is used to update a backend server group of a VPC channel.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups/{member_group_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+

member_group_id

+

Yes

+

String

+

Backend server group ID of the VPC channel.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

member_group_name

+

Yes

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

No

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

No

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

No

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

No

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

No

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

No

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 4 MicroserviceLabel

Parameter

+

Mandatory

+

Type

+

Description

+

label_name

+

Yes

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

Yes

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

member_group_name

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

member_group_id

+

String

+

ID of the backend server group of the VPC channel.

+

create_time

+

String

+

Time when the backend server group is created.

+

update_time

+

String

+

Time when the backend server group is updated.

+
+
+ +
+ + + + + + + + + + + + + +
Table 6 MicroserviceLabel

Parameter

+

Type

+

Description

+

label_name

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 200

+

OK

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified, parameter name:members"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdatePlugin.html b/docs/apig/api-ref/UpdatePlugin.html new file mode 100644 index 00000000..73e5f546 --- /dev/null +++ b/docs/apig/api-ref/UpdatePlugin.html @@ -0,0 +1,595 @@ + + +

Modifying a Plug-in

+

Function

This API is used to modify a plug-in.

+ +
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

plugin_id

+

Yes

+

String

+

Plug-in ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

plugin_name

+

Yes

+

String

+

Plug-in name. Enter 3 to 255 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

plugin_type

+

Yes

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.

    +
  • set_resp_headers: HTTP response header management.

    +
  • kafka_log: Kafka log push.

    +
  • breaker: Circuit breaker.

    +
  • rate_limit: Request throttling.

    +
  • third_auth: Third-party authentication.

    +
+

Enumeration values:

+
  • cors

    +
  • set_resp_headers

    +
  • kafka_log

    +
  • breaker

    +
  • rate_limit

    +
  • third_auth

    +
+

plugin_scope

+

Yes

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global

    +
+

plugin_content

+

Yes

+

String

+

Plug-in content in JSON format. For details, see the model definition.

+
  • CorsPluginContent

    +
  • SetRespHeadersContent

    +
  • KafkaLogContent

    +
  • BreakerContent

    +
  • RateLimitContent

    +
  • ThirdAuthContent

    +
+

Maximum: 65535

+

remark

+

No

+

String

+

Plug-in description, with a maximum of 255 characters.

+

Maximum: 255

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

plugin_id

+

String

+

Plug-in ID.

+

plugin_name

+

String

+

Plug-in name. Start with a letter, and include only letters, digits, hyphens (-), and underscores(_). (3 to 255 characters)

+

plugin_type

+

String

+

Plug-in type.

+
  • cors: Cross-origin resource sharing.

    +
  • set_resp_headers: HTTP response header management.

    +
  • kafka_log: Kafka log push.

    +
  • breaker: Circuit breaker.

    +
  • rate_limit: Request throttling.

    +
  • third_auth: Third-party authentication.

    +
+

Enumeration values:

+
  • cors

    +
  • set_resp_headers

    +
  • kafka_log

    +
  • breaker

    +
  • rate_limit

    +
  • third_auth

    +
+

plugin_scope

+

String

+

Plug-in scope. global: Visible to all gateways.

+

Enumeration values:

+
  • global

    +
+

plugin_content

+

String

+

Plug-in content in JSON format. For details, see the model definition.

+
  • CorsPluginContent

    +
  • SetRespHeadersContent

    +
  • KafkaLogContent

    +
  • BreakerContent

    +
  • RateLimitContent

    +
  • ThirdAuthContent

    +
+

Maximum: 65535

+

remark

+

String

+

Plug-in description, with a maximum of 255 characters.

+

Maximum: 255

+

create_time

+

String

+

Creation time.

+

update_time

+

String

+

Update time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 200

+

OK

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.3326",
+  "error_msg" : "The plugin name already exists"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3068",
+  "error_msg" : "Plugin b294018ee0554156a875b3513e02e5b9 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateRequestThrottlingPolicyV2.html b/docs/apig/api-ref/UpdateRequestThrottlingPolicyV2.html new file mode 100644 index 00000000..e51e61c9 --- /dev/null +++ b/docs/apig/api-ref/UpdateRequestThrottlingPolicyV2.html @@ -0,0 +1,578 @@ + + +

Modifying a Request Throttling Policy

+

Function

This API is used to modify the information about a request throttling policy.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

throttle_id

+

Yes

+

String

+

Request throttling policy ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

app_call_limits

+

No

+

Integer

+

Maximum number of times the API can be accessed by an app within the same period. The value of this parameter cannot exceed the user call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

name

+

Yes

+

String

+

Request throttling policy name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

time_unit

+

Yes

+

String

+

Time unit for limiting the number of API calls.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

remark

+

No

+

String

+

Description of the request throttling policy, which can contain a maximum of 255 characters.

+

api_call_limits

+

Yes

+

Integer

+

Maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS. You can change the default limit to meet service requirements. The maximum value is 2,147,483,647. Enter a positive integer.

+

type

+

No

+

Integer

+

Type of the request throttling policy.

+
  • 1: API-based, limiting the maximum number of times a single API bound to the policy can be called within the specified period.

    +
  • 2: API-shared, limiting the maximum number of times all APIs bound to the policy can be called within the specified period.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

enable_adaptive_control

+

No

+

String

+

Indicates whether to enable dynamic request throttling.

+
  • TRUE

    +
  • FALSE

    +
+

Currently, this parameter is not supported.

+

user_call_limits

+

No

+

Integer

+

Maximum number of times the API can be accessed by a user within the same period. The value of this parameter cannot exceed the Max. API Requests. The maximum value is 2,147,483,647. Enter a positive integer.

+

time_interval

+

Yes

+

Integer

+

Period of time for limiting the number of API calls. This parameter applies with each API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

ip_call_limits

+

No

+

Integer

+

Maximum number of times the API can be accessed by an IP address within the same period. The value of this parameter cannot exceed the API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

app_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an app within the same period. The value of this parameter cannot exceed the user call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

name

+

String

+

Request throttling policy name. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, and underscores (_) are allowed.

+

time_unit

+

String

+

Time unit for limiting the number of API calls.

+

Enumeration values:

+
  • SECOND

    +
  • MINUTE

    +
  • HOUR

    +
  • DAY

    +
+

remark

+

String

+

Description of the request throttling policy, which can contain a maximum of 255 characters.

+

api_call_limits

+

Integer

+

Maximum number of times an API can be accessed within a specified period. The value of this parameter cannot exceed the default limit 200 TPS. You can change the default limit to meet service requirements. The maximum value is 2,147,483,647. Enter a positive integer.

+

type

+

Integer

+

Type of the request throttling policy.

+
  • 1: API-based, limiting the maximum number of times a single API bound to the policy can be called within the specified period.

    +
  • 2: API-shared, limiting the maximum number of times all APIs bound to the policy can be called within the specified period.

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

enable_adaptive_control

+

String

+

Indicates whether to enable dynamic request throttling.

+
  • TRUE

    +
  • FALSE

    +
+

Currently, this parameter is not supported.

+

user_call_limits

+

Integer

+

Maximum number of times the API can be accessed by a user within the same period. The value of this parameter cannot exceed the Max. API Requests. The maximum value is 2,147,483,647. Enter a positive integer.

+

time_interval

+

Integer

+

Period of time for limiting the number of API calls. This parameter applies with each API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

ip_call_limits

+

Integer

+

Maximum number of times the API can be accessed by an IP address within the same period. The value of this parameter cannot exceed the API call limit. The maximum value is 2,147,483,647. Enter a positive integer.

+

id

+

String

+

Request throttling policy ID.

+

bind_num

+

Integer

+

Number of APIs to which the request throttling policy has been bound.

+

is_inclu_special_throttle

+

Integer

+

Indicates whether an excluded request throttling configuration has been created.

+
  • 1: yes

    +
  • 2: no

    +
+

Enumeration values:

+
  • 1

    +
  • 2

    +
+

create_time

+

String

+

Creation time.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying a request throttling policy (max. API requests: 800; max. user requests: 500; max. app requests: 300; max. IP address requests: 600; period: 1s)

+
{
+  "name" : "throttle_demo",
+  "remark" : "Total: 800 calls/second; user: 500 calls/second; app: 300 calls/second; IP address: 600 calls/second",
+  "type" : 1,
+  "time_interval" : 1,
+  "ip_call_limits" : 600,
+  "app_call_limits" : 300,
+  "time_unit" : "SECOND",
+  "api_call_limits" : 800,
+  "user_call_limits" : 500
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "name" : "throttle_demo",
+  "create_time" : "2020-07-31T08:44:02.205366118Z",
+  "remark" : "Total: 800 calls/second; user: 500 calls/second; app: 300 calls/second; IP address: 600 calls/second",
+  "type" : 1,
+  "time_interval" : 1,
+  "ip_call_limits" : 600,
+  "app_call_limits" : 300,
+  "time_unit" : "SECOND",
+  "api_call_limits" : 800,
+  "id" : "3437448ad06f4e0c91a224183116e965",
+  "user_call_limits" : 500,
+  "enable_adaptive_control" : "FALSE",
+  "bind_num" : 0,
+  "is_inclu_special_throttle" : 2
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3005",
+  "error_msg" : "Request throttling policy 3437448ad06f4e0c91a224183116e965 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateSignatureKeyV2.html b/docs/apig/api-ref/UpdateSignatureKeyV2.html new file mode 100644 index 00000000..5c6505a3 --- /dev/null +++ b/docs/apig/api-ref/UpdateSignatureKeyV2.html @@ -0,0 +1,533 @@ + + +

Modifying a Signature Key

+

Function

This API is used to modify the information about a signature key.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/signs/{sign_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

sign_id

+

Yes

+

String

+

Signature key ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

Signature key name. It can contain letters, digits, and underscores(_) and must start with a letter.

+

Minimum: 3

+

Maximum: 64

+

sign_type

+

No

+

String

+

Signature key type.

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+

To use a basic signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

To use a public_key signature key, ensure that the public_key feature has been configured for your gateway. For details, see "Appendix" > "Supported Features". If your gateway does not support this feature, contact technical support to enable it.

+

To use an AES signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

Enumeration values:

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+

sign_key

+

No

+

String

+

Signature key.

+
  • hmac: The value contains 8 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • basic: The value contains 4 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter. If not specified, a key is automatically generated.

    +
  • public_key: The value contains 8 to 512 characters, including letters, digits, and special characters (_-+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
  • aes: The value contains 16 characters if the aes-128-cfb algorithm is used, or 32 characters if the aes-256-cfb algorithm is used. Letters, digits, and special characters (_-!@#$%+/=) are allowed. It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
+

sign_secret

+

No

+

String

+

Signature secret.

+
  • hmac: The value contains 16 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • basic: The value contains 8 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • public_key: The value can contain 16 to 2048 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
  • aes: The value contains 16 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
+

sign_algorithm

+

No

+

String

+

Signature algorithm. Specify a signature algorithm only when using an AES signature key. By default, no algorithm is used.

+

Enumeration values:

+
  • aes-128-cfb

    +
  • aes-256-cfb

    +
+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

Signature key name. It can contain letters, digits, and underscores(_) and must start with a letter.

+

Minimum: 3

+

Maximum: 64

+

sign_type

+

String

+

Signature key type.

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+

To use a basic signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

To use a public_key signature key, ensure that the public_key feature has been configured for your gateway. For details, see "Appendix" > "Supported Features". If your gateway does not support this feature, contact technical support to enable it.

+

To use an AES signature key, ensure that your gateway version supports it. If your gateway does not support this type of signature key, contact technical support to upgrade your gateway.

+

Enumeration values:

+
  • hmac

    +
  • basic

    +
  • public_key

    +
  • aes

    +
+

sign_key

+

String

+

Signature key.

+
  • hmac: The value contains 8 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • basic: The value contains 4 to 32 characters, including letters, digits, underscores (_), and hyphens (-). It must start with a letter. If not specified, a key is automatically generated.

    +
  • public_key: The value contains 8 to 512 characters, including letters, digits, and special characters (_-+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
  • aes: The value contains 16 characters if the aes-128-cfb algorithm is used, or 32 characters if the aes-256-cfb algorithm is used. Letters, digits, and special characters (_-!@#$%+/=) are allowed. It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
+

sign_secret

+

String

+

Signature secret.

+
  • hmac: The value contains 16 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • basic: The value contains 8 to 64 characters. Letters, digits, and special characters (_-!@#$%) are allowed. It must start with a letter or digit. If not specified, a key is automatically generated.

    +
  • public_key: The value can contain 16 to 2048 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
  • aes: The value contains 16 characters, including letters, digits, and special characters (_-!@#$%+/=). It must start with a letter, digit, plus sign (+), or slash (/). If not specified, a key is automatically generated.

    +
+

sign_algorithm

+

String

+

Signature algorithm. Specify a signature algorithm only when using an AES signature key. By default, no algorithm is used.

+

Enumeration values:

+
  • aes-128-cfb

    +
  • aes-256-cfb

    +
+

update_time

+

String

+

Update time.

+

create_time

+

String

+

Creation time.

+

id

+

String

+

Signature key ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 412

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error description.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 10 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modify the name of a specified signature key.

+
{
+  "name" : "signature_demo"
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "sign_secret" : "dc0************2b3",
+  "update_time" : "2020-08-03T03:50:14.989785802Z",
+  "create_time" : "2020-08-03T03:39:38Z",
+  "name" : "signature_demo",
+  "id" : "0b0e8f456b8742218af75f945307173c",
+  "sign_key" : "a071a20d460a4f639a636c3d7e3d8163",
+  "sign_type" : "hmac"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:name. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3017",
+  "error_msg" : "Signature key 0b0e8f456b8742218af75f945307173c does not exist"
+}
+

Status code: 412

+

PreconditionFailed

+
{
+  "error_code" : "APIG.3548",
+  "error_msg" : "sign_type=public_key not supported by instance 6a29d4e9-69a0-412a-aabe-9898ec0903b0"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

412

+

PreconditionFailed

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateSlDomainSettingV2.html b/docs/apig/api-ref/UpdateSlDomainSettingV2.html new file mode 100644 index 00000000..a9a8ad09 --- /dev/null +++ b/docs/apig/api-ref/UpdateSlDomainSettingV2.html @@ -0,0 +1,320 @@ + + +

Setting Accessibility of a Debugging Domain Name

+

Function

This API is used to disable or enable the debugging domain name bound to an API group.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/sl-domain-access-settings

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

group_id

+

Yes

+

String

+

API group ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

sl_domain_access_enabled

+

Yes

+

Boolean

+

Specifies whether the debugging domain name is accessible. Options: true and false.

+

Default: true

+
+
+
+

Response Parameters

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Setting accessibility of a debugging domain name

+
{
+  "sl_domain_access_enabled" : true
+}
+
+

Example Responses

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2011",
+  "error_msg" : "Invalid parameter value,parameterName:sl_domain_access_enabled"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3020",
+  "error_msg" : "The URL domain does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

204

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateSpecialThrottlingConfigurationV2.html b/docs/apig/api-ref/UpdateSpecialThrottlingConfigurationV2.html new file mode 100644 index 00000000..980d422e --- /dev/null +++ b/docs/apig/api-ref/UpdateSpecialThrottlingConfigurationV2.html @@ -0,0 +1,417 @@ + + +

Modifying an Excluded Request Throttling Configuration

+

Function

This API is used to modify an excluded configuration of a request throttling policy.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}/throttle-specials/{strategy_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

throttle_id

+

Yes

+

String

+

Request throttling policy ID.

+

strategy_id

+

Yes

+

String

+

Excluded configuration ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

call_limits

+

Yes

+

Long

+

Maximum number of times an excluded object can access an API within the throttling period.

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 Response body parameters

Parameter

+

Type

+

Description

+

id

+

String

+

Excluded configuration ID.

+

call_limits

+

Integer

+

Maximum number of times an excluded object can access an API within the throttling period.

+

apply_time

+

String

+

Throttling period.

+

app_name

+

String

+

App name.

+

app_id

+

String

+

App ID.

+

object_id

+

String

+

ID of an object specified in the excluded configuration.

+

object_type

+

String

+

Excluded object type, which can be APP or USER.

+

object_name

+

String

+

Name of an app or a tenant to which the excluded configuration applies.

+

throttle_id

+

String

+

Request throttling policy ID.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 5 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 6 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 7 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 8 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 9 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

Modifying an excluded configuration of a request throttling policy

+
{
+  "call_limits" : 200
+}
+
+

Example Responses

Status code: 200

+

OK

+
{
+  "call_limits" : 200,
+  "app_name" : "app_demo",
+  "object_name" : "app_demo",
+  "object_id" : "356de8eb7a8742168586e5daf5339965",
+  "throttle_id" : "3437448ad06f4e0c91a224183116e965",
+  "apply_time" : "2020-08-04T02:40:56Z",
+  "id" : "a3e9ff8db55544ed9db91d8b048770c0",
+  "app_id" : "356de8eb7a8742168586e5daf5339965",
+  "object_type" : "APP"
+}
+

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2003",
+  "error_msg" : "The parameter value is too large,parameterName:call_limits. Please refer to the support documentation"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3013",
+  "error_msg" : "Excluded request throttling configuration a3e9ff8db55544ed9db91d8b048770c0 does not exist"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/UpdateVpcChannelV2.html b/docs/apig/api-ref/UpdateVpcChannelV2.html new file mode 100644 index 00000000..3b6e31d9 --- /dev/null +++ b/docs/apig/api-ref/UpdateVpcChannelV2.html @@ -0,0 +1,1570 @@ + + +

Updating a VPC Channel

+

Function

This API is used to update the parameters of a VPC channel.

+

If the VPC channel is overwritten with an empty backend instance list, all the existing backend instances will be deleted.

+

If the VPC channel is overwritten with an empty backend server group list, all the existing backend server groups will be deleted.

+
+

Calling Method

For details, see Calling APIs.

+
+

URI

PUT /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}

+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 1 Path Parameters

Parameter

+

Mandatory

+

Type

+

Description

+

project_id

+

Yes

+

String

+

Project ID. For details about how to obtain it, see Obtaining a Project ID.

+

instance_id

+

Yes

+

String

+

Gateway ID, which can be obtained from the gateway information on the APIG console.

+

vpc_channel_id

+

Yes

+

String

+

VPC channel ID.

+
+
+
+

Request Parameters

+
+ + + + + + + + + + + +
Table 2 Request header parameters

Parameter

+

Mandatory

+

Type

+

Description

+

X-Auth-Token

+

Yes

+

String

+

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

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 3 Request body parameters

Parameter

+

Mandatory

+

Type

+

Description

+

name

+

Yes

+

String

+

VPC channel name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

port

+

Yes

+

Integer

+

Host port of the VPC channel.

+

Range: 1–65535.

+

balance_strategy

+

Yes

+

Integer

+

Distribution algorithm.

+
  • 1: Weighted round robin (WRR).
  • 2: Weighted least connections (WLC).
  • 3: Source hashing.
  • 4: URI hashing.
+

Default: 1

+

Enumeration values:

+
  • 1
  • 2
  • 3
  • 4
+

member_type

+

Yes

+

String

+

Member type of the VPC channel.

+
  • ip
  • ecs
+

Default: ecs

+

Enumeration values:

+
  • ip
  • ecs
+

type

+

No

+

Integer

+

VPC channel type. The default type is server.

+
  • 2: Server type.
  • 3: Microservice type.
+

Default: 2

+

Enumeration values:

+
  • 2
  • 3
+

dict_code

+

No

+

String

+

Dictionary code of the VPC channel.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

This parameter is currently not supported.

+

Minimum: 3

+

Maximum: 64

+

member_groups

+

No

+

Array of MemberGroupCreate objects

+

Backend server groups of the VPC channel.

+

members

+

No

+

Array of MemberInfo objects

+

Backend instances of the VPC channel.

+

vpc_health_config

+

No

+

VpcHealthConfig object

+

Health check details.

+

microservice_info

+

No

+

MicroServiceCreate object

+

Microservice details.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 4 MemberGroupCreate

Parameter

+

Mandatory

+

Type

+

Description

+

member_group_name

+

Yes

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

No

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

No

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

No

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

No

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

No

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

No

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 5 MicroserviceLabel

Parameter

+

Mandatory

+

Type

+

Description

+

label_name

+

Yes

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

Yes

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 6 MemberInfo

Parameter

+

Mandatory

+

Type

+

Description

+

host

+

No

+

String

+

Backend server address.

+

This parameter is required when the member type is IP address.

+

Maximum: 64

+

weight

+

No

+

Integer

+

Weight.

+

The higher the weight is, the more requests a backend service will receive.

+

Minimum: 0

+

Maximum: 10000

+

is_backup

+

No

+

Boolean

+

Indicates whether the backend service is a standby node.

+

After you enable this function, the backend service serves as a standby node. It works only when all non-standby nodes are faulty.

+

This function is supported only when your gateway has been upgraded to the corresponding version. If your gateway does not support this function, contact technical support.

+

Default: false

+

member_group_name

+

No

+

String

+

Backend server group name. The server group facilitates backend service address modification.

+

status

+

No

+

Integer

+

Backend server status.

+
  • 1: available
  • 2: unavailable
+

Enumeration values:

+
  • 1
  • 2
+

port

+

No

+

Integer

+

Backend server port.

+

Minimum: 0

+

Maximum: 65535

+

ecs_id

+

No

+

String

+

Backend server ID.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), and underscores (_).

+

Maximum: 255

+

ecs_name

+

No

+

String

+

Backend server name.

+

This parameter is required if the backend instance type is ecs. The value can contain 1 to 64 characters, including letters, digits, hyphens (-), underscores (_), and periods (.).

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 7 VpcHealthConfig

Parameter

+

Mandatory

+

Type

+

Description

+

protocol

+

Yes

+

String

+

Protocol for performing health checks on backend servers in the VPC channel.

+
  • TCP
  • HTTP
  • HTTPS
+

Enumeration values:

+
  • TCP
  • HTTP
  • HTTPS
+

path

+

No

+

String

+

Destination path for health checks. This parameter is required if protocol is set to http or https.

+

method

+

No

+

String

+

Request method for health checks.

+

Default: GET

+

Enumeration values:

+
  • GET
  • HEAD
+

port

+

No

+

Integer

+

Destination port for health checks. If this parameter is not specified or set to 0, the host port of the VPC channel is used.

+

If this parameter is set to a non-zero value, the corresponding port is used for health checks.

+

Minimum: 0

+

Maximum: 65535

+

threshold_normal

+

Yes

+

Integer

+

Healthy threshold. It refers to the number of consecutive successful checks required for a backend server to be considered healthy.

+

Minimum: 1

+

Maximum: 10

+

threshold_abnormal

+

Yes

+

Integer

+

Unhealthy threshold, which refers to the number of consecutive failed checks required for a backend server to be considered unhealthy.

+

Minimum: 1

+

Maximum: 10

+

time_interval

+

Yes

+

Integer

+

Interval between consecutive checks. Unit: s. The value must be greater than the value of timeout.

+

Minimum: 1

+

Maximum: 300

+

http_code

+

No

+

String

+

Response codes for determining a successful HTTP response. The value can be any integer within 100–599 in one of the following formats:

+
  • Multiple values, for example, 200,201,202
  • Range, for example, 200-299
  • Multiple values and ranges, for example, 201,202,210-299. This parameter is required if protocol is set to http.
+

enable_client_ssl

+

No

+

Boolean

+

Indicates whether to enable two-way authentication. If this function is enabled, the certificate specified in the backend_client_certificate configuration item of the gateway is used.

+

Default: false

+

status

+

No

+

Integer

+

Health check result.

+
  • 1: available
  • 2: unavailable
+

Enumeration values:

+
  • 1
  • 2
+

timeout

+

Yes

+

Integer

+

Timeout for determining whether a health check fails. Unit: s. The value must be less than the value of time_interval.

+

Minimum: 1

+

Maximum: 30

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
Table 8 MicroServiceCreate

Parameter

+

Mandatory

+

Type

+

Description

+

service_type

+

No

+

String

+

Microservice type. Options:

+
  • CSE: CSE microservice registration center
  • CCE: CCE workload
+

Enumeration values:

+
  • CSE
  • CCE
+

cse_info

+

No

+

MicroServiceInfoCSEBase object

+

CSE microservice details. This parameter is required if service_type is set to CSE.

+

cce_info

+

No

+

MicroServiceInfoCCEBase object

+

CCE workload details. This parameter is required if service_type is set to CCE. Either app_name or any of label_key and label_value must be set. If only app_name is set, label_key='app' and label_value=app_name.

+
+
+ +
+ + + + + + + + + + + + + + + + +
Table 9 MicroServiceInfoCSEBase

Parameter

+

Mandatory

+

Type

+

Description

+

engine_id

+

Yes

+

String

+

Microservice engine ID.

+

Maximum: 64

+

service_id

+

Yes

+

String

+

Microservice ID.

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 10 MicroServiceInfoCCEBase

Parameter

+

Mandatory

+

Type

+

Description

+

cluster_id

+

Yes

+

String

+

CCE cluster ID.

+

Maximum: 64

+

namespace

+

Yes

+

String

+

Namespace.

+

Maximum: 64

+

workload_type

+

Yes

+

String

+

Workload type.

+
  • deployment
  • statefulset
  • daemonset
+

Enumeration values:

+
  • deployment
  • statefulset
  • daemonset
+

app_name

+

No

+

String

+

App name. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_key

+

No

+

String

+

Service label key. Start with a letter or digit, and use only letters, digits, and these special characters: -_./:(). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_value

+

No

+

String

+

Service label value. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+
+
+
+

Response Parameters

Status code: 200

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 11 Response body parameters

Parameter

+

Type

+

Description

+

name

+

String

+

VPC channel name.

+

It can contain 3 to 64 characters, starting with a letter. Only letters, digits, hyphens (-), underscores (_), and periods (.) are allowed.

+

port

+

Integer

+

Host port of the VPC channel.

+

Range: 1–65535.

+

balance_strategy

+

Integer

+

Distribution algorithm.

+
  • 1: Weighted round robin (WRR).
  • 2: Weighted least connections (WLC).
  • 3: Source hashing.
  • 4: URI hashing.
+

Default: 1

+

Enumeration values:

+
  • 1
  • 2
  • 3
  • 4
+

member_type

+

String

+

Member type of the VPC channel.

+
  • ip
  • ecs
+

Default: ecs

+

Enumeration values:

+
  • ip
  • ecs
+

type

+

Integer

+

VPC channel type. The default type is server.

+
  • 2: Server type.
  • 3: Microservice type.
+

Default: 2

+

Enumeration values:

+
  • 2
  • 3
+

dict_code

+

String

+

Dictionary code of the VPC channel.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

This parameter is currently not supported.

+

Minimum: 3

+

Maximum: 64

+

create_time

+

String

+

Time when the VPC channel is created.

+

id

+

String

+

VPC channel ID.

+

status

+

Integer

+

VPC channel status.

+
  • 1: normal
  • 2: abnormal
+

Enumeration values:

+
  • 1
  • 2
+

member_groups

+

Array of MemberGroupInfo objects

+

Backend server groups.

+

microservice_info

+

MicroServiceInfo object

+

Microservice information.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 12 MemberGroupInfo

Parameter

+

Type

+

Description

+

member_group_name

+

String

+

Name of the VPC channel's backend server group. It can contain 3 to 64 characters, starting with a letter. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed.

+

member_group_remark

+

String

+

Description of the backend server group.

+

Maximum: 255

+

member_group_weight

+

Integer

+

Weight of the backend server group.

+

If the server group contains servers and a weight has been set for it, the weight is automatically used to assign weights to servers in this group.

+

Minimum: 0

+

Maximum: 100

+

dict_code

+

String

+

Dictionary code of the backend server group.

+

The value can contain letters, digits, hyphens (-), underscores (_), and periods (.).

+

Currently, this parameter is not supported.

+

Minimum: 3

+

Maximum: 64

+

microservice_version

+

String

+

Version of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

Maximum: 64

+

microservice_port

+

Integer

+

Port of the backend server group. This parameter is supported only when the VPC channel type is microservice. If the port number is 0, all addresses in the backend server group use the original load balancing port to inherit logic.

+

Minimum: 0

+

Maximum: 65535

+

microservice_labels

+

Array of MicroserviceLabel objects

+

Tags of the backend server group. This parameter is supported only when the VPC channel type is microservice.

+

member_group_id

+

String

+

ID of the backend server group of the VPC channel.

+

create_time

+

String

+

Time when the backend server group is created.

+

update_time

+

String

+

Time when the backend server group is updated.

+
+
+ +
+ + + + + + + + + + + + + +
Table 13 MicroserviceLabel

Parameter

+

Type

+

Description

+

label_name

+

String

+

Tag name.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+

label_value

+

String

+

Tag value.

+

Start and end with a letter or digit. Use only letters, digits, hyphens (-), underscores (_), and periods (.). (Max. 63 characters.)

+

Minimum: 1

+

Maximum: 63

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 14 MicroServiceInfo

Parameter

+

Type

+

Description

+

id

+

String

+

Microservice ID.

+

instance_id

+

String

+

Gateway ID.

+

service_type

+

String

+

Microservice type. Options:

+
  • CSE: CSE microservice registration center
  • CCE: CCE workload
+

Enumeration values:

+
  • CSE
  • CCE
+

cse_info

+

MicroServiceInfoCSE object

+

CSE microservice details.

+

cce_info

+

MicroServiceInfoCCE object

+

CCE microservice workload details.

+

update_time

+

String

+

Microservice update time.

+

create_time

+

String

+

Microservice creation time.

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 15 MicroServiceInfoCSE

Parameter

+

Type

+

Description

+

engine_id

+

String

+

Microservice engine ID.

+

Maximum: 64

+

service_id

+

String

+

Microservice ID.

+

Maximum: 64

+

engine_name

+

String

+

Microservice engine name.

+

service_name

+

String

+

Microservice name.

+

register_address

+

String

+

Registration center address.

+

cse_app_id

+

String

+

App to which the microservice belongs.

+

version

+

String

+

Microservice version, which has been discarded and is reflected in the version of the backend server group.

+

Maximum: 64

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 16 MicroServiceInfoCCE

Parameter

+

Type

+

Description

+

cluster_id

+

String

+

CCE cluster ID.

+

Maximum: 64

+

namespace

+

String

+

Namespace.

+

Maximum: 64

+

workload_type

+

String

+

Workload type.

+
  • deployment
  • statefulset
  • daemonset
+

Enumeration values:

+
  • deployment
  • statefulset
  • daemonset
+

app_name

+

String

+

App name. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_key

+

String

+

Service label key. Start with a letter or digit, and use only letters, digits, and these special characters: -_./:(). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

label_value

+

String

+

Service label value. Start with a letter, and include only letters, digits, periods (.), hyphens (-), and underscores (_). (1 to 64 characters)

+

Minimum: 1

+

Maximum: 64

+

cluster_name

+

String

+

CCE cluster name.

+
+
+

Status code: 400

+ +
+ + + + + + + + + + + + + +
Table 17 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 401

+ +
+ + + + + + + + + + + + + +
Table 18 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 403

+ +
+ + + + + + + + + + + + + +
Table 19 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 404

+ +
+ + + + + + + + + + + + + +
Table 20 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+

Status code: 500

+ +
+ + + + + + + + + + + + + +
Table 21 Response body parameters

Parameter

+

Type

+

Description

+

error_code

+

String

+

Error code.

+

error_msg

+

String

+

Error message.

+
+
+
+

Example Requests

+
+

Example Responses

Status code: 200

+

OK

+ +

Status code: 400

+

Bad Request

+
{
+  "error_code" : "APIG.2001",
+  "error_msg" : "The request parameters must be specified, parameter name:members"
+}
+

Status code: 401

+

Unauthorized

+
{
+  "error_code" : "APIG.1002",
+  "error_msg" : "Incorrect token or token resolution failed"
+}
+

Status code: 403

+

Forbidden

+
{
+  "error_code" : "APIG.1005",
+  "error_msg" : "No permissions to request this method"
+}
+

Status code: 404

+

Not Found

+
{
+  "error_code" : "APIG.3023",
+  "error_msg" : "The VPC channel does not exist,id:56a7d7358e1b42459c9d730d65b14e59"
+}
+

Status code: 500

+

Internal Server Error

+
{
+  "error_code" : "APIG.9999",
+  "error_msg" : "System error"
+}
+
+

Status Codes

+
+ + + + + + + + + + + + + + + + + + + + + + +

Status Code

+

Description

+

200

+

OK

+

400

+

Bad Request

+

401

+

Unauthorized

+

403

+

Forbidden

+

404

+

Not Found

+

500

+

Internal Server Error

+
+
+
+

Error Codes

See Error Codes.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/VPCEndpointsManagement.html b/docs/apig/api-ref/VPCEndpointsManagement.html new file mode 100644 index 00000000..660e6bfd --- /dev/null +++ b/docs/apig/api-ref/VPCEndpointsManagement.html @@ -0,0 +1,24 @@ + + +

VPC Endpoint Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/VpcChannelManagement.html b/docs/apig/api-ref/VpcChannelManagement.html new file mode 100644 index 00000000..e794b804 --- /dev/null +++ b/docs/apig/api-ref/VpcChannelManagement.html @@ -0,0 +1,48 @@ + + +

VPC Channel Management

+

+
+
+ + + +
+ diff --git a/docs/apig/api-ref/apig-api-0001.html b/docs/apig/api-ref/apig-api-0001.html new file mode 100644 index 00000000..007bc00a --- /dev/null +++ b/docs/apig/api-ref/apig-api-0001.html @@ -0,0 +1,9 @@ + + +

API Usage

+

Public cloud application programming interfaces (APIs) comply with the RESTful API design principles. REST-based web services are organized into resources. Each resource is identified by one or more Uniform Resource Identifiers (URIs). An application accesses a resource based on the resource's Unified Resource Locator (URL). A URL is usually in the following format: https://Endpoint/uri. In the URL, uri indicates the resource path, that is, the API access path.

+

Public cloud APIs use HTTPS as the transmission protocol. Requests/Responses are transmitted by using JSON messages, with media type represented by Application/json.

+

For details about how to use APIs, see API Usage Guidelines.

+
+
+ diff --git a/docs/apig/api-ref/apig-api-180713003.html b/docs/apig/api-ref/apig-api-180713003.html new file mode 100644 index 00000000..174acc4e --- /dev/null +++ b/docs/apig/api-ref/apig-api-180713003.html @@ -0,0 +1,15 @@ + + +

Calling APIs

+
+
+ +
+ diff --git a/docs/apig/api-ref/apig-api-180713011.html b/docs/apig/api-ref/apig-api-180713011.html new file mode 100644 index 00000000..e1801c25 --- /dev/null +++ b/docs/apig/api-ref/apig-api-180713011.html @@ -0,0 +1,48 @@ + + +

Making an API Request

+

This section describes the structure of a REST API request, and uses the APIG API for creating an API group as an example to demonstrate how to call an API.

+

Request URI

A request URI is in the following format:

+

{URI-scheme} :// {Endpoint} / {resource-path} ? {query-string}

+

Although a request URI is included in the request header, most programming languages or frameworks require the request URI to be transmitted separately.

+ +

For example, if you want to create an API group in a region, set URI-scheme to HTTPS, Endpoint to apig_endpoint, and resource-path to /v2/{project_id}/apigw/instances/{instance_id}/api-groups. Combine the parameters in the URI.

+
https://{apig_endpoint}/v2/{project_id}/apigw/instances/{instance_id}/api-groups
+

To simplify the URI display in this document, each API is provided only with a resource-path and a request method. The URI-scheme of all APIs is HTTPS, and the endpoints of all APIs in the same region are identical.

+
+
+

Request Method

The HTTP protocol defines the following request methods that can be used to send a request to the server:

+ +

For example, in the case of the API used to create an API group, the request method is POST. The request is as follows:

+
POST https://{apig_endpoint}/v2/{project_id}/apigw/instances/{instance_id}/api-groups
+
+

Request Header

You can also add additional header fields to a request, such as the fields required by a specified URI or HTTP method. For example, to request for the authentication information, add Content-Type, which specifies the request body type.

+
Common request header fields are as follows:
  • Content-Type: specifies the request body type or format. This field is mandatory and its default value is application/json. Other values of this field will be provided for specific APIs if any.
  • X-Sdk-Date: specifies the time when a request is sent. This field is optional. When AK/SK authentication is enabled, this field is automatically specified when SDK is used to sign the request. For more information, see AK/SK-based Authentication.
  • Authorization: specifies signature authentication information. This field is optional. When AK/SK authentication is enabled, this field is automatically specified when SDK is used to sign the request. For more information, see AK/SK-based Authentication.
  • X-Auth-Token: specifies a user token only for token-based API authentication. The user token is a response to the API used to obtain a user token. This API is the only one that does not require authentication.
  • X-Project-ID: specifies subproject ID. This field is optional and can be used in multi-project scenarios. The X-Project-ID field is mandatory in the request header for accessing resources in a sub-project through AK/SK-based authentication.
  • X-Domain-ID: specifies account ID, which is optional. When you call APIs of global services using AK/SK-based authentication, X-Domain-ID needs to be configured in the request header.
+
+
If AK/SK authentication is used, the requests of the API used to create an API group with the added headers are as follows:
POST https://{apig_endpoint}/v2/{project_id}/apigw/instances/{instance_id}/api-groups
+Content-Type: application/json
+X-Sdk-Date: 20240416T095341Z 
+Authorization: SDK-HMAC-SHA256 Access=****************, SignedHeaders=content-type;host;x-sdk-date, Signature=****************
+
+
+

Request Body

The body of a request is often sent in a structured format as specified in Content-Type. The request body transfers content other than the request header.

+

Request bodies vary between APIs. Some APIs do not require the request body, such as the APIs requested using the GET and DELETE methods.

+

For the API used to create an API group, you can obtain the request parameters and parameter description from the API request. Here is an example request that includes a body. The bold fields must be configured as required.

+ +
POST https://{apig_endpoint}/v2/{project_id}/v2/{project_id}/apigw/instances/{instance_id}/api-groups
+Content-Type: application/json
+X-Sdk-Date: 20240416T095341Z 
+Authorization: SDK-HMAC-SHA256 Access=****************, SignedHeaders=content-type;host;x-sdk-date, Signature=****************
+{
+	"name": "APIGroup_test",
+	"remark": "api group remark"
+}
+

If all data required for the API request is available, you can send the request to call the API through curl, Postman, or coding.

+
+
+
+ +
+ diff --git a/docs/apig/api-ref/apig-api-180713204.html b/docs/apig/api-ref/apig-api-180713204.html new file mode 100644 index 00000000..5fa6b521 --- /dev/null +++ b/docs/apig/api-ref/apig-api-180713204.html @@ -0,0 +1,15 @@ + + +

Pagination Query

+

APIG supports pagination query of resource lists, such as an API list.

+

To perform a pagination query, add the following parameters to the URL:

+ +

Example:

+
GET /v1.0/apigw/apis?page_size=10&page_no=5
+
+
+ +
+ diff --git a/docs/apig/api-ref/apig-api-180713205.html b/docs/apig/api-ref/apig-api-180713205.html new file mode 100644 index 00000000..1a9fe924 --- /dev/null +++ b/docs/apig/api-ref/apig-api-180713205.html @@ -0,0 +1,13 @@ + + +

Result Filtering

+

APIG filters query results by object attribute when you query a resource list, such as an API list.

+

Example:

+
GET /v1.0/apigw/apis?id=xxxx
+
+
+ +
+ diff --git a/docs/apig/api-ref/apig-api-180713206.html b/docs/apig/api-ref/apig-api-180713206.html new file mode 100644 index 00000000..5752d551 --- /dev/null +++ b/docs/apig/api-ref/apig-api-180713206.html @@ -0,0 +1,112 @@ + + +

HTTP Status Codes

+

Table 1 describes common status codes.

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Table 1 HTTP status codes

Status Code & Message

+

Description

+

200 OK

+

The request has been processed successfully.

+

204 No Content

+

The server successfully processed the request and is not returning any content.

+

400 Bad Request

+

The server failed to process the request. Possible causes include:

+
  1. Malformed request syntax
  2. Invalid request message framing
+

401 Unauthorized

+

The request requires user authentication. For example, the username and password are required.

+

403 Forbidden

+

The server understood the request, but is refusing to fulfill it.

+

404 Not Found

+

The server has not found anything matching the request URI.

+

405 Method Not Allowed

+

The method specified in the request line is not allowed for the resource identified by the request URI.

+

406 Not Acceptable

+

The response generated by the server could not be accepted by the client.

+

407 Proxy Authentication Required

+

You must first authenticate yourself with the proxy.

+

408 Request Timeout

+

The server timed out waiting for the request.

+

409 Conflict

+

The request could not be completed due to a conflict with the current state of the resource.

+

410 Gone

+

The requested resource is no longer available at the server and no forwarding address is known.

+

412 Precondition Failed

+

The server does not meet one of the preconditions that the requester put on the request.

+

500 Internal Server Error

+

The server encountered an unexpected condition which prevented it from fulfilling the request.

+

501 Not Implemented

+

The server does not support the functionality required to fulfill the request.

+

502 Bad Gateway

+

The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.

+

503 Service Unavailable

+

The request could not be processed by the server because the server is being maintained or overloaded.

+

504 Gateway Timeout

+

The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.

+
+
+
+
+ +
+ diff --git a/docs/apig/api-ref/apig-api-180713215.html b/docs/apig/api-ref/apig-api-180713215.html new file mode 100644 index 00000000..f222cfe8 --- /dev/null +++ b/docs/apig/api-ref/apig-api-180713215.html @@ -0,0 +1,38 @@ + + +

Change History

+
+
+ + + + + + + + + + + + + + + + +
Table 1 Change history

Released On

+

Description

+

2024-10-18

+

This issue incorporates the following changes:

+ +

2024-07-05

+

This issue incorporates the following changes:

+
  • Added the API for verifying an API group name.
  • Added the API for verifying the API definition.
  • Added the API for setting accessibility of a debugging domain name.
  • Added the API for enabling backend servers.
  • Added the API for disabling backend servers.
  • Added the API for modifying VPC channel health checks.
  • Added the API for adding or updating a backend server group of a VPC channel.
  • Added the API for querying backend server groups of a VPC channel.
  • Added the API for querying a backend server group of a VPC channel.
  • Added the API for deleting a backend server group of a VPC channel.
  • Added the API for updating a backend server group of a VPC channel.
  • Added the API for querying monitoring data.
  • Added the API for updating or binding an EIP to a dedicated gateway.
  • Added the API for unbinding the EIP of a dedicated gateway.
  • Added the API for enabling public inbound access.
  • Added the API for updating public inbound access bandwidth of a gateway.
  • Added the API for disabling public inbound access for a gateway.
  • Added the API for querying gateway constraints.
  • Added the APIs for VPC endpoint management.
  • Added the APIs for gateway tag management.
  • Added the API for microservice center management.
  • Added the APIs for SSL certificate management.
  • Added the APIs for plug-in management.
  • Added the API for querying quotas associated with a credential.
  • Added the API for configuring access control settings for an app.
  • Added the API for querying access control details about an app.
  • Added the API for deleting access control settings of an app.
  • Added the APIs for credential quota management.
  • Added the APIs for asynchronous task management.
+

2023-10-26

+

This issue incorporates the following change:

+

Updated the APIs for creating a dedicated gateway and querying gateway configurations.

+

2022-12-30

+

This issue is the first official release.

+
+
+
+ diff --git a/docs/apig/api-ref/apig-api-20200402.html b/docs/apig/api-ref/apig-api-20200402.html new file mode 100644 index 00000000..d77ab2a1 --- /dev/null +++ b/docs/apig/api-ref/apig-api-20200402.html @@ -0,0 +1,882 @@ + + +

Supported Features

+

The following table lists the features that are supported by dedicated gateways.

+

If the gateway you use does not have specific features, contact technical support to upgrade your gateway.

+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Feature Name

+

Feature Description

+

Configurable

+

Feature Configuration Example

+

Configuration Parameter

+

Parameter Description

+

Default Value

+

Value Range

+

lts

+

Reporting of Shubao access logs

+

Yes

+

{"name":"lts","enable":true,"config": "{\"group_id\": ",\"topic_id\":\"\",\"log_group\":\"\",\"log_stream\":\"\"}"}

+

group_id

+

Log group ID.

+

-

+

-

+

topic_id

+

Log stream ID.

+

log_group

+

Name of a log group.

+

log_stream

+

Name of a log stream.

+

gateway_responses

+

Custom gateway responses

+

No

+

-

+

-

+

-

+

-

+

-

+

ratelimit

+

Request throttling limit configuration

+

Yes

+

{"name":"ratelimit","enable":true,"config": "{\"api_limits\": 500}"}

+

api_limits

+

Default request throttling value applied to all APIs. Set this parameter properly to meet service requirements. A small value may constantly throttle your services.

+

200 calls per second

+

1–1,000,000 calls per second

+

request_body_size

+

Configuration of the maximum request body size

+

Yes

+

{"name":"request_body_size","enable":true,"config": "104857600"}

+

request_body_size

+

Maximum size of the body allowed in an API request.

+

12 MB

+

1–9536 MB

+

backend_timeout

+

Maximum backend timeout configuration

+

Yes

+

{"name":"backend_timeout","enable":true,"config": "{"max_timeout": 500}"}

+

max_timeout

+

Maximum timeout for APIG to request a backend service.

+

60,000 ms

+

1-600,000 ms

+

app_token

+

app_token authentication

+

Yes

+

{"name":"app_token","enable":true,"config": "{\"enable\": \"on\", \"app_token_expire_time\": 3600, \"app_token_uri\": \"/v1/apigw/oauth2/token\", \"refresh_token_expire_time\": 7200}"}

+

enable

+

Whether to enable this feature.

+

Off

+

On/Off

+

app_token_expire_time

+

Validity period of the access token.

+

3600s

+

1–72,000s

+

refresh_token_expire_time

+

Validity period of the refresh token.

+

7200s

+

1–72,000s

+

app_token_uri

+

URI used for obtaining the token.

+

/v1/apigw/oauth2/token

+

-

+

app_token_key

+

Token encryption key.

+

-

+

-

+

app_api_key

+

app_api_key authentication

+

Yes

+

{"name":"app_api_key","enable":true,"config": "on"}

+

-

+

-

+

Off

+

On/Off

+

app_basic

+

app_basic authentication

+

Yes

+

{"name":"app_basic","enable":true,"config": "on"}

+

-

+

-

+

Off

+

On/Off

+

app_secret

+

app_secret authentication

+

Yes

+

{"name":"app_secret","enable":true,"config": "on"}

+

-

+

-

+

Off

+

On/Off

+

app_jwt

+

app_jwt authentication

+

Yes

+

{"name":"app_jwt","enable":true,"config": "{\"enable\": \"on\", \"auth_header\": \"Authorization\"}"}

+

enable

+

Whether to enable app_jwt authentication.

+

Off

+

On/Off

+

auth_header

+

app_jwt authentication header.

+

Authorization

+

-

+

public_key

+

Public_key backend signatures

+

Yes

+

{"name":"public_key","enable":true,"config": "{\"enable\": \"on\", \"public_key_uri_prefix\": \"/apigw/authadv/v2/public-key/\"}"}

+

enable

+

Whether to enable public_key authentication.

+

Off

+

On/Off

+

public_key_uri_prefix

+

URI prefix used for obtaining the public key.

+

/apigw/authadv/v2/public-key/

+

-

+

backend_token_allow

+

Allowing tenants to transparently transmit tokens to the backend

+

Yes

+

{"name":"backend_token_allow","enable":true,"config": "{\"backend_token_allow_users\": [\"user_name\"]}"}

+

backend_token_allow_users

+

Regular expression for transparently transmitting the token to the common tenant whitelist of the tenant to match the domain name of the common tenant.

+

-

+

-

+

sign_basic

+

Basic signature keys

+

No

+

-

+

-

+

-

+

-

+

-

+

multi_auth

+

Two-factor authentication

+

No

+

-

+

-

+

-

+

-

+

-

+

backend_client_certificate

+

Backend two-way authentication

+

Yes

+

{"name":"backend_client_certificate","enable":true,"config": "{\"enable\": \"on\",\"ca\": \"\",\"content\": \"\",\"key\": \"\"}"}

+

enable

+

Whether to enable this feature.

+

Off

+

On/Off

+

ca

+

CA file of two-way authentication.

+

-

+

-

+

content

+

Two-way authentication file.

+

-

+

-

+

key

+

Private key of two-way authentication.

+

-

+

-

+

ssl_ciphers

+

HTTPS cipher suites

+

Yes

+

{"name":"ssl_ciphers","enable":true,"config": "config": "{\"ssl_ciphers\": [\"ECDHE-ECDSA-AES256-GCM-SHA384\"]}"}

+

ssl_ciphers

+

Encryption and decryption suites supported. The ssl_ciphers parameter cannot be left blank and can contain only the options in the default value.

+

-

+

ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA384,ECDHE-ECDSA-AES128-SHA256,ECDHE-RSA-AES128-SHA256

+

route

+

Custom routes

+

No

+

-

+

-

+

-

+

-

+

-

+

cors

+

Plug-ins

+

No

+

-

+

-

+

-

+

-

+

-

+

real_ip_from_xff

+

X-Forwarded-For header for identifying IP addresses during access control and request throttling

+

Yes

+

{"name": "real_ip_from_xff","enable": true,"config": {"enable": "on","xff_index": -1}}

+

enable

+

Whether to enable this feature.

+

Off

+

On/Off

+

xff_index

+

Sequence number of an IP address in the X-Forwarded-For header. The value of this parameter can be 0 or a positive or negative number. If the value is 0 or a positive number, the IP address of the corresponding index is obtained from the X-Forwarded-For header. If the value is a negative number, the IP address in reverse index order is obtained from the X-Forwarded-For header. For example, assume that the X-Forwarded-For header of a request received by API gateway contains three IP addresses: IP1, IP2, and IP3. If the value of xff_index is 0, IP1 is obtained. If the value of xff_index is 1, IP2 is obtained. If the value of xff_index is –1, IP3 is obtained.

+

-1

+

Valid Int32 value

+

app_route

+

IP address access

+

Yes

+

{"name":"app_route","enable":true,"config": "on"}

+

-

+

-

+

Off

+

On/Off

+

vpc_name_modifiable

+

Load balance channel name modification

+

Yes

+

{"name":"vpc_name_modifiable","enable":true,"config": "on"}

+

-

+

-

+

on

+

On/Off

+

default_group_host_trustlist

+

+

Access to the DEFAULT group from IP addresses that are not inbound access addresses of the current gateway

+

+

Yes

+

{"name":"default_group_host_trustlist","enable": true,"config": "{\"enable\":\"on\",\"hosts\":[\"123.2.2.2\",\"202.2.2.2\"]}"}

+

+

enable

+

Whether to enable this feature.

+

-

+

+

On/Off

+

+

hosts

+

IP addresses that are not inbound access addresses of the current gateway.

+

-

+

-

+

throttle_strategy

+

+

Request throttling

+

+

Yes

+

{"name":"throttle_strategy","enable":true,"config": "{\"enable\": \"on\",\"strategy\": \"local\"}"}

+

+

enable

+

Whether to enable this feature.

+

Off

+

+

On/Off

+

strategy

+

Request throttling mode.

+

-

+

cluster/local

+

custom_log

+

+

+

Printing custom request headers, query strings, and cookies in logs

+

+

+

Yes

+

{"name":"custom_log","enable":true,"config": "{\"custom_logs\":[{\"location\":\"header\",\"name\":\"a1234\"}]}"}

+

+

+

custom_logs

+

Custom logs.

+

-

+

+

+

Max. 10 items.

+

location

+

Location.

+

header/query/cookie

+

name

+

Name.

+

-

+

real_ip_header_getter

+

+

Using a custom header to obtain source IP addresses

+

+

Yes

+

{"name":"real_ip_header_getter","enable":true,"config": "{\"enable\": \"on\",\"header_getter\": \"header:testIP\"}"}

+

enable

+

Whether to enable this feature.

+

Off

+

+

On/Off

+

+

header_getter

+

Custom header for obtaining source IP addresses.

+

-

+

-

+

policy_cookie_param

+

Using cookies in backend policy conditions

+

Yes

+

{"name":"policy_cookie_param","enable":true,"config": "on"}

+

-

+

-

+

Off

+

On/Off

+

app_quota

+

Client quotas

+

No

+

-

+

-

+

-

+

-

+

-

+

app_acl

+

Request throttling policies

+

No

+

-

+

-

+

-

+

-

+

-

+

set_resp_headers

+

Response header management plug-ins

+

No

+

-

+

-

+

-

+

-

+

-

+

vpc_backup

+

Primary/Standby VPC channels

+

No

+

-

+

-

+

-

+

-

+

-

+

sign_aes

+

AES signature keys

+

No

+

-

+

-

+

-

+

-

+

-

+

kafka_log

+

Adding, deleting, modifying, and querying Kafka log push plug-ins

+

No

+

-

+

-

+

-

+

-

+

-

+

backend_retry_count

+

Backend retry configuration

+

No

+

-

+

-

+

-

+

-

+

-

+

policy_sys_param

+

Using system parameters in backend policy conditions

+

No

+

-

+

-

+

-

+

-

+

-

+

breaker

+

Circuit breakers

+

No

+

-

+

-

+

-

+

-

+

-

+

content_type_configurable

+

Returning request parameter type (Content-Type) when querying APIs

+

No

+

-

+

-

+

-

+

-

+

-

+

rate_limit_plugin

+

Request throttling plug-ins

+

No

+

-

+

-

+

-

+

-

+

-

+

breakerv2

+

Circuit breakers for degrading services in case of overload

+

No

+

-

+

-

+

-

+

-

+

-

+

sm_cipher_type

+

Encrypting local sensitive data with commercial cryptographic algorithms

+

No

+

-

+

-

+

-

+

-

+

-

+

rate_limit_algorithm

+

Request throttling algorithm switchover

+

No

+

-

+

-

+

-

+

-

+

-

+
+
+
+
+ +
+ diff --git a/docs/apig/api-ref/en-us_image_0000001892790552.png b/docs/apig/api-ref/en-us_image_0000001892790552.png new file mode 100644 index 00000000..7bed6646 Binary files /dev/null and b/docs/apig/api-ref/en-us_image_0000001892790552.png differ diff --git a/docs/apig/api-ref/en-us_image_0000001988900321.png b/docs/apig/api-ref/en-us_image_0000001988900321.png new file mode 100644 index 00000000..f1615d0f Binary files /dev/null and b/docs/apig/api-ref/en-us_image_0000001988900321.png differ