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 @@ + + +
This API is used to accept or reject a VPC endpoint connection for a gateway.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/connections/action
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action + |
+Yes + |
+String + |
+Allow or reject connections. +
Enumeration values: +
|
+
endpoints + |
+Yes + |
+Array of strings + |
+VPC endpoints. +Array Length: 1 - 50 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Accept a connection from a VPC endpoint.
+{ + "action" : "receive", + "endpoints" : [ "9fa04c5e-64ec-4106-a014-2ad71ad9997d" ] +}+
Disable a VPC endpoint connection.
+{ + "action" : "reject", + "endpoints" : [ "9fa04c5e-64ec-4106-a014-2ad71ad9997d" ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Resource Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
+
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).
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/eip
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
eip_id + |
+No + |
+String + |
+EIP ID. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
eip_id + |
+String + |
+EIP ID. + |
+
eip_address + |
+String + |
+EIP. + |
+
eip_status + |
+String + |
+EIP status. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Binding an EIP to a gateway
+{ + "eip_id" : "85392b45-685c-4f77-b19a-14ad875b8190" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to add whitelist records in batches for a gateway's VPC endpoint service.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/permissions/batch-add
+ +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. + |
+
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. + |
+
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 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Add whitelist records for a vpc endpoint service.
+{ + "permissions" : [ "iam:domain::7cc2018e40394f7c9692f1713e76234d" ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Resource Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to enable public access for a dedicated gateway.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/nat-eip
+ +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. + |
+
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. + |
+
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. +
Default: bandwidth +Enumeration values: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Enabling public access for a gateway
+{ + "bandwidth_size" : "5", + "bandwidth_charging_mode" : "bandwidth" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to enable public inbound access for a gateway that uses ELB for load balancing.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/ingress-eip
+ +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. + |
+
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. + |
+
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. +
Default: bandwidth +Enumeration values: +
|
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Gateway ID. + |
+
message + |
+String + |
+Public access address change task. + |
+
job_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Enabling public inbound access for a gateway
+{ + "bandwidth_size" : 5, + "bandwidth_charging_mode" : "bandwidth" +}+
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 Code + |
+Description + |
+
---|---|
202 + |
+Accepted + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
members + |
+Yes + |
+Array of MemberInfo objects + |
+Backend instances. + |
+
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. +
Enumeration values: +
|
+
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 + |
+
Status code: 201
+ +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. + |
+
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. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Adding a cloud server IP address to a VPC channel
+{ + "members" : [ { + "host" : "192.168.2.25", + "weight" : 1, + "member_group_name" : "test" + } ] +}+
Adding a cloud server name to a VPC channel
+{ + "members" : [ { + "ecs_id" : "1082720c-3c15-409c-9ae3-4983ddfb6a9d", + "ecs_name" : "APIGtest02", + "weight" : 2 + } ] +}+
Status code: 201
+Created
+Example 1
+{ + "total" : 1, + "size" : 1, + "members" : [ { + "host" : "192.168.2.25", + "weight" : 1, + "is_backup" : false, + "member_group_name" : "test", + "status" : 1, + "port" : 22, + "ecs_id" : "3082720c-3c15-409c-9ae3-4983ddfb6a9d", + "ecs_name" : "APIGtest", + "id" : "683b6807cad54122a6777ad047a6178e", + "vpc_channel_id" : "105c6902457144a4820dff8b1ad63331", + "create_time" : "2020-07-23T09:13:24Z", + "member_group_id" : "cf868f0224084710a1e188b7d3057c52" + } ] +}+
Example 2
+{ + "total" : 2, + "size" : 2, + "members" : [ { + "host" : "192.168.0.17", + "weight" : 2, + "is_backup" : false, + "member_group_name" : "test02", + "status" : 1, + "port" : 22, + "ecs_id" : "1082720c-3c15-409c-9ae3-4983ddfb6a9d", + "ecs_name" : "APIGtest02", + "id" : "5c868f0224084710a1e188b7d3057c52", + "vpc_channel_id" : "105c6902457144a4820dff8b1ad63331", + "create_time" : "2020-07-23T09:03:53Z", + "member_group_id" : "df868f0224084710a1e188b7d3057c52" + }, { + "host" : "192.168.0.39", + "weight" : 1, + "is_backup" : false, + "member_group_name" : "test01", + "status" : 1, + "port" : 22, + "ecs_id" : "ebe1104f-1254-4ac6-8ed7-366bec84f36e", + "ecs_name" : "APIGtest01", + "id" : "33ac0e39d005492eb1f4683e66d1a0d1", + "vpc_channel_id" : "105c6902457144a4820dff8b1ad63331", + "create_time" : "2020-07-23T07:24:34Z", + "member_group_id" : "ef868f0224084710a1e188b7d3057c42" + } ] +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
+
+
+
+
This API is used to bind a credential quota with credentials.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}/binding-apps
+ +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 + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
app_ids + |
+Yes + |
+Array of strings + |
+Credential ID List. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
applies + |
+Array of AppQuotaAppBinding objects + |
+Credential and credential quota binding list. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
app_quota_id + |
+String + |
+Credential quota ID. + |
+
app_id + |
+String + |
+Credential ID. + |
+
bound_time + |
+String + |
+Binding time. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
{ + "app_ids" : [ "98df09fb-d459-4cbf-83a7-2b55ca6f3d5d" ] +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificate
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
url_domain + |
+String + |
+Custom domain name. + |
+
id + |
+String + |
+Domain ID. + |
+
status + |
+Integer + |
+CNAME resolution status. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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'" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains
+ +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. + |
+
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. + |
+
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: +
|
+
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. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
url_domain + |
+String + |
+Custom domain name. + |
+
id + |
+String + |
+Domain ID. + |
+
status + |
+Integer + |
+CNAME resolution status. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Binding a domain name to an API group
+{ + "url_domain" : "www.company.com" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
throttle_applys + |
+Array of ThrottleApiBinding objects + |
+Request throttling policy binding records. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
publish_id + |
+String + |
+API publication record ID. + |
+
scope + |
+Integer + |
+Scope of the policy. +
Currently, only "1" is supported. +Enumeration values: +
|
+
strategy_id + |
+String + |
+Request throttling policy ID. + |
+
apply_time + |
+String + |
+Binding time. + |
+
id + |
+String + |
+Binding record ID. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Binding a request throttling policy to an API
+{ + "publish_ids" : [ "40e7162dc6b94bbbbb1a60d2a24b1b0c" ], + "strategy_id" : "3437448ad06f4e0c91a224183116e965" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
sign_id + |
+Yes + |
+String + |
+Signature key ID. + |
+
publish_ids + |
+Yes + |
+Array of strings + |
+API publication record ID. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
bindings + |
+Array of SignApiBindingInfo objects + |
+APIs bound to the signature key. + |
+
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: +
|
+
sign_key + |
+String + |
+Signature key. +
|
+
sign_secret + |
+String + |
+Signature secret. +
|
+
sign_type + |
+String + |
+Signature key type. +
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: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Binding a signature key to a published API
+{ + "sign_id" : "0b0e8f456b8742218af75f945307173c", + "publish_ids" : [ "40e7162dc6b94bbbbb1a60d2a24b1b0c" ] +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
This API is used to bind a plug-in to APIs.
+Plug-ins can be bound only to published APIs.
+Plug-ins take effect immediately after binding.
+Plug-ins take effect immediately after being modified.
+An API can be bound with only one plug-in of the same type. Binding another plug-in will overwrite the previous one.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/attach
+ +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. + |
+
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. + |
+
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 + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
attached_plugins + |
+Array of PluginApiAttachInfo objects + |
+Bound plug-ins. + |
+
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. +
Enumeration values: +
|
+
plugin_scope + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Binding an API with plug-ins
+{ + "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID", + "api_ids" : [ "8aa097b00e9843efabc9c593d11b769d" ] +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to bind an API with plug-ins.
+Plug-ins can be bound only to published APIs.
+Plug-ins take effect immediately after binding.
+Plug-ins take effect immediately after being modified.
+An API can be bound with only one plug-in of the same type. Binding another plug-in will overwrite the previous one.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/plugins/attach
+ +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. + |
+
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. + |
+
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 + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
attached_plugins + |
+Array of PluginApiAttachInfo objects + |
+Bound plug-ins. + |
+
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. +
Enumeration values: +
|
+
plugin_scope + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Binding a plug-in to APIs
+{ + "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID", + "plugin_ids" : [ "5b729aa252764739b3s237ef0d66dc63" ] +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to bind a domain name with SSL certificates. Currently, only one certificate ID can be specified in certificate_ids.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificates/attach
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Binding a domain name with SSL certificates
+{ + "certificate_ids" : [ "a27be832f2e9441c8127fe48e3b5ac67" ] +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to bind an SSL certificate to a domain name.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/certificates/{certificate_id}/domains/attach
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
domains + |
+Yes + |
+Array of AttachOrDetachDomainInfo objects + |
+Domain names the certificate is bound to or unbound from. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Binding an SSL certificate to a domain name
+{ + "domains" : [ { + "domain" : "apigtest.example.com", + "instance_ids" : [ "f0fa1789-3b76-433b-a787-9892951c620e", "7d39549681c54d968ec2910da9da95cd" ] + } ] +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to add tags to a gateway or delete the tags of a gateway.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/instance-tags/action
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action + |
+Yes + |
+String + |
+Operation: create and delete. +Enumeration values: +
|
+
tags + |
+Yes + |
+Array of TmsKeyValue objects + |
+Tags. +A maximum of 20 tags can be created for a gateway. +Array Length: 0 - 20 + |
+
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 + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Adding tags for a gateway
+{ + "action" : "create", + "tags" : [ { + "key" : "test-key", + "value" : "test-value" + } ] +}+
Deleting tags of a gateway
+{ + "action" : "delete", + "tags" : [ { + "key" : "test-key1", + "value" : "test-value" + }, { + "key" : "test-key2" + } ] +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete multiple access control policies.
+Access control policies bound to APIs cannot be deleted.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/acls
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action + |
+Yes + |
+String + |
+The value must be delete. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
acls + |
+No + |
+Array of strings + |
+IDs of the access control policies to be deleted. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Deleting multiple access control policies
+{ + "acls" : [ "7eb619ecf2a24943b099833cd24a01ba", "3a68d39f115d4c128fccd6f624ea6109" ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind multiple access control policies from APIs.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action + |
+Yes + |
+String + |
+The value must be delete. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
acl_bindings + |
+No + |
+Array of strings + |
+IDs of the access control policy binding records to be canceled. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Unbinding multiple access control policies from APIs
+{ + "acl_bindings" : [ "332c5db1458a477b89b2ea741fec94a3" ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to disable backend servers of a VPC channel.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/batch-disable
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
member_ids + |
+No + |
+Array of strings + |
+Backend server IDs. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Disabling backend servers of a VPC channel
+{ + "member_ids" : [ "b20a5be94ded40cc8f2872ea3005cfb7", "5f918d104dc84480a75166ba99efff21" ] +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind a domain name's SSL certificates. Currently, only one certificate ID can be specified in certificate_ids.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificates/detach
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Unbinding a domain name's SSL certificates
+{ + "certificate_ids" : [ "a27be832f2e9441c8127fe48e3b5ac67" ] +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind an SSL certificate from a domain name.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/certificates/{certificate_id}/domains/detach
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
domains + |
+Yes + |
+Array of AttachOrDetachDomainInfo objects + |
+Domain names the certificate is bound to or unbound from. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Unbinding an SSL certificate from a domain name
+{ + "domains" : [ { + "domain" : "apigtest.example.com", + "instance_ids" : [ "f0fa1789-3b76-433b-a787-9892951c620e", "7d39549681c54d968ec2910da9da95cd" ] + } ] +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind request throttling policies from APIs.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action + |
+Yes + |
+String + |
+The value must be delete. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
throttle_bindings + |
+No + |
+Array of strings + |
+IDs of the request throttling policy binding records to be canceled. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Unbinding request throttling policies from APIs
+{ + "throttle_bindings" : [ "6a6a75b425df416cbdcd7821da30be8d", "b11e5970f732440dbea647580647d57f" ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to enable backend servers of a VPC channel.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/batch-enable
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
member_ids + |
+No + |
+Array of strings + |
+Backend server IDs. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Enabling backend servers of a VPC channel
+{ + "member_ids" : [ "b20a5be94ded40cc8f2872ea3005cfb7", "5f918d104dc84480a75166ba99efff21" ] +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/apis/publish
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action + |
+Yes + |
+String + |
+
|
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Publishing APIs
+{ + "apis" : [ "3a955b791bd24b1c9cd94c745f8d1aad", "abd9c4b2ff974888b0ba79be7e6b2762" ], + "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID", + "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600", + "remark" : "Published to the production environment" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/app-auths/{app_auth_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/apis/publish/{api_id}
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
version_id + |
+Yes + |
+String + |
+API version ID. + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Switching an API to a specified version
+{ + "version_id" : "ee1a5a38d3d3493abf1dc4ed6cacfa0b" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to check whether the API group name exists.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/check
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
{ + "group_name" : "ApiGroup_demo" +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to verify the API definition, that is, whether the API path or name already exists.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/apis/check
+ +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. + |
+
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. + |
+
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: +
|
+
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: +
This parameter is mandatory when type is set to path. +Enumeration values: +
|
+
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: +
Enumeration values: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
{ + "type" : "name", + "name" : "api_demo" +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apps/validation/{app_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+Name. + |
+
remark + |
+String + |
+Description. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
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).
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/acls
+ +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. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
acl_value + |
+Yes + |
+String + |
+One or more objects from which the access will be controlled. Separate multiple objects with commas. +
|
+
entity_type + |
+Yes + |
+String + |
+Object type. +
Enumeration values: +
|
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
acl_name + |
+String + |
+Name. + |
+
acl_type + |
+String + |
+Type. +
|
+
acl_value + |
+String + |
+Access control objects. + |
+
entity_type + |
+String + |
+Object type. +
|
+
id + |
+String + |
+ID. + |
+
update_time + |
+String + |
+Update time. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/apps
+ +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. + |
+
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. + |
+
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: _-!@#$% + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+Name. + |
+
remark + |
+String + |
+Description. + |
+
creator + |
+String + |
+Creator of the app. +
The value MARKET is currently not supported. +Enumeration values: +
|
+
update_time + |
+String + |
+Update time. + |
+
app_key + |
+String + |
+AppKey. + |
+
app_secret + |
+String + |
+AppSecret. + |
+
register_time + |
+String + |
+Registration time. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
app_type + |
+String + |
+App type. +
The default value is apig. Other types are not supported currently. +Enumeration values: +
|
+
roma_app_type + |
+String + |
+ROMA application type. +
Currently, this parameter is not supported. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating an app
+{ + "name" : "app_demo", + "remark" : "Demo app" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
acl_id + |
+Yes + |
+String + |
+Access control policy ID. + |
+
publish_ids + |
+Yes + |
+Array of strings + |
+API publication record ID. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
acl_bindings + |
+Array of AclApiBindingInfo objects + |
+Access control policy binding records. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Binding an access control policy to an API
+{ + "acl_id" : "7eb619ecf2a24943b099833cd24a01ba", + "publish_ids" : [ "40e7162dc6b94bbbbb1a60d2a24b1b0c" ] +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups
+ +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. + |
+
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. + |
+
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. +
The default value is V1. This parameter is not supported currently. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+API group name. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
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. +
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. +
|
+
version + |
+String + |
+Group version. +
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Domain ID. + |
+
domain + |
+String + |
+Domain name. + |
+
cname_status + |
+Integer + |
+CNAME resolution status of the domain name. +
|
+
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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating an API group
+{ + "name" : "api_group_001", + "remark" : "API group 1" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/apis
+ +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. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
version + |
+No + |
+String + |
+API version. +Maximum: 16 + |
+
req_protocol + |
+Yes + |
+String + |
+API request protocol: +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+Yes + |
+String + |
+API request method. If the request protocol is set to GRPC, the request method is fixed to POST. +Enumeration values: +
|
+
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: +
Custom authentication is unavailable if the request protocol is set to GRPC. +Enumeration values: +
|
+
auth_opt + |
+No + |
+AuthOpt object + |
+Security authentication parameter. + |
+
cors + |
+No + |
+Boolean + |
+Indicates whether CORS is supported. +
Default: false +Enumeration values: +
|
+
match_mode + |
+No + |
+String + |
+API matching mode: +
Enumeration values: +
|
+
backend_type + |
+Yes + |
+String + |
+Backend type. Options: +
Enumeration values: +
|
+
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: +
Coming soon. +Enumeration values: +
|
+
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. + |
+
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. +
Default: DISABLE +Enumeration values: +
|
+
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. + |
+
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. +
Enumeration values: +
|
+
network_type + |
+Yes + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
location + |
+Yes + |
+String + |
+Parameter location. +Enumeration values: +
|
+
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: +
|
+
valid_enable + |
+No + |
+Integer + |
+Indicates whether validity check is enabled. +
Default: 2 +Enumeration values: +
|
+
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: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
result_content + |
+No + |
+String + |
+Response. + |
+
effect_mode + |
+Yes + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
function_urn + |
+Yes + |
+String + |
+Function URN. + |
+
invocation_type + |
+Yes + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+Yes + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
effect_mode + |
+Yes + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
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: +
|
+
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: +
|
+
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. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
origin + |
+Yes + |
+String + |
+Parameter type. +
Enumeration values: +
|
+
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: +
|
+
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: +
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". + |
+
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: +
Enumeration values: +
|
+
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. +
This parameter is required when the policy type is param, system, cookie, or frontend_authorizer. +Enumeration values: +
|
+
condition_origin + |
+Yes + |
+String + |
+Policy type +
Enumeration values: +
|
+
condition_value + |
+Yes + |
+String + |
+Policy value. This parameter is required when the policy type is param, source, cookie, or frontend_authorizer. + |
+
Status code: 201
+ +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. +
Enumeration values: +
|
+
version + |
+String + |
+API version. +Maximum: 16 + |
+
req_protocol + |
+String + |
+API request protocol: +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+String + |
+API request method. If the request protocol is set to GRPC, the request method is fixed to POST. +Enumeration values: +
|
+
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: +
Custom authentication is unavailable if the request protocol is set to GRPC. +Enumeration values: +
|
+
auth_opt + |
+AuthOpt object + |
+Security authentication parameter. + |
+
cors + |
+Boolean + |
+Indicates whether CORS is supported. +
Default: false +Enumeration values: +
|
+
match_mode + |
+String + |
+API matching mode: +
Enumeration values: +
|
+
backend_type + |
+String + |
+Backend type. Options: +
Enumeration values: +
|
+
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: +
Coming soon. +Enumeration values: +
|
+
id + |
+String + |
+API ID. + |
+
status + |
+Integer + |
+App status. +
|
+
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. + |
+
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. +
Default: DISABLE +Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
|
+
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. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+API group name. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
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. +
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Domain ID. + |
+
domain + |
+String + |
+Domain name. + |
+
cname_status + |
+Integer + |
+CNAME resolution status of the domain name. +
|
+
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: +
|
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
function_urn + |
+String + |
+Function URN. + |
+
remark + |
+String + |
+Description. It cannot exceed 255 characters. + |
+
invocation_type + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+ID. + |
+
register_time + |
+String + |
+Registration time. + |
+
status + |
+Integer + |
+Backend service status. +
|
+
update_time + |
+String + |
+Update time. + |
+
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. +
|
+
update_time + |
+String + |
+Update time. + |
+
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: +
|
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
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: +
|
+
valid_enable + |
+Integer + |
+Indicates whether validity check is enabled. +
Default: 2 +Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+Parameter ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
function_urn + |
+String + |
+Function URN. + |
+
invocation_type + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
origin + |
+String + |
+Parameter type. +
Enumeration values: +
|
+
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: +
|
+
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: +
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. + |
+
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: +
Enumeration values: +
|
+
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. +
This parameter is required when the policy type is param, system, cookie, or frontend_authorizer. +Enumeration values: +
|
+
condition_origin + |
+String + |
+Policy type +
Enumeration values: +
|
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating a web backend API
+{ + "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600", + "match_mode" : "NORMAL", + "name" : "Api_http", + "auth_type" : "AUTHORIZER", + "authorizer_id" : "0d982c1ac3da493dae47627b6439fc5c", + "backend_type" : "HTTP", + "backend_api" : { + "url_domain" : "192.168.189.156:12346", + "req_protocol" : "HTTP", + "req_method" : "GET", + "req_uri" : "/test/benchmark", + "timeout" : 5000, + "retry_count" : "-1" + }, + "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", + "tags" : [ "webApi" ], + "req_params" : [ { + "name" : "query_demo", + "location" : "QUERY", + "type" : "STRING", + "required" : 1 + }, { + "name" : "header-demo", + "location" : "HEADER", + "type" : "STRING", + "required" : 2 + } ], + "backend_params" : [ { + "name" : "backHeader", + "value" : "header-demo", + "location" : "HEADER", + "origin" : "REQUEST" + }, { + "name" : "backQuery", + "value" : "query_demo", + "location" : "QUERY", + "origin" : "REQUEST" + }, { + "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" + } ] +}+
Creating a gRPC backend API
+{ + "group_id" : "12345abc9215b40bd84f4c469d56daebe", + "match_mode" : "NORMAL", + "name" : "Api_grpc", + "auth_type" : "APP", + "backend_type" : "GRPC", + "backend_api" : { + "req_protocol" : "GRPCS", + "req_method" : "POST", + "req_uri" : "/", + "timeout" : 5000, + "retry_count" : "-1", + "enable_client_ssl" : false, + "vpc_channel_status" : 1, + "vpc_channel_info" : { + "vpc_channel_id" : "abcd1234512345678aab9a2614a197ef4" + } + }, + "req_protocol" : "GRPCS", + "req_uri" : "/test/grpc", + "remark" : "GRPC backend API", + "type" : 1, + "req_method" : "POST", + "tags" : [ "grpcApi" ], + "cors" : false, + "auth_opt" : { + "app_code_auth_type" : "DISABLE" + } +}+
Creating a FunctionGraph backend API
+{ + "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600", + "match_mode" : "NORMAL", + "name" : "Api_function", + "auth_type" : "APP", + "backend_type" : "FUNCTION", + "func_info" : { + "authorizer_id" : "5b8cd3f06f004115aec69c58f57272c9", + "function_urn" : "'urn:fss:xx-xxx-7:73d69ae0cfcf460190522d06b60f05ad:function:default:auto_testfunc93749'", + "invocation_type" : "sync", + "network_type" : "V1", + "timeout" : 5000, + "version" : "latest", + "alias_urn" : "urn:fss:region01:73d69ae0cfcf460190522d06b60f05ad:function:default:auto_testfunc93749:!a1" + }, + "req_protocol" : "HTTPS", + "req_uri" : "/test/function", + "remark" : "FunctionGraph backend API", + "type" : 1, + "req_method" : "GET", + "result_normal_sample" : "Example success response", + "result_failure_sample" : "Example failure response", + "tags" : [ "functionApi" ] +}+
Creating a Mock backend API
+{ + "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600", + "match_mode" : "SWA", + "name" : "Api_mock", + "auth_type" : "IAM", + "backend_type" : "MOCK", + "mock_info" : { + "result_content" : "mock success" + }, + "policy_mocks" : [ { + "name" : "Mock policy backend", + "effect_mode" : "ANY", + "result_content" : "mock policy success", + "conditions" : [ { + "condition_origin" : "source", + "condition_value" : "1.0.1.0" + } ] + } ], + "req_protocol" : "HTTPS", + "req_uri" : "/test/mock", + "remark" : "Mock backend API", + "type" : 1, + "req_method" : "GET", + "result_normal_sample" : "Example success response", + "result_failure_sample" : "Example failure response", + "tags" : [ "mockApi" ] +}+
Status code: 201
+Created
+Example 1
+{ + "id" : "5f918d104dc84480a75166ba99efff21", + "tags" : [ "webApi" ], + "arrange_necessary" : 2, + "backend_type" : "HTTP", + "auth_type" : "AUTHORIZER", + "auth_opt" : { + "app_code_auth_type" : "DISABLE" + }, + "authorizer_id" : "0d982c1ac3da493dae47627b6439fc5c", + "backend_api" : { + "update_time" : "2020-07-31T12:42:51.325312994Z", + "vpc_channel_status" : 2, + "url_domain" : "xxx.xxx.xxx.xxx:12346", + "req_protocol" : "HTTP", + "id" : "1ce8fda3586d4371bd83c955df37e102", + "req_method" : "GET", + "register_time" : "2020-07-31T12:42:51.325312721Z", + "req_uri" : "/benchmark", + "timeout" : 5000, + "status" : 1, + "retry_count" : "-1" + }, + "cors" : false, + "status" : 1, + "group_name" : "api_group_001", + "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600", + "group_version" : "V1", + "response_id" : "981e6c8f847f47199a9faf4409b751a5", + "match_mode" : "NORMAL", + "name" : "Api_http", + "req_protocol" : "HTTPS", + "req_method" : "GET", + "req_uri" : "/test/http", + "type" : 1, + "result_normal_sample" : "Example success response", + "result_failure_sample" : "Example failure response", + "version" : "V0.0.1", + "register_time" : "2020-07-31T12:42:51.314357035Z", + "update_time" : "2020-07-31T12:42:51.314357324Z", + "remark" : "Web backend API", + "req_params" : [ { + "name" : "query_demo", + "location" : "QUERY", + "type" : "STRING", + "valid_enable" : 2, + "required" : 1, + "id" : "57c8bf3c97ef40ee94eace95dff30014", + "pass_through" : 1 + }, { + "name" : "header-demo", + "location" : "HEADER", + "type" : "STRING", + "valid_enable" : 2, + "required" : 2, + "id" : "8d993be96980415faa6b1fb2ebd647e0", + "pass_through" : 1 + } ], + "backend_params" : [ { + "name" : "backHeader", + "value" : "header-demo", + "location" : "HEADER", + "origin" : "REQUEST", + "id" : "709f0ea376b44aaf907aaaa37d8cce92", + "req_param_id" : "8d993be96980415faa6b1fb2ebd647e0" + }, { + "name" : "backQuery", + "value" : "query_demo", + "location" : "QUERY", + "origin" : "REQUEST", + "id" : "2f152d0fb54445039158d29c2a4f69ee", + "req_param_id" : "57c8bf3c97ef40ee94eace95dff30014" + }, { + "name" : "X-CONSTANT-HEADER", + "value" : "demo", + "location" : "HEADER", + "origin" : "CONSTANT", + "remark" : "constant_demo", + "id" : "20142102c6aa4f3c97d5fd6ef4010ac2" + }, { + "name" : "app-id", + "value" : "$context.appId", + "location" : "HEADER", + "origin" : "SYSTEM", + "remark" : "App ID of the API caller", + "id" : "a1349c61016e4d999ca783a50bfeee2b" + } ] +}+
Example 2
+{ + "id" : "8789c9367rd1439rf869c23cc0d1ef22", + "tags" : [ "grpcApi" ], + "arrange_necessary" : 2, + "backend_type" : "GRPC", + "auth_type" : "APP", + "auth_opt" : { + "app_code_auth_type" : "DISABLE" + }, + "backend_api" : { + "update_time" : "2023-08-29T09:05:17.652404554Z", + "vpc_channel_status" : 1, + "vpc_channel_info" : { + "cascade_flag" : false, + "vpc_channel_id" : "abcd1234512345678aab9a2614a197ef4", + "vpc_channel_port" : 0 + }, + "url_domain" : "abcd1234512345678aab9a2614a197ef4", + "req_protocol" : "GRPCS", + "id" : "c0123456789d421cb83a396955bd48d0", + "req_method" : "POST", + "register_time" : "2023-08-29T09:05:17.652404454Z", + "req_uri" : "/", + "timeout" : 5000, + "enable_client_ssl" : false, + "retry_count" : "-1", + "status" : 1 + }, + "cors" : false, + "status" : 1, + "group_name" : "api_group_001", + "group_id" : "12345abc9215b40bd84f4c469d56daebe", + "group_version" : "V1", + "response_id" : "ef21ec8c7df94d72a44f9rf1461c5f62", + "match_mode" : "NORMAL", + "name" : "Api_grpc", + "req_protocol" : "GRPCS", + "req_method" : "POST", + "req_uri" : "/test/grpc", + "type" : 1, + "version" : "V0.0.1", + "register_time" : "2023-08-29T09:05:17.647533939Z", + "update_time" : "2023-08-29T09:05:17.647534036Z", + "remark" : "GRPC backend API", + "api_group_info" : { + "id" : "12345abc9215b40bd84f4c469d56daebe", + "name" : "api_group_001", + "status" : 1, + "sl_domain" : "12345abc9215b40bd84f4c469d56daebe.apic.region-1.example.com", + "register_time" : "2023-08-29T08:38:21Z", + "update_time" : "2023-08-29T08:38:21Z", + "on_sell_status" : 2, + "sl_domain_access_enabled" : true + } +}+
Example 3
+{ + "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", + "func_info" : { + "id" : "c0740524cd4c40e3801a7afe5375f8b0", + "authorizer_id" : "5b8cd3f06f004115aec69c58f57272c9", + "function_urn" : "'urn:fss:xx-xxx-7:73d69ae0cfcf460190522d06b60f05ad:function:default:auto_testfunc93749'", + "invocation_type" : "sync", + "network_type" : "V1", + "timeout" : 5000, + "version" : "latest", + "alias_urn" : "urn:fss:region01:73d69ae0cfcf460190522d06b60f05ad:function:default:auto_testfunc00000:!a1", + "register_time" : "2020-08-02T15:36:19.897262803Z", + "update_time" : "2020-08-02T15:36:19.897262993Z", + "status" : 1 + }, + "cors" : false, + "req_protocol" : "HTTPS", + "req_uri" : "/test/function", + "remark" : "FunctionGraph backend API", + "type" : 1, + "version" : "V0.0.1", + "status" : 1, + "req_method" : "GET", + "result_normal_sample" : "Example success response", + "result_failure_sample" : "Example failure response", + "tags" : [ "functionApi" ], + "register_time" : "2020-08-02T15:36:19.892012381Z", + "update_time" : "2020-08-02T15:36:19.892012627Z" +}+
Example 4
+{ + "id" : "3a955b791bd24b1c9cd94c745f8d1aad", + "arrange_necessary" : 2, + "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", + "mock_info" : { + "id" : "e74bbc75825c4c38ae84ccab6bdc6175", + "result_content" : "mock success", + "update_time" : "2020-08-02T15:56:52.301790686Z", + "register_time" : "2020-08-02T15:56:52.301790367Z" + }, + "policy_mocks" : [ { + "name" : "Mock policy backend", + "id" : "1cb05173a4c84b7d996e30145cce3c7d", + "effect_mode" : "ANY", + "result_content" : "mock policy success", + "conditions" : [ { + "condition_origin" : "source", + "condition_value" : "1.0.1.0", + "id" : "8650b3a94e7344df8251658d8aee1f6d" + } ] + } ], + "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:52.286099413Z", + "update_time" : "2020-08-02T15:56:52.286099715Z", + "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: 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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to generate a random AppCode.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes
+ +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. + |
+
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. + |
+
Status code: 201
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to create an AppCode for an app for simple authentication.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes
+ +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. + |
+
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. + |
+
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: +_!@#$%-/= + |
+
Status code: 201
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating an AppCode for simple authentication
+{ + "app_code" : "GjOD3g80AABuuFeEJpVQADBlAjBh3UzC7W+gr4VJBB5BtJ4fdVOQoSvoji3gFxUDb5pWBz9wUcw9+8/bFZ1B/4pq29wCMQC0pQWX6zTndljDEl99As1pw+WntAU9xcq+ffagoH6zDpKUvdxV6Ezj8LcCcPZN6BU=" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+Creating a Credential Quota
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/app-quotas
+ +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. + |
+
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. + |
+
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: +
|
+
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 + |
+
Status code: 201
+ +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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
{ + "call_limits" : 1000, + "name" : "ClientQuota_demo", + "reset_time" : "2020-09-20 00:00:00", + "time_interval" : 1, + "time_unit" : "DAY" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/app-auths
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
auths + |
+Array of ApiAuthRelations objects + |
+App authorization records. + |
+
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. +
Enumeration values: +
|
+
auth_tunnel + |
+String + |
+Authorization channel type. +
The default value is NORMAL. This parameter is not supported currently. +Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
status + |
+String + |
+Authorization result. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Authorizing an app to call an API
+{ + "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID", + "app_ids" : [ "356de8eb7a8742168586e5daf5339965" ], + "api_ids" : [ "5f918d104dc84480a75166ba99efff21" ] +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to create an SSL certificate.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/certificates
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain it, see Obtaining a Project ID. + |
+
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. + |
+
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_id + |
+No + |
+String + |
+Gateway ID. This parameter is required if type is set to instance. + |
+
trusted_root_ca + |
+No + |
+String + |
+Trusted root certificate (CA). + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Certificate ID. + |
+
name + |
+String + |
+Certificate name. + |
+
type + |
+String + |
+Certificate type. +
Enumeration values: +
|
+
instance_id + |
+String + |
+Gateway ID. +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to create a custom authorizer.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/authorizers
+ +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. + |
+
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. + |
+
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. +
Modification is not allowed. +Enumeration values: +
|
+
authorizer_type + |
+Yes + |
+String + |
+Value: FUNC. +Enumeration values: +
|
+
authorizer_uri + |
+Yes + |
+String + |
+Function URN. + |
+
network_type + |
+No + |
+String + |
+Function network architecture: +
Default: V1 +Enumeration values: +
|
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
name + |
+Yes + |
+String + |
+Parameter name. + |
+
location + |
+Yes + |
+String + |
+Parameter location. +Enumeration values: +
|
+
validation + |
+No + |
+String + |
+Parameter verification expression. The default value is null, indicating that no verification is performed. + |
+
Status code: 201
+ +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. +
Modification is not allowed. +Enumeration values: +
|
+
authorizer_type + |
+String + |
+Value: FUNC. +Enumeration values: +
|
+
authorizer_uri + |
+String + |
+Function URN. + |
+
network_type + |
+String + |
+Function network architecture: +
Default: V1 +Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Parameter name. + |
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
validation + |
+String + |
+Parameter verification expression. The default value is null, indicating that no verification is performed. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/envs
+ +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. + |
+
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. + |
+
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 + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
create_time + |
+String + |
+Creation time. + |
+
name + |
+String + |
+Environment name. + |
+
remark + |
+String + |
+Description. + |
+
id + |
+String + |
+Environment ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating an environment
+{ + "name" : "DEV", + "remark" : "Development environment" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+Environment variable names must be unique for an API group in the same environment.
+Environment variable names are case-sensitive. For example, ABC and abc are two different variables.
+APIs that use environment variables cannot be debugged.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/env-variables
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 201
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating an environment variable
+{ + "variable_name" : "address", + "variable_value" : "192.168.1.5", + "env_id" : "7a1ad0c350844ee69479b47df9a881cb", + "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/features
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 201
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Enabling the app_api_key switch
+{ + "name" : "app_api_key", + "config" : "on", + "enable" : true +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to create a response for an API group.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses
+ +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. + |
+
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. + |
+
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: +
Each error type is in JSON format. + |
+
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 + |
+
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 + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Response name. + |
+
responses + |
+Map<String,ResponseInfoResp> + |
+Response type definition. key indicates the error type. Options of key: +
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. + |
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating a response for an API group
+{ + "name" : "response_demo" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to create a pay-per-use dedicated gateway.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain it, see Obtaining a Project ID. + |
+
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. + |
+
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: +
Platinum 2–8 are available only in certain regions. +Enumeration values: +
|
+
vpc_id + |
+Yes + |
+String + |
+VPC ID. +You can obtain it in either of the following ways: +
|
+
subnet_id + |
+Yes + |
+String + |
+Subnet network ID. +You can obtain it in either of the following ways: +
|
+
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: +
|
+
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: +
|
+
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. +
Default: bandwidth +Enumeration values: +
|
+
loadbalancer_provider + |
+No + |
+String + |
+Type of the load balancer used by the gateway. +
Enumeration values: +
|
+
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. +
Default: bandwidth +Enumeration values: +
|
+
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 + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Gateway ID. + |
+
message + |
+String + |
+Information about the gateway creation task. + |
+
job_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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" +}+
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 Code + |
+Description + |
+
---|---|
202 + |
+Accepted + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
member_groups + |
+No + |
+Array of MemberGroupCreate objects + |
+Backend server groups. + |
+
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. + |
+
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 + |
+
Status code: 201
+ +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. + |
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating a backend server group for a VPC channel of the server type
+{ + "member_groups" : [ { + "member_group_name" : "vpc_member_group", + "member_group_weight" : 10 + } ] +}+
Creating a backend server group for a VPC channel of the microservice type
+{ + "member_groups" : [ { + "member_group_name" : "vpc_member_group", + "member_group_weight" : 10, + "microservice_version" : "v1", + "microservice_port" : 80, + "microservice_labels" : [ { + "label_name" : "cluster_id", + "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113" + } ] + } ] +}+
Status code: 201
+Created
+Example 1
+{ + "total" : 1, + "size" : 1, + "member_groups" : [ { + "member_group_name" : "vpc_member_group", + "member_group_id" : "105c6902457144a4820dff8b1ad63331", + "member_group_remark" : "", + "member_group_weight" : 10, + "create_time" : "2020-07-23T07:24:33Z", + "update_time" : "2020-07-23T07:24:33Z", + "microservice_version" : "", + "microservice_port" : 0, + "microservice_labels" : [ ] + } ] +}+
Example 2
+{ + "total" : 1, + "size" : 1, + "member_groups" : [ { + "member_group_name" : "vpc_member_group", + "member_group_id" : "105c6902457144a4820dff8b1ad63331", + "member_group_remark" : "", + "member_group_weight" : 10, + "create_time" : "2020-07-23T07:24:33Z", + "update_time" : "2020-07-23T07:24:33Z", + "microservice_version" : "v1", + "microservice_port" : 80, + "microservice_labels" : [ { + "label_name" : "cluster_id", + "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113" + } ] + } ] +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/apis/action
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
action + |
+Yes + |
+String + |
+Operation to perform. +
Enumeration values: +
|
+
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. + |
+
Status code: 201
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Publishing an API in an environment
+{ + "action" : "online", + "api_id" : "5f918d104dc84480a75166ba99efff21", + "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+Plug-in information.
+Plug-in names must be unique.
+Plug-ins must be bound to an API and take effect immediately for the API after binding.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/plugins
+ +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. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
plugin_scope + |
+Yes + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
plugin_content + |
+Yes + |
+String + |
+Plug-in content in JSON format. For details, see the model definition. +
Maximum: 65535 + |
+
remark + |
+No + |
+String + |
+Plug-in description, with a maximum of 255 characters. +Maximum: 255 + |
+
Status code: 201
+ +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. +
Enumeration values: +
|
+
plugin_scope + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
plugin_content + |
+String + |
+Plug-in content in JSON format. For details, see the model definition. +
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Creating a CORS plug-in
+{ + "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" +}+
Creating an HTTP response header plug-in
+{ + "plugin_name" : "HTTP Response Header Plug-in", + "plugin_type" : "set_resp_headers", + "plugin_scope" : "global", + "plugin_content" : "{\\\"response_headers\\\":[{\\\"name\\\":\\\"x-demo\\\",\\\"value\\\":\\\"sss\\\",\\\"action\\\":\\\"append\\\"}]}", + "remark" : "HTTP response header management" +}+
Creating a request throttling plug-in
+{ + "plugin_name" : "Request Throttling Plug-in", + "plugin_type" : "rate_limit", + "plugin_scope" : "global", + "plugin_content" : "{\\\"scope\\\":\\\"basic\\\",\\\"default_time_unit\\\":\\\"minute\\\",\\\"default_interval\\\":1,\\\"api_limit\\\":50,\\\"app_limit\\\":0,\\\"user_limit\\\":0,\\\"ip_limit\\\":0,\\\"algorithm\\\":\\\"counter\\\",\\\"specials\\\":[],\\\"parameters\\\":[],\\\"rules\\\":[]}", + "remark" : "Request throttling" +}+
Creating a Kafka log push plug-in
+{ + "plugin_name" : "Kafka Log Plug-in", + "plugin_type" : "kafka_log", + "plugin_scope" : "app", + "plugin_content" : "{\\\"broker_list\\\":[\\\"0.0.0.0:11\\\"],\\\"topic\\\":\\\"topic\\\",\\\"key\\\":\\\"\\\",\\\"max_retry_count\\\":0,\\\"retry_backoff\\\":1,\\\"sasl_config\\\":{\\\"security_protocol\\\":\\\"PLAINTEXT\\\",\\\"sasl_mechanisms\\\":\\\"PLAIN\\\",\\\"sasl_username\\\":\\\"\\\",\\\"sasl_password\\\":\\\"\\\",\\\"ssl_ca_content\\\":\\\"\\\"},\\\"meta_config\\\":{\\\"system\\\":{\\\"start_time\\\":true,\\\"request_id\\\":true,\\\"client_ip\\\":true,\\\"api_id\\\":false,\\\"user_name\\\":false,\\\"app_id\\\":false,\\\"access_model1\\\":false,\\\"request_time\\\":true,\\\"http_status\\\":true,\\\"server_protocol\\\":false,\\\"scheme\\\":true,\\\"request_method\\\":true,\\\"host\\\":false,\\\"api_uri_mode\\\":false,\\\"uri\\\":false,\\\"request_size\\\":false,\\\"response_size\\\":false,\\\"upstream_uri\\\":false,\\\"upstream_addr\\\":true,\\\"upstream_status\\\":true,\\\"upstream_connect_time\\\":false,\\\"upstream_header_time\\\":false,\\\"upstream_response_time\\\":true,\\\"all_upstream_response_time\\\":false,\\\"region_id\\\":false,\\\"auth_type\\\":false,\\\"http_x_forwarded_for\\\":true,\\\"http_user_agent\\\":true,\\\"error_type\\\":true,\\\"access_model2\\\":false,\\\"inner_time\\\":false,\\\"proxy_protocol_vni\\\":false,\\\"proxy_protocol_vpce_id\\\":false,\\\"proxy_protocol_addr\\\":false,\\\"body_bytes_sent\\\":false,\\\"api_name\\\":false,\\\"app_name\\\":false,\\\"provider_app_id\\\":false,\\\"provider_app_name\\\":false,\\\"custom_data_log01\\\":false,\\\"custom_data_log02\\\":false,\\\"custom_data_log03\\\":false,\\\"custom_data_log04\\\":false,\\\"custom_data_log05\\\":false,\\\"custom_data_log06\\\":false,\\\"custom_data_log07\\\":false,\\\"custom_data_log08\\\":false,\\\"custom_data_log09\\\":false,\\\"custom_data_log10\\\":false,\\\"response_source\\\":false},\\\"call_data\\\":{\\\"log_request_header\\\":false,\\\"request_header_filter\\\":\\\"\\\",\\\"log_request_query_string\\\":false,\\\"request_query_string_filter\\\":\\\"\\\",\\\"log_request_body\\\":false,\\\"log_response_header\\\":false,\\\"response_header_filter\\\":\\\"\\\",\\\"log_response_body\\\":false,\\\"custom_authorizer\\\":{\\\"frontend\\\":[],\\\"backend\\\":[]}}}}", + "remark" : "Kafka log push" +}+
Creating a circuit breaker plug-in
+{ + "plugin_name" : "Circuit Breaker Plug-in", + "plugin_type" : "breaker", + "plugin_scope" : "app", + "plugin_content" : "{\\\"breaker_condition\\\":{\\\"breaker_type\\\":\\\"timeout\\\",\\\"breaker_mode\\\":\\\"counter\\\",\\\"unhealthy_condition\\\":\\\"\\\",\\\"unhealthy_threshold\\\":30,\\\"min_call_threshold\\\":20,\\\"unhealthy_percentage\\\":51,\\\"time_window\\\":15,\\\"open_breaker_time\\\":15},\\\"downgrade_default\\\":null,\\\"downgrade_parameters\\\":null,\\\"downgrade_rules\\\":null,\\\"scope\\\":\\\"basic\\\"}", + "remark" : "Circuit breaker" +}+
Creating a third-party authentication plug-in
+{ + "plugin_name" : "Third-Party Authentication Plug-in", + "remark" : "This is a third-party authentication plug-in that contains a rule expression whitelist.", + "plugin_type" : "third_auth", + "plugin_scope" : "global", + "plugin_content" : "{\\\"auth_request\\\":{\\\"method\\\":\\\"POST\\\",\\\"protocol\\\":\\\"HTTP\\\",\\\"url_domain\\\":\\\"xxx.xxx.xxx.xxx:1234\\\",\\\"timeout\\\":10,\\\"path\\\":\\\"/check\\\",\\\"vpc_channel_enabled\\\":false,\\\"vpc_channel_info\\\":{\\\"vpc_proxy_host\\\":\\\"abc.com\\\",\\\"vpc_id\\\":\\\"3c113f40a54a40369ceb1eb1409a32ee\\\"}},\\\"identities\\\":{\\\"headers\\\":[{\\\"name\\\":\\\"token\\\"}],\\\"query\\\":[{\\\"name\\\":\\\"user\\\"}]},\\\"carry_body\\\":{\\\"enabled\\\":true,\\\"max_body_size\\\":10000},\\\"carry_path_enabled\\\":false,\\\"return_resp_body_enabled\\\":true,\\\"carry_resp_headers\\\":[\\\"x-message-result\\\"],\\\"simple_auth_mode_enabled\\\":false,\\\"match_auth\\\":{\\\"key\\\":\\\"x-message-result\\\",\\\"value\\\":\\\"success\\\"},\\\"rule_enabled\\\":true,\\\"rule_type\\\":\\\"allow\\\",\\\"parameters\\\":[{\\\"value\\\":\\\"reqPath\\\",\\\"type\\\":\\\"path\\\",\\\"name\\\":\\\"reqPath\\\"},{\\\"value\\\":\\\"method\\\",\\\"type\\\":\\\"method\\\",\\\"name\\\":\\\"method\\\"},{\\\"value\\\":\\\"Host\\\",\\\"type\\\":\\\"header\\\",\\\"name\\\":\\\"Host\\\"}],\\\"rules\\\":[{\\\"match_regex\\\": \\\"[\\\\\\\"OR\\\\\\\", [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/xxl-job-admin/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/leave/infor/v1/addLeaveLnfor\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/v1/charge/home/modifyChargeSync\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/mweb/campaign/api/v1/getActivityConfig\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/mp/vehicle/owner/home\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/mweb/campaign/api/v1/getTime\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/c-showroom-service/v1/vehicleDetails/upload\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/operation-charging-bff/carOwnerRights/certificate/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/api/2c/v1/sales-bff/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/2c/v1/vehicleDetails/upload\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/operation-admin/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/settings/api/v1/receiveClk\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/vehicle/relative/yTSendVehicleControl.json\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/appoint/getAppointmentByTestDrive\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdPay\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdOrder\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/getUserToken\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdCoupon\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/task/busTriggerTaskEvent.json\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/datacenter-log-center/api/trackApi/commonAdd.json\\\\\\\"]]\\\", \\\"rule_name\\\": \\\"allow2\\\"}],\\\"custom_forbid_limit\\\":100,\\\"auth_downgrade_enabled\\\":false}" +}+
Status code: 201
+OK
+Example 1
+{ + "plugin_id" : "5b729aa252764739b3s237ef0d66dc63", + "plugin_name" : "CORS Plug-in", + "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" +}+
Example 2
+{ + "plugin_id" : "8a688dce7d0c45cf84edac3d7b071769", + "plugin_name" : "HTTP Response Header Plug-in", + "plugin_type" : "set_resp_headers", + "plugin_scope" : "global", + "plugin_content" : "{\\\"response_headers\\\":[{\\\"name\\\":\\\"x-demo\\\",\\\"value\\\":\\\"sss\\\",\\\"action\\\":\\\"append\\\"}]}", + "remark" : "HTTP response header management", + "create_time" : "2022-11-02T12:31:23.353Z", + "update_time" : "2022-11-02T12:31:23.353Z" +}+
Example 3
+{ + "plugin_id" : "9642ff2b9a86481689ca9d28babcfd7f", + "plugin_name" : "Request Throttling Plug-in", + "plugin_type" : "rate_limit", + "plugin_scope" : "global", + "plugin_content" : "{\\\"scope\\\":\\\"basic\\\",\\\"default_time_unit\\\":\\\"minute\\\",\\\"default_interval\\\":1,\\\"api_limit\\\":50,\\\"app_limit\\\":0,\\\"user_limit\\\":0,\\\"ip_limit\\\":0,\\\"algorithm\\\":\\\"counter\\\",\\\"specials\\\":[],\\\"parameters\\\":[],\\\"rules\\\":[]}", + "remark" : "Request throttling", + "create_time" : "2022-11-02T12:31:23.353Z", + "update_time" : "2022-11-02T12:31:23.353Z" +}+
Example 4
+{ + "plugin_id" : "92284ece6ec7466da2c2ac2416f46d5d", + "plugin_name" : "Kafka Log Plug-in", + "plugin_type" : "kafka_log", + "plugin_scope" : "app", + "plugin_content" : "{\\\"broker_list\\\":[\\\"0.0.0.0:11\\\"],\\\"topic\\\":\\\"topic\\\",\\\"key\\\":\\\"\\\",\\\"max_retry_count\\\":0,\\\"retry_backoff\\\":1,\\\"sasl_config\\\":{\\\"security_protocol\\\":\\\"PLAINTEXT\\\",\\\"sasl_mechanisms\\\":\\\"PLAIN\\\",\\\"sasl_username\\\":\\\"\\\",\\\"sasl_password\\\":\\\"\\\",\\\"ssl_ca_content\\\":\\\"\\\"},\\\"meta_config\\\":{\\\"system\\\":{\\\"start_time\\\":true,\\\"request_id\\\":true,\\\"client_ip\\\":true,\\\"api_id\\\":false,\\\"user_name\\\":false,\\\"app_id\\\":false,\\\"access_model1\\\":false,\\\"request_time\\\":true,\\\"http_status\\\":true,\\\"server_protocol\\\":false,\\\"scheme\\\":true,\\\"request_method\\\":true,\\\"host\\\":false,\\\"api_uri_mode\\\":false,\\\"uri\\\":false,\\\"request_size\\\":false,\\\"response_size\\\":false,\\\"upstream_uri\\\":false,\\\"upstream_addr\\\":true,\\\"upstream_status\\\":true,\\\"upstream_connect_time\\\":false,\\\"upstream_header_time\\\":false,\\\"upstream_response_time\\\":true,\\\"all_upstream_response_time\\\":false,\\\"region_id\\\":false,\\\"auth_type\\\":false,\\\"http_x_forwarded_for\\\":true,\\\"http_user_agent\\\":true,\\\"error_type\\\":true,\\\"access_model2\\\":false,\\\"inner_time\\\":false,\\\"proxy_protocol_vni\\\":false,\\\"proxy_protocol_vpce_id\\\":false,\\\"proxy_protocol_addr\\\":false,\\\"body_bytes_sent\\\":false,\\\"api_name\\\":false,\\\"app_name\\\":false,\\\"provider_app_id\\\":false,\\\"provider_app_name\\\":false,\\\"custom_data_log01\\\":false,\\\"custom_data_log02\\\":false,\\\"custom_data_log03\\\":false,\\\"custom_data_log04\\\":false,\\\"custom_data_log05\\\":false,\\\"custom_data_log06\\\":false,\\\"custom_data_log07\\\":false,\\\"custom_data_log08\\\":false,\\\"custom_data_log09\\\":false,\\\"custom_data_log10\\\":false,\\\"response_source\\\":false},\\\"call_data\\\":{\\\"log_request_header\\\":false,\\\"request_header_filter\\\":\\\"\\\",\\\"log_request_query_string\\\":false,\\\"request_query_string_filter\\\":\\\"\\\",\\\"log_request_body\\\":false,\\\"log_response_header\\\":false,\\\"response_header_filter\\\":\\\"\\\",\\\"log_response_body\\\":false,\\\"custom_authorizer\\\":{\\\"frontend\\\":[],\\\"backend\\\":[]}}}}", + "remark" : "Kafka log push", + "create_time" : "2022-11-02T12:31:23.353Z", + "update_time" : "2022-11-02T12:31:23.353Z" +}+
Example 5
+{ + "plugin_id" : "8b5253ed723c4a878e7b8532c08763b4", + "plugin_name" : "Circuit Breaker Plug-in", + "plugin_type" : "breaker", + "plugin_scope" : "app", + "plugin_content" : "{\\\"breaker_condition\\\":{\\\"breaker_type\\\":\\\"timeout\\\",\\\"breaker_mode\\\":\\\"counter\\\",\\\"unhealthy_condition\\\":\\\"\\\",\\\"unhealthy_threshold\\\":30,\\\"min_call_threshold\\\":20,\\\"unhealthy_percentage\\\":51,\\\"time_window\\\":15,\\\"open_breaker_time\\\":15},\\\"downgrade_default\\\":null,\\\"downgrade_parameters\\\":null,\\\"downgrade_rules\\\":null,\\\"scope\\\":\\\"basic\\\"}", + "remark" : "Circuit breaker", + "create_time" : "2022-11-02T12:31:23.353Z", + "update_time" : "2022-11-02T12:31:23.353Z" +}+
Example 6
+{ + "plugin_id" : "235d97683439437585aff06020059720", + "plugin_name" : "Third-Party Authentication Plug-in", + "plugin_type" : "third_auth", + "plugin_scope" : "global", + "plugin_content" : "{\\\"auth_request\\\":{\\\"method\\\":\\\"POST\\\",\\\"protocol\\\":\\\"HTTP\\\",\\\"url_domain\\\":\\\"xxx.xxx.xxx.xxx:1234\\\",\\\"path\\\":\\\"/check\\\",\\\"timeout\\\":10,\\\"vpc_channel_enabled\\\":2,\\\"vpc_channel_info\\\":null},\\\"identities\\\":{\\\"headers\\\":[{\\\"name\\\":\\\"token\\\",\\\"essential\\\":false}],\\\"queries\\\":null},\\\"carry_body\\\":{\\\"enabled\\\":true,\\\"max_body_size\\\":10000},\\\"carry_path_enabled\\\":false,\\\"return_resp_body_enabled\\\":true,\\\"carry_resp_headers\\\":[\\\"x-message-result\\\"],\\\"simple_auth_mode_enabled\\\":false,\\\"match_auth\\\":{\\\"key\\\":\\\"x-message-result\\\",\\\"value\\\":\\\"success\\\"},\\\"parameters\\\":[{\\\"type\\\":\\\"path\\\",\\\"name\\\":\\\"reqPath\\\",\\\"value\\\":\\\"reqPath\\\"},{\\\"type\\\":\\\"method\\\",\\\"name\\\":\\\"method\\\",\\\"value\\\":\\\"method\\\"},{\\\"type\\\":\\\"header\\\",\\\"name\\\":\\\"Host\\\",\\\"value\\\":\\\"Host\\\"}],\\\"rules\\\":[{\\\"rule_name\\\":\\\"allow2\\\",\\\"match_regex\\\":\\\"[\\\\\\\"OR\\\\\\\", [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/xxl-job-admin/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/leave/infor/v1/addLeaveLnfor\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/v1/charge/home/modifyChargeSync\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/mweb/campaign/api/v1/getActivityConfig\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/mp/vehicle/owner/home\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/mweb/campaign/api/v1/getTime\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/c-showroom-service/v1/vehicleDetails/upload\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/operation-charging-bff/carOwnerRights/certificate/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/api/2c/v1/sales-bff/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/2c/v1/vehicleDetails/upload\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/operation-admin/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/settings/api/v1/receiveClk\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/vehicle/relative/yTSendVehicleControl.json\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/appoint/getAppointmentByTestDrive\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdPay\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdOrder\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/getUserToken\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdCoupon\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/task/busTriggerTaskEvent.json\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/datacenter-log-center/api/trackApi/commonAdd.json\\\\\\\"]]\\\"}],\\\"rule_type\\\":\\\"allow\\\",\\\"rule_enabled\\\":true,\\\"custom_forbid_limit\\\":100,\\\"auth_downgrade_enabled\\\":false}", + "remark" : "This is a third-party authentication plug-in that contains a rule expression whitelist.", + "create_time" : "2023-05-06T06:54:59.296181801Z", + "update_time" : "2023-05-06T06:54:59.296182035Z" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to creat a specification change order of a pay-per-use gateway.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/postpaid-resize
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
spec_id + |
+No + |
+String + |
+Target gateway specifications. + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Gateway ID. + |
+
message + |
+String + |
+Gateway scale-out information. + |
+
job_id + |
+String + |
+Task ID. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
{ + "spec_id" : "PROFESSIONAL" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+ACCEPTED + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/throttles
+ +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. + |
+
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. + |
+
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: +
|
+
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. +
Enumeration values: +
|
+
enable_adaptive_control + |
+No + |
+String + |
+Indicates whether to enable dynamic request throttling. +
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. + |
+
Status code: 201
+ +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: +
|
+
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. +
Enumeration values: +
|
+
enable_adaptive_control + |
+String + |
+Indicates whether to enable dynamic request throttling. +
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. +
Enumeration values: +
|
+
create_time + |
+String + |
+Creation time. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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 +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/signs
+ +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. + |
+
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. + |
+
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. +
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: +
|
+
sign_key + |
+No + |
+String + |
+Signature key. +
|
+
sign_secret + |
+No + |
+String + |
+Signature secret. +
|
+
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: +
|
+
Status code: 201
+ +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. +
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: +
|
+
sign_key + |
+String + |
+Signature key. +
|
+
sign_secret + |
+String + |
+Signature secret. +
|
+
sign_algorithm + |
+String + |
+Signature algorithm. Specify a signature algorithm only when using an AES signature key. By default, no algorithm is used. +Enumeration values: +
|
+
update_time + |
+String + |
+Update time. + |
+
create_time + |
+String + |
+Creation time. + |
+
id + |
+String + |
+Signature key ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 412
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Create a signature key with a custom key and secret.
+{ + "name" : "signature_demo", + "sign_key" : "signkeysignkey", + "sign_secret" : "sig************ret" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
412 + |
+PreconditionFailed + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}/throttle-specials
+ +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. + |
+
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. + |
+
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: +
|
+
Status code: 201
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Adding an excluded app to a request throttling policy with threshold 150
+{ + "call_limits" : 150, + "object_id" : "356de8eb7a8742168586e5daf5339965", + "object_type" : "APP" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels
+ +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. + |
+
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. + |
+
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. +
Default: 1 +Enumeration values: +
|
+
member_type + |
+Yes + |
+String + |
+Member type of the VPC channel. +
Default: ecs +Enumeration values: +
|
+
type + |
+No + |
+Integer + |
+VPC channel type. The default type is server. +
Default: 2 +Enumeration values: +
|
+
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. + |
+
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. + |
+
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 + |
+
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. +
Enumeration values: +
|
+
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 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
protocol + |
+Yes + |
+String + |
+Protocol for performing health checks on backend servers in the VPC channel. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
Enumeration values: +
|
+
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 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
service_type + |
+No + |
+String + |
+Microservice type. Options: +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
engine_id + |
+Yes + |
+String + |
+Microservice engine ID. +Maximum: 64 + |
+
service_id + |
+Yes + |
+String + |
+Microservice ID. +Maximum: 64 + |
+
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. +
Enumeration values: +
|
+
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 + |
+
Status code: 201
+ +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. +
Default: 1 +Enumeration values: +
|
+
member_type + |
+String + |
+Member type of the VPC channel. +
Default: ecs +Enumeration values: +
|
+
type + |
+Integer + |
+VPC channel type. The default type is server. +
Default: 2 +Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
member_groups + |
+Array of MemberGroupInfo objects + |
+Backend server groups. + |
+
microservice_info + |
+MicroServiceInfo object + |
+Microservice information. + |
+
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. + |
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Microservice ID. + |
+
instance_id + |
+String + |
+Gateway ID. + |
+
service_type + |
+String + |
+Microservice type. Options: +
Enumeration values: +
|
+
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. + |
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
cluster_id + |
+String + |
+CCE cluster ID. +Maximum: 64 + |
+
namespace + |
+String + |
+Namespace. +Maximum: 64 + |
+
workload_type + |
+String + |
+Workload type. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
{ + "balance_strategy" : 1, + "member_type" : "ip", + "name" : "VPC_demo", + "port" : 22, + "type" : 2, + "vpc_health_config" : { + "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 + }, + "member_groups" : [ { + "member_group_name" : "test", + "member_group_weight" : 1, + "member_group_remark" : "remark" + }, { + "member_group_name" : "default", + "member_group_weight" : 2, + "member_group_remark" : "remark" + } ], + "members" : [ { + "host" : "192.168.0.5", + "weight" : 1, + "member_group_name" : "test" + }, { + "host" : "192.168.1.124", + "weight" : 2, + "member_group_name" : "default" + } ] +}+
{ + "balance_strategy" : 1, + "member_type" : "ip", + "name" : "VPC_demo", + "port" : 22, + "type" : 3, + "vpc_health_config" : { + "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 + }, + "member_groups" : [ { + "member_group_name" : "test", + "member_group_weight" : 1, + "member_group_remark" : "remark", + "microservice_version" : "v1", + "microservice_port" : 80 + }, { + "member_group_name" : "default", + "member_group_weight" : 2, + "member_group_remark" : "remark", + "microservice_version" : "v2", + "microservice_port" : 80, + "microservice_labels" : [ { + "label_name" : "cluster_id", + "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113" + } ] + } ], + "members" : [ { + "host" : "192.168.0.5", + "weight" : 1, + "member_group_name" : "test" + }, { + "host" : "192.168.1.124", + "weight" : 2, + "member_group_name" : "default" + } ], + "microservice_info" : { + "service_type" : "CCE", + "cce_info" : { + "cluster_id" : "ab1485b4f91b45abbcd560be591f7309", + "namespace" : "default", + "workload_type" : "deployment", + "app_name" : "testapp" + } + } +}+
Status code: 201
+Created
+{ + "name" : "VPC_demo", + "id" : "105c6902457144a4820dff8b1ad63331", + "balance_strategy" : 1, + "dict_code" : "", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "member_type" : "ip", + "port" : 22, + "status" : 1, + "member_groups" : [ { + "member_group_id" : "c1ce135c705c4066853a0460b318fe16", + "member_group_name" : "test", + "member_group_weight" : 1, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z", + "microservice_version" : "", + "microservice_port" : 0 + }, { + "member_group_id" : "c1ce135c705c4066853a0460b318fe17", + "member_group_name" : "default", + "member_group_weight" : 2, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z", + "microservice_version" : "", + "microservice_port" : 0 + } ], + "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" : "VPC_demo", + "id" : "105c6902457144a4820dff8b1ad63331", + "balance_strategy" : 1, + "dict_code" : "", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "member_type" : "ip", + "port" : 22, + "status" : 1, + "member_groups" : [ { + "member_group_id" : "c1ce135c705c4066853a0460b318fe16", + "member_group_name" : "test", + "member_group_weight" : 1, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z", + "microservice_version" : "v1", + "microservice_port" : 80 + }, { + "member_group_id" : "c1ce135c705c4066853a0460b318fe17", + "member_group_name" : "default", + "member_group_weight" : 2, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z", + "microservice_version" : "v2", + "microservice_port" : 80, + "microservice_labels" : [ { + "label_name" : "cluster_id", + "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113" + } ] + } ], + "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.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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
+
+
This API is used to debug an API in a specified environment. The API caller must have the permissions required for accessing this API.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/apis/debug/{api_id}
+ +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. + |
+
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. + |
+
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: +
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: +
|
+
mode + |
+Yes + |
+String + |
+Debugging mode: +
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: +
|
+
scheme + |
+Yes + |
+String + |
+Request protocol. +
|
+
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: +
|
+
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: +
|
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Debugging an API
+{ + "mode" : "DEVELOPER", + "scheme" : "HTTPS", + "method" : "GET", + "path" : "/test/mock" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete an access control policy. Access control policies bound to APIs cannot be deleted.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/acls/{acl_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind an access control policy from an API.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings/{acl_bindings_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/apis/versions/{version_id}
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 412
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
412 + |
+PreconditionFailed + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 409
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
409 + |
+Conflict + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete the access control settings of a credential.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-acl
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete an AppCode. Deleted AppCodes cannot be used for simple authentication.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes/{app_code_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}
+ +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 + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete an app.
+Deleted apps cannot call APIs.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete a backend instance from a specified VPC channel.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/{member_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete an SSL certificate. Only certificates that are not bound to any domain name can be deleted.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/certificates/{certificate_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete a custom authorizer.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/authorizers/{authorizer_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete whitelist records of a gateway's VPC endpoint service in batches.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/permissions/batch-delete
+ +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. + |
+
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. + |
+
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 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Delete whitelist records for a vpc endpoint service.
+{ + "permissions" : [ "iam:domain::7cc2018e40394f7c9692f1713e76234d" ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Resource Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/envs/{env_id}
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete an environment variable.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/env-variables/{env_variable_id}
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}/{response_type}
+ +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: +
Enumeration values: +
|
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete a group response of an API group.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete a dedicated gateway.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete a backend server group of a specified VPC channel.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups/{member_group_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete a plug-in.
+Before deleting a plug-in, unbind it from all APIs.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 409
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
409 + |
+Conflict + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete a request throttling policy and all binding relationships between the policy and APIs.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/signs/{sign_id}
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete an excluded configuration of a request throttling policy.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}/throttle-specials/{strategy_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete a VPC channel.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind a plug-in from all APIs to which it has been bound.
+The unbinding takes effect immediately.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/detach
+ +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. + |
+
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. + |
+
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 + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Unbinding a plug-in from all APIs to which it has been bound
+{ + "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID", + "api_ids" : [ "8aa097b00e9843efabc9c593d11b769d" ] +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind an API's plug-ins.
+The unbinding takes effect immediately.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/plugins/detach
+ +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. + |
+
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. + |
+
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 + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Unbinding an API's plug-ins
+{ + "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID", + "plugin_ids" : [ "98df09fb-d459-4cbf-83a7-2b55ca6f3d5d" ] +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind a credential quota from a credential.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}/bound-apps/{app_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to delete a certificate that is no longer needed or has expired.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificate/{certificate_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind a custom domain name from an API group.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind a request throttling policy from an API.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings/{throttle_binding_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to unbind a signature key from an API.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings/{sign_bindings_id}
+ +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. + |
+
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. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
+
+
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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/openapi/async-export
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
oas_version + |
+No + |
+String + |
+OpenAPI version. +Default: 2.0 +Enumeration values: +
|
+
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. + |
+
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: +
Default: spec +Enumeration values: +
|
+
type + |
+No + |
+String + |
+Format for exporting API definitions. +Default: json +Enumeration values: +
|
+
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. + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
task_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Exporting APIs in batches
+{ + "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID", + "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600", + "define" : "all" +}+
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 Code + |
+Description + |
+
---|---|
202 + |
+Accepted + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/openapi/export
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
oas_version + |
+No + |
+String + |
+Open API version. +Default: 2.0 +Enumeration values: +
|
+
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. + |
+
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: +
Default: spec +Enumeration values: +
|
+
type + |
+No + |
+String + |
+Format for exporting API definitions. +Default: json +Enumeration values: +
|
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
- + |
+File + |
+OK + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Exporting APIs
+{ + "env_id" : "DEFAULT_ENVIRONMENT_RELEASE_ID", + "group_id" : "c77f5e81d9cb4424bf704ef2b0ac7600", + "define" : "all" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
+
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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/openapi/async-import
+ +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. + |
+
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. + |
+
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. +
Default: merge +Enumeration values: +
|
+
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. +
Default: merge +Enumeration values: +
|
+
file_name + |
+Yes + |
+File + |
+Request body in JSON or YAML format for importing APIs + |
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
task_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Importing APIs
+{ + "is_create_group" : false, + "group_id" : "d9ce8c9eede54b3f841ec324fe0bfdc2", + "file_name" : "APIGroup_test.json" +}+
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 Code + |
+Description + |
+
---|---|
202 + |
+Accepted + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/openapi/import
+ +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. + |
+
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. + |
+
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. +
Default: merge +Enumeration values: +
|
+
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. +
Default: merge +Enumeration values: +
|
+
file_name + |
+Yes + |
+File + |
+Request body in JSON or YAML format for importing APIs. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
path + |
+String + |
+API request path. + |
+
method + |
+String + |
+API request method. + |
+
action + |
+String + |
+Import type. Options: +
Enumeration values: +
|
+
id + |
+String + |
+ID of a successfully imported API. + |
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Swagger file No. + |
+
result + |
+String + |
+Import result description. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
method + |
+String + |
+API request method. + |
+
path + |
+String + |
+API request path. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Importing APIs
+{ + "is_create_group" : false, + "group_id" : "d9ce8c9eede54b3f841ec324fe0bfdc2", + "file_name" : "APIGroup_test.json" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to import a microservice.
+For details, see Calling APIs.
+POST /v2/{project_id}/apigw/instances/{instance_id}/microservice/import
+ +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. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
protocol + |
+No + |
+String + |
+Request protocol used by APIG to access the microservice. +
Default: HTTPS +Enumeration values: +
|
+
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. +
Default: NONE +Enumeration values: +
|
+
cors + |
+No + |
+Boolean + |
+Whether CORS is supported. By default, it is not supported. +
Default: false +Enumeration values: +
|
+
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. + |
+
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 + |
+
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: +
|
+
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. +
Default value: NORMAL +Default: SWA +Enumeration values: +
|
+
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 + |
+
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. +
Enumeration values: +
|
+
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. + |
+
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 + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
vpc_channel_id + |
+String + |
+VPC channel ID. + |
+
api_group_id + |
+String + |
+API group ID. + |
+
apis + |
+Array of MicroserviceImportApiResp objects + |
+Imported APIs. + |
+
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. +
Enumeration values: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
{ + "group_info" : { + "group_id" : "6329eaa17736412b988536179cd8d662", + "group_name" : "", + "app_id" : "" + }, + "service_type" : "CSE", + "protocol" : "HTTPS", + "apis" : [ { + "name" : "api1", + "req_method" : "ANY", + "req_uri" : "/test", + "match_mode" : "SWA" + } ], + "backend_timeout" : 5000, + "auth_type" : "NONE", + "cors" : false, + "cse_info" : { + "engine_id" : "fde2c21c-5bd9-40f0-ad6a-81e4b6782805a", + "service_id" : "92919f98fba80c2df13cc285c983946c90e635ff", + "version" : "1.0.0" + } +}+
{ + "group_info" : { + "group_id" : "6329eaa17736412b988536179cd8d662", + "group_name" : "", + "app_id" : "" + }, + "service_type" : "CCE", + "protocol" : "HTTPS", + "apis" : [ { + "name" : "dp", + "req_method" : "ANY", + "req_uri" : "/test", + "match_mode" : "SWA" + } ], + "backend_timeout" : 5000, + "auth_type" : "NONE", + "cors" : false, + "cce_info" : { + "cluster_id" : "11069278-f9f8-11ec-b1b2-0255ac100b06", + "namespace" : "test", + "workload_type" : "deployment", + "app_name" : "dp", + "port" : 80, + "labels" : [ { + "label_name" : "cluster_id", + "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113" + } ] + } +}+
Status code: 201
+success
+{ + "vpc_channel_id" : "9d075537ff314a5e8e5c98bf29549b89", + "api_group_id" : "6329eaa17736412b988536179cd8d662", + "apis" : [ { + "id" : "72e667087fe140529f81995b213dadbe", + "name" : "api1", + "req_uri" : "/test", + "req_method" : "ANY", + "match_mode" : "SWA" + } ] +}+
{ + "vpc_channel_id" : "3f56e9d4a747486caa4cfb59a47b6854", + "api_group_id" : "6329eaa17736412b988536179cd8d662", + "apis" : [ { + "id" : "3b52e2c05710470b88e283deb0a805e6", + "name" : "dp_b09d", + "req_uri" : "/test", + "req_method" : "ANY", + "match_mode" : "SWA" + } ] +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+success + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
This API is used to query the access control policies that have been bound to a specified API.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings/binded-acls
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
acl_id + |
+String + |
+Access control policy ID. + |
+
acl_name + |
+String + |
+Access control policy name. + |
+
entity_type + |
+String + |
+Object type. +Enumeration values: +
|
+
acl_type + |
+String + |
+Access control type. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query all the access control policies.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/acls
+ +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. + |
+
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. +
|
+
entity_type + |
+No + |
+String + |
+Object types. +
|
+
precise_search + |
+No + |
+String + |
+Parameter name (name) for exact matching. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
acl_name + |
+String + |
+Access control policy name. + |
+
acl_type + |
+String + |
+Type. +
|
+
acl_value + |
+String + |
+Access control objects. + |
+
bind_num + |
+Integer + |
+Number of APIs. + |
+
entity_type + |
+String + |
+Object type. +
|
+
id + |
+String + |
+Access control policy ID. + |
+
update_time + |
+String + |
+Update time. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the plug-ins that can be bound to a specified API.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/attachable-plugins
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Enumeration values: +
|
+
plugin_scope + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
plugin_content + |
+String + |
+Plug-in content in JSON format. For details, see the model definition. +
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the plug-ins bound to an API.
+Query plug-ins bound to a specified API
+Pagination query
+Fuzzy query by plug-in name
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/attached-plugins
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Enumeration values: +
|
+
plugin_scope + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the number of API groups.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/resources/outline/groups
+ +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. + |
+
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. + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+API group name. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
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. +
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. +
|
+
version + |
+String + |
+Group version. +
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Domain ID. + |
+
domain + |
+String + |
+Domain name. + |
+
cname_status + |
+Integer + |
+CNAME resolution status of the domain name. +
|
+
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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/resources/outline/apis
+ +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. + |
+
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. + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Bad Request + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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:
+Temporary definition: definition of an API used after the API was last edited.
+Runtime definition: snapshot of the temporary definition of an API captured when the API is published in an environment.
+The runtime definition of an API is accessed when the API is called in an environment.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apis/runtime/{api_id}
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
env_id + |
+No + |
+String + |
+ID of the environment in which the API is published. + |
+
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. + |
+
Status code: 200
+ +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. +
Enumeration values: +
|
+
version + |
+String + |
+API version. +Maximum: 16 + |
+
req_protocol + |
+String + |
+API request protocol: +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+String + |
+API request method. If the request protocol is set to GRPC, the request method is fixed to POST. +Enumeration values: +
|
+
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: +
Custom authentication is unavailable if the request protocol is set to GRPC. +Enumeration values: +
|
+
auth_opt + |
+AuthOpt object + |
+Security authentication parameter. + |
+
cors + |
+Boolean + |
+Indicates whether CORS is supported. +
Default: false +Enumeration values: +
|
+
match_mode + |
+String + |
+API matching mode: +
Enumeration values: +
|
+
backend_type + |
+String + |
+Backend type. Options: +
Enumeration values: +
|
+
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: +
Coming soon. +Enumeration values: +
|
+
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. + |
+
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. +
Default: DISABLE +Enumeration values: +
|
+
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: +
|
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
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: +
|
+
valid_enable + |
+Integer + |
+Indicates whether validity check is enabled. +
Default: 2 +Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+Parameter ID. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of a specified API version.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apis/versions/{version_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +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. +
Enumeration values: +
|
+
version + |
+String + |
+API version. +Maximum: 16 + |
+
req_protocol + |
+String + |
+API request protocol: +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+String + |
+API request method. If the request protocol is set to GRPC, the request method is fixed to POST. +Enumeration values: +
|
+
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: +
Custom authentication is unavailable if the request protocol is set to GRPC. +Enumeration values: +
|
+
auth_opt + |
+AuthOpt object + |
+Security authentication parameter. + |
+
cors + |
+Boolean + |
+Indicates whether CORS is supported. +
Default: false +Enumeration values: +
|
+
match_mode + |
+String + |
+API matching mode: +
Enumeration values: +
|
+
backend_type + |
+String + |
+Backend type. Options: +
Enumeration values: +
|
+
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: +
Coming soon. +Enumeration values: +
|
+
id + |
+String + |
+API ID. + |
+
status + |
+Integer + |
+App status. +
|
+
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. + |
+
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. +
Default: DISABLE +Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
|
+
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. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+API group name. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
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. +
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Domain ID. + |
+
domain + |
+String + |
+Domain name. + |
+
cname_status + |
+Integer + |
+CNAME resolution status of the domain name. +
|
+
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: +
|
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
function_urn + |
+String + |
+Function URN. + |
+
remark + |
+String + |
+Description. It cannot exceed 255 characters. + |
+
invocation_type + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+ID. + |
+
register_time + |
+String + |
+Registration time. + |
+
status + |
+Integer + |
+Backend service status. +
|
+
update_time + |
+String + |
+Update time. + |
+
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. +
|
+
update_time + |
+String + |
+Update time. + |
+
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: +
|
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
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: +
|
+
valid_enable + |
+Integer + |
+Indicates whether validity check is enabled. +
Default: 2 +Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+Parameter ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
function_urn + |
+String + |
+Function URN. + |
+
invocation_type + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
origin + |
+String + |
+Parameter type. +
Enumeration values: +
|
+
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: +
|
+
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: +
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. + |
+
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: +
Enumeration values: +
|
+
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. +
This parameter is required when the policy type is param, system, cookie, or frontend_authorizer. +Enumeration values: +
|
+
condition_origin + |
+String + |
+Policy type +
Enumeration values: +
|
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apis/publish/{api_id}
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Enumeration values: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the APIs to which an access control policy has been bound.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings/binded-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the APIs to which a specified app has been bound.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/app-auths/binded-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
app_creator + |
+String + |
+Creator of the app. +
|
+
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. +
The default value is NORMAL. This parameter is not supported currently. +Enumeration values: +
|
+
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. +
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the APIs to which a specified request throttling policy has been bound.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings/binded-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the APIs to which a signature key has been bound.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings/binded-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the APIs to which a signature key has not been bound. Only published APIs will be displayed.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings/unbinded-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the published APIs to which an access control policy has not been bound.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/acl-bindings/unbinded-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the self-developed APIs to which an app has not been bound in a specified environment.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/app-auths/unbinded-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings/unbinded-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apis
+ +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. + |
+
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 + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Enumeration values: +
|
+
version + |
+String + |
+API version. +Maximum: 16 + |
+
req_protocol + |
+String + |
+API request protocol: +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+String + |
+API request method. If the request protocol is set to GRPC, the request method is fixed to POST. +Enumeration values: +
|
+
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: +
Custom authentication is unavailable if the request protocol is set to GRPC. +Enumeration values: +
|
+
auth_opt + |
+AuthOpt object + |
+Security authentication parameter. + |
+
cors + |
+Boolean + |
+Indicates whether CORS is supported. +
Default: false +Enumeration values: +
|
+
match_mode + |
+String + |
+API matching mode: +
Enumeration values: +
|
+
backend_type + |
+String + |
+Backend type. Options: +
Enumeration values: +
|
+
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: +
Coming soon. +Enumeration values: +
|
+
id + |
+String + |
+API ID. + |
+
status + |
+Integer + |
+App status. +
|
+
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. + |
+
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. +
Default: DISABLE +Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
|
+
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. +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+API group name. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
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. +
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Domain ID. + |
+
domain + |
+String + |
+Domain name. + |
+
cname_status + |
+Integer + |
+CNAME resolution status of the domain name. +
|
+
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: +
|
+
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 + |
+
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: +
|
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
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: +
|
+
valid_enable + |
+Integer + |
+Indicates whether validity check is enabled. +
Default: 2 +Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+Parameter ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the AppCodes of an app.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes
+ +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. + |
+
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 + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/resources/outline/apps
+ +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. + |
+
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. + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Bad Request + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the credentials that can be bound to a credential quota. Fuzzy search by credential name is supported.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}/bindable-apps
+ +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 + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
app_id + |
+String + |
+Credential ID. + |
+
name + |
+String + |
+Credential name. + |
+
status + |
+Integer + |
+Credential status: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the credentials bound to a credential quota. Fuzzy match by credential name is supported.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}/bound-apps
+ +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 + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
app_id + |
+String + |
+Credential ID. + |
+
name + |
+String + |
+Credential name. + |
+
status + |
+Integer + |
+Credential status: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query credential quotas. Fuzzy query by name is supported.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/app-quotas
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the apps that have been bound to a specified API.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/app-auths/binded-apps
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
app_creator + |
+String + |
+Creator of the app. +
|
+
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. +
The default value is NORMAL. This parameter is not supported currently. +Enumeration values: +
|
+
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. +
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query apps.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apps
+ +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. + |
+
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. +
|
+
precise_search + |
+No + |
+String + |
+Parameter name (name) for exact matching. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+Name. + |
+
remark + |
+String + |
+Description. + |
+
creator + |
+String + |
+Creator of the app. +
The value MARKET is currently not supported. +Enumeration values: +
|
+
update_time + |
+String + |
+Update time. + |
+
app_key + |
+String + |
+AppKey. + |
+
app_secret + |
+String + |
+AppSecret. + |
+
register_time + |
+String + |
+Registration time. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
app_type + |
+String + |
+App type. +
The default value is apig. Other types are not supported currently. +Enumeration values: +
|
+
roma_app_type + |
+String + |
+ROMA application type. +
Currently, this parameter is not supported. + |
+
bind_num + |
+Integer + |
+Number of bound APIs. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the domain names to which an SSL certificate has been bound.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/certificates/{certificate_id}/attached-domains
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
url_domain + |
+String + |
+Custom domain name. + |
+
id + |
+String + |
+Domain ID. + |
+
status + |
+Integer + |
+CNAME resolution status. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query AZs where you can buy gateways.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/available-zones
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain it, see Obtaining a Project ID. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
available_zones + |
+Array of AvailableZone objects + |
+AZ list. + |
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
en_us + |
+String + |
+AZ name. + |
+
zh_cn + |
+String + |
+AZ name. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the backend instances of a specified VPC channel.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the SSL certificates.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/certificates
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain it, see Obtaining a Project ID. + |
+
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_id + |
+Yes + |
+String + |
+ID of the gateway to which the certificate belongs. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Certificate ID. + |
+
name + |
+String + |
+Certificate name. + |
+
type + |
+String + |
+Certificate type. +
Enumeration values: +
|
+
instance_id + |
+String + |
+Gateway ID. +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query all the custom authorizers under a gateway.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/authorizers
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Modification is not allowed. +Enumeration values: +
|
+
authorizer_type + |
+String + |
+Value: FUNC. +Enumeration values: +
|
+
authorizer_uri + |
+String + |
+Function URN. + |
+
network_type + |
+String + |
+Function network architecture: +
Default: V1 +Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Parameter name. + |
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
validation + |
+String + |
+Parameter verification expression. The default value is null, indicating that no verification is performed. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the VPC endpoint connections of a gateway.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/connections
+ +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. + |
+
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: +
Enumeration values: +
|
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Resource Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the whitelist records of a gateway's VPC endpoint service.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-endpoint/permissions
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Record ID. + |
+
permission + |
+String + |
+Permission rules. + |
+
created_at + |
+String + |
+Creation time. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
x-request-id + |
+String + |
+Request ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Resource Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query all environment variables under an API group.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/env-variables
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query environments.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/envs
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
create_time + |
+String + |
+Creation time. + |
+
name + |
+String + |
+Environment name. + |
+
remark + |
+String + |
+Description. + |
+
id + |
+String + |
+Environment ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/features
+ +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. + |
+
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 + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the responses of an API group.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses
+ +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. + |
+
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 + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Response name. + |
+
responses + |
+Map<String,ResponseInfoResp> + |
+Response type definition. key indicates the error type. Options of key: +
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. + |
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the gateway configurations.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instance/configs
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain it, see Obtaining a Project ID. + |
+
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 + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
config_id + |
+String + |
+Quota ID. + |
+
config_name + |
+String + |
+Quota name. +Enumeration values: +
|
+
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. +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the supported features of a gateway.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/instance-features
+ +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. + |
+
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 + |
+
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. + |
+
Status code: 200
+ +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: +
Features not displayed in the list are not supported by the gateway. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query all tags of a gateway.
+Only users who have been authorized with a policy containing actions apig:instanceTags:list and apig:instances:get can call this API.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/instance-tags
+ +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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query dedicated gateways.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain it, see Obtaining a Project ID. + |
+
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. +
Enumeration values: +
|
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
Enumeration values: +
|
+
instance_status + |
+Integer + |
+Instance status ID: +
Enumeration values: +
|
+
type + |
+String + |
+Gateway type. +The default value is apig. + |
+
spec + |
+String + |
+Gateway edition. +
Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
cbc_metadata + |
+String + |
+This parameter is not used currently. + |
+
loadbalancer_provider + |
+String + |
+Type of the load balancer used by the gateway. +
Enumeration values: +
|
+
cbc_operation_locks + |
+Array of CbcOperationLock objects + |
+Cloud operations restriction lock. +This parameter is not used currently. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
lock_scene + |
+String + |
+Restriction scenarios: +
Enumeration values: +
|
+
lock_source_id + |
+String + |
+ID of the object that initiates the restriction + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/statistics/api/latest
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/statistics/group/latest
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
group_id + |
+Yes + |
+String + |
+API group ID. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query backend server groups of a VPC channel.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the monitoring metric data at a specified granularity in a specified period of time.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/metric-data
+ +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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
dim + |
+Yes + |
+String + |
+Metric dimension. +
Enumeration values: +
|
+
metric_name + |
+Yes + |
+String + |
+Metric name. +
Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
filter + |
+Yes + |
+String + |
+Data rollup mode. +
Enumeration values: +
|
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
datapoints + |
+Array of MetricData objects + |
+Metric data. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the APIs to which a plug-in can be bound.
+Pagination query
+Fuzzy query by API name
+APIs already bound with other plug-ins will also be returned.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/attachable-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Enumeration values: +
|
+
req_protocol + |
+String + |
+API request protocol. +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+String + |
+Request method. +Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
match_mode + |
+String + |
+API matching mode. +
Default value: NORMAL +Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the APIs to which a plug-in has been bound.
+Query APIs bound with a specified plug-in
+Pagination query
+Fuzzy query by API name
+APIs taken offline are also included.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/attached-apis
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Enumeration values: +
|
+
req_protocol + |
+String + |
+API request protocol. +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+String + |
+Request method. +Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
match_mode + |
+String + |
+API matching mode. +
Default value: NORMAL +Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query details about a group of plug-ins that meet specified conditions.
+Pagination query
+Query by plug-in type
+Query by plug-in scope
+Query by plug-in ID
+Fuzzy query by plug-in name
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/plugins
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Enumeration values: +
|
+
plugin_scope + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
plugin_content + |
+String + |
+Plug-in content in JSON format. For details, see the model definition. +
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the resource configurations and usage of a gateway.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/project/configs
+ +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. + |
+
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 + |
+
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. + |
+
Status code: 200
+ +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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
config_id + |
+String + |
+Quota ID. + |
+
config_name + |
+String + |
+Quota name. +Enumeration values: +
|
+
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. +
|
+
used + |
+Long + |
+Used quota of the gateway. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query all gateway tags of a project.
+Only users who have been authorized with a policy containing action apig:instanceTags:list can call this API.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instance-tags
+ +Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
project_id + |
+Yes + |
+String + |
+Project ID. For details about how to obtain it, see Obtaining a Project ID. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
tags + |
+Array of TmsKeyValues objects + |
+Tags bound to all gateways in the project. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/throttle-bindings/binded-throttles
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
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. +
Enumeration values: +
|
+
enable_adaptive_control + |
+String + |
+Indicates whether to enable dynamic request throttling. +
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. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query all the request throttling policies.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/throttles
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
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. +
Enumeration values: +
|
+
enable_adaptive_control + |
+String + |
+Indicates whether to enable dynamic request throttling. +
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. +
Enumeration values: +
|
+
create_time + |
+String + |
+Creation time. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/sign-bindings/binded-signs
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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: +
|
+
sign_key + |
+String + |
+Signature key. +
|
+
sign_secret + |
+String + |
+Signature secret. +
|
+
sign_type + |
+String + |
+Signature key type. +
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: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query all the signature keys.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/signs
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
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: +
|
+
sign_key + |
+String + |
+Signature key. +
|
+
sign_secret + |
+String + |
+Signature secret. +
|
+
sign_algorithm + |
+String + |
+Signature algorithm. Specify a signature algorithm only when using an AES signature key. By default, no algorithm is used. +Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query all excluded configurations of a request throttling policy.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}/throttle-specials
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query tags of a gateway.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/tags
+ +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. + |
+
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 + |
+
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. + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the VPC channels under a gateway.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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. +
Default: 1 +Enumeration values: +
|
+
member_type + |
+String + |
+Member type of the VPC channel. +
Default: ecs +Enumeration values: +
|
+
type + |
+Integer + |
+VPC channel type. The default type is server. +
Default: 2 +Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
member_groups + |
+Array of MemberGroupInfo objects + |
+Backend server groups. + |
+
microservice_info + |
+MicroServiceInfo object + |
+Microservice information. + |
+
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. + |
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Microservice ID. + |
+
instance_id + |
+String + |
+Gateway ID. + |
+
service_type + |
+String + |
+Microservice type. Options: +
Enumeration values: +
|
+
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. + |
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
cluster_id + |
+String + |
+CCE cluster ID. +Maximum: 64 + |
+
namespace + |
+String + |
+Namespace. +Maximum: 64 + |
+
workload_type + |
+String + |
+Workload type. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
+
+
This API is used to unbind the EIP of a dedicated gateway.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/eip
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to disable public access for a dedicated gateway.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/nat-eip
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to disable public inbound access for a gateway that uses ELB for load balancing.
+For details, see Calling APIs.
+DELETE /v2/{project_id}/apigw/instances/{instance_id}/ingress-eip
+ +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. + |
+
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. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
204 + |
+No Content + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to reset the AppSecret of an app.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/apps/secret/{app_id}
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+Name. + |
+
remark + |
+String + |
+Description. + |
+
creator + |
+String + |
+Creator of the app. +
The value MARKET is currently not supported. +Enumeration values: +
|
+
update_time + |
+String + |
+Update time. + |
+
app_key + |
+String + |
+AppKey. + |
+
app_secret + |
+String + |
+AppSecret. + |
+
register_time + |
+String + |
+Registration time. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
app_type + |
+String + |
+App type. +
The default value is apig. Other types are not supported currently. +Enumeration values: +
|
+
roma_app_type + |
+String + |
+ROMA application type. +
Currently, this parameter is not supported. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Resetting secret
+{ + "app_secret" : "1ff************9a4" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
This API is used to query quotas associated with a specified credential.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/bound-quota
+ +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. + |
+
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. + |
+
Status code: 200
+ +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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query credential quota details.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}
+ +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 + |
+
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. + |
+
Status code: 200
+ +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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the result of an asynchronous task.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/async-tasks/{task_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
task_id + |
+String + |
+Task ID. + |
+
task_status + |
+String + |
+Task status. Options: waiting, processing, succeed, and failed. +Enumeration values: +
|
+
task_type + |
+String + |
+Task type. Options: import_api and export_api. Both types of tasks are asynchronous. +Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+Status code: 200
+OK
+{ + "task_id" : "d9ce8c9eede54b3f841ec324fe0bfdc2", + "task_status" : "succeed", + "task_type" : "import_api", + "task_result" : "{\"success\":[{\"id\":\"ee93ce6815f04896b301452982b92222\",\"action\":\"create\",\"method\":\"GET\",\"path\":\"/test1\"}],\"failure\":[],\"swagger\":{\"id\":\"de1852ab6c5e4090b0bd88a02058e650\",\"result\":\"Success\"},\"group_id\":\"9100ae30705947cc9543d37cd7fb388c\"}" +}+
{ + "task_id" : "d6e8834b6f0f4711a2fa5345e5b60833", + "task_status" : "succeed", + "task_type" : "export_api", + "task_result" : "{\"FileName\":\"test8-RELEASE-all-2023-07-11-19:54:22\",\"FileType\":\".json\",\"Comment\":\"{\\n\\t\\\"swagger\\\": \\\"2.0\\\",\\n\\t\\\"info\\\": {\\n\\t\\t\\\"title\\\": \\\"test8\\\",\\n\\t\\t\\\"version\\\": \\\"2023-07-11-19:54:22\\\"\\n\\t},\\n\\t\\\"host\\\": \\\"xxx.com\\\",\\n\\t\\\"paths\\\": {\\n\\t\\t\\\"/test1\\\": {\\n\\t\\t\\t\\\"get\\\": {\\n\\t\\t\\t\\t\\\"security\\\": [\\n\\t\\t\\t\\t\\t{\\n\\t\\t\\t\\t\\t\\t\\\"apig-auth-app\\\": []\\n\\t\\t\\t\\t\\t}\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t\\\"schemes\\\": [\\n\\t\\t\\t\\t\\t\\\"https\\\"\\n\\t\\t\\t\\t],\\n\\t\\t\\t\\t\\\"operationId\\\": \\\"API_zjev\\\",\\n\\t\\t\\t\\t\\\"responses\\\": {\\n\\t\\t\\t\\t\\t\\\"default\\\": {\\n\\t\\t\\t\\t\\t\\t\\\"$ref\\\": \\\"#/responses/default\\\"\\n\\t\\t\\t\\t\\t},\\n\\t\\t\\t\\t\\t\\\"x-apigateway-result-failure-sample\\\": \\\"\\\",\\n\\t\\t\\t\\t\\t\\\"x-apigateway-result-normal-sample\\\": \\\"\\\"\\n\\t\\t\\t\\t},\\n\\t\\t\\t\\t\\\"x-apigateway-backend\\\": {\\n\\t\\t\\t\\t\\t\\\"mockEndpoints\\\": {\\n\\t\\t\\t\\t\\t\\t\\\"description\\\": \\\"\\\",\\n\\t\\t\\t\\t\\t\\t\\\"result-content\\\": \\\"not ok\\\"\\n\\t\\t\\t\\t\\t},\\n\\t\\t\\t\\t\\t\\\"type\\\": \\\"MOCK\\\"\\n\\t\\t\\t\\t},\\n\\t\\t\\t\\t\\\"x-apigateway-cors\\\": false,\\n\\t\\t\\t\\t\\\"x-apigateway-match-mode\\\": \\\"NORMAL\\\",\\n\\t\\t\\t\\t\\\"x-apigateway-request-type\\\": \\\"public\\\"\\n\\t\\t\\t}\\n\\t\\t}\\n\\t},\\n\\t\\\"responses\\\": {\\n\\t\\t\\\"default\\\": {\\n\\t\\t\\t\\\"description\\\": \\\"response example\\\"\\n\\t\\t}\\n\\t},\\n\\t\\\"securityDefinitions\\\": {\\n\\t\\t\\\"apig-auth-app\\\": {\\n\\t\\t\\t\\\"type\\\": \\\"apiKey\\\",\\n\\t\\t\\t\\\"name\\\": \\\"Authorization\\\",\\n\\t\\t\\t\\\"in\\\": \\\"header\\\",\\n\\t\\t\\t\\\"x-apigateway-auth-type\\\": \\\"AppSigv1\\\"\\n\\t\\t},\\n\\t\\t\\\"apig-auth-app-header\\\": {\\n\\t\\t\\t\\\"type\\\": \\\"apiKey\\\",\\n\\t\\t\\t\\\"name\\\": \\\"Authorization\\\",\\n\\t\\t\\t\\\"in\\\": \\\"header\\\",\\n\\t\\t\\t\\\"x-apigateway-auth-opt\\\": {\\n\\t\\t\\t\\t\\\"appcode-auth-type\\\": \\\"header\\\"\\n\\t\\t\\t},\\n\\t\\t\\t\\\"x-apigateway-auth-type\\\": \\\"AppSigv1\\\"\\n\\t\\t},\\n\\t\\t\\\"apig-auth-iam\\\": {\\n\\t\\t\\t\\\"type\\\": \\\"apiKey\\\",\\n\\t\\t\\t\\\"name\\\": \\\"unused\\\",\\n\\t\\t\\t\\\"in\\\": \\\"header\\\",\\n\\t\\t\\t\\\"x-apigateway-auth-type\\\": \\\"IAM\\\"\\n\\t\\t}\\n\\t}\\n,\\n\\t\\\"x-apigateway-responses\\\": {}\\n}\"}" +}+
{ + "task_id" : "f01d2772ea4944408fa544c8ae5a9999", + "task_status" : "failed", + "task_type" : "import_api", + "task_result" : "{\"error_code\":\"APIG.3201\",\"error_msg\":\"The API group name already exists\"}" +}+
{ + "task_id" : "4dfbf6acaacf4c41a8b3c50daa90d3dc", + "task_status" : "processing", + "task_type" : "import_api", + "task_result" : "" +}+
{ + "task_id" : "c3b78a52fb28461aab92bf6c6989f731", + "task_status" : "waiting", + "task_type" : "import_api", + "task_result" : "" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of an access control policy.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/acls/{acl_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
acl_name + |
+String + |
+Name. + |
+
acl_type + |
+String + |
+Type. +
|
+
acl_value + |
+String + |
+Access control objects. + |
+
entity_type + |
+String + |
+Object type. +
|
+
id + |
+String + |
+ID. + |
+
update_time + |
+String + |
+Update time. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of an API group.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+API group name. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
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. +
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. +
|
+
version + |
+String + |
+Group version. +
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Domain ID. + |
+
domain + |
+String + |
+Domain name. + |
+
cname_status + |
+Integer + |
+CNAME resolution status of the domain name. +
|
+
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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of an API.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +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. +
Enumeration values: +
|
+
version + |
+String + |
+API version. +Maximum: 16 + |
+
req_protocol + |
+String + |
+API request protocol: +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+String + |
+API request method. If the request protocol is set to GRPC, the request method is fixed to POST. +Enumeration values: +
|
+
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: +
Custom authentication is unavailable if the request protocol is set to GRPC. +Enumeration values: +
|
+
auth_opt + |
+AuthOpt object + |
+Security authentication parameter. + |
+
cors + |
+Boolean + |
+Indicates whether CORS is supported. +
Default: false +Enumeration values: +
|
+
match_mode + |
+String + |
+API matching mode: +
Enumeration values: +
|
+
backend_type + |
+String + |
+Backend type. Options: +
Enumeration values: +
|
+
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: +
Coming soon. +Enumeration values: +
|
+
id + |
+String + |
+API ID. + |
+
status + |
+Integer + |
+App status. +
|
+
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. + |
+
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. +
Default: DISABLE +Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
|
+
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. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+API group name. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
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. +
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Domain ID. + |
+
domain + |
+String + |
+Domain name. + |
+
cname_status + |
+Integer + |
+CNAME resolution status of the domain name. +
|
+
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: +
|
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
function_urn + |
+String + |
+Function URN. + |
+
remark + |
+String + |
+Description. It cannot exceed 255 characters. + |
+
invocation_type + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+ID. + |
+
register_time + |
+String + |
+Registration time. + |
+
status + |
+Integer + |
+Backend service status. +
|
+
update_time + |
+String + |
+Update time. + |
+
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. +
|
+
update_time + |
+String + |
+Update time. + |
+
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: +
|
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
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: +
|
+
valid_enable + |
+Integer + |
+Indicates whether validity check is enabled. +
Default: 2 +Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+Parameter ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
function_urn + |
+String + |
+Function URN. + |
+
invocation_type + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
origin + |
+String + |
+Parameter type. +
Enumeration values: +
|
+
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: +
|
+
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: +
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. + |
+
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: +
Enumeration values: +
|
+
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. +
This parameter is required when the policy type is param, system, cookie, or frontend_authorizer. +Enumeration values: +
|
+
condition_origin + |
+String + |
+Policy type +
Enumeration values: +
|
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the access control details about an app.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-acl
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
app_id + |
+String + |
+App ID. + |
+
app_acl_type + |
+String + |
+Type: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of an AppCode created for an app for simple authentication.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-codes/{app_code_id}
+ +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. + |
+
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. + |
+
Status code: 201
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of an app.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+Name. + |
+
remark + |
+String + |
+Description. + |
+
creator + |
+String + |
+Creator of the app. +
The value MARKET is currently not supported. +Enumeration values: +
|
+
update_time + |
+String + |
+Update time. + |
+
app_key + |
+String + |
+AppKey. + |
+
app_secret + |
+String + |
+AppSecret. + |
+
register_time + |
+String + |
+Registration time. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
app_type + |
+String + |
+App type. +
The default value is apig. Other types are not supported currently. +Enumeration values: +
|
+
roma_app_type + |
+String + |
+ROMA application type. +
Currently, this parameter is not supported. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details about a certificate.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/certificates/{certificate_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Certificate ID. + |
+
name + |
+String + |
+Certificate name. + |
+
type + |
+String + |
+Certificate type. +
Enumeration values: +
|
+
instance_id + |
+String + |
+Gateway ID. +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of a custom authorizer.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/authorizers/{authorizer_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +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. +
Modification is not allowed. +Enumeration values: +
|
+
authorizer_type + |
+String + |
+Value: FUNC. +Enumeration values: +
|
+
authorizer_uri + |
+String + |
+Function URN. + |
+
network_type + |
+String + |
+Function network architecture: +
Default: V1 +Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Parameter name. + |
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
validation + |
+String + |
+Parameter verification expression. The default value is null, indicating that no verification is performed. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of the certificate bound to a domain name.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificate/{certificate_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Certificate ID. + |
+
name + |
+String + |
+Certificate name. + |
+
type + |
+String + |
+Certificate type. Options: +
Enumeration values: +
|
+
instance_id + |
+String + |
+Gateway ID. +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of an environment variable.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/env-variables/{env_variable_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the response of an error type defined for an API group.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}/{response_type}
+ +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: +
Enumeration values: +
|
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
{User defined key} + |
+Map<String,ResponseInfoResp> + |
+OK + |
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of a response defined for an API group.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Response name. + |
+
responses + |
+Map<String,ResponseInfoResp> + |
+Response type definition. key indicates the error type. Options of key: +
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. + |
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the creation progress of a dedicated gateway.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/progress
+ +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. + |
+
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. + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
progress + |
+Integer + |
+Gateway creation progress. +Unit: % +Enumeration values: +
|
+
status + |
+String + |
+Gateway creation status. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+Status code: 200
+OK
+{ + "end_time" : 1597390224911, + "error_code" : null, + "error_msg" : null, + "progress" : 100, + "start_time" : 1597389901161, + "status" : "success" +}+
{ + "end_time" : 1597390224911, + "error_code" : null, + "error_msg" : null, + "progress" : 50, + "start_time" : 1597389901161, + "status" : "creating" +}+
{ + "end_time" : 1597390224911, + "error_code" : "APIC.9218", + "error_msg" : "create failed...", + "progress" : 0, + "start_time" : 1597389901161, + "status" : "failed" +}+
{ + "end_time" : 1597390224911, + "error_code" : "APIC.9219", + "error_msg" : "create failed...", + "progress" : 0, + "start_time" : 1597389901161, + "status" : "failed" +}+
{ + "end_time" : 1597390224911, + "error_code" : "APIC.9206", + "error_msg" : "create failed...", + "progress" : 0, + "start_time" : 1597389901161, + "status" : "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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of a dedicated gateway.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +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: +
Enumeration values: +
|
+
instance_status + |
+Integer + |
+Instance status ID: +
Enumeration values: +
|
+
type + |
+String + |
+Gateway type. +The default value is apig. + |
+
spec + |
+String + |
+Gateway edition. +
Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
cbc_metadata + |
+String + |
+This parameter is not used currently. + |
+
loadbalancer_provider + |
+String + |
+Type of the load balancer used by the gateway. +
Enumeration values: +
|
+
description + |
+String + |
+Description about the gateway. + |
+
vpc_id + |
+String + |
+VPC ID. +You can obtain it in either of the following ways: +
|
+
subnet_id + |
+String + |
+Subnet network ID. +You can obtain it in either of the following ways: +
|
+
security_group_id + |
+String + |
+ID of the security group to which the gateway belongs. +You can obtain it in either of the following ways: +
|
+
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. +
|
+
ingress_bandwidth_charging_mode + |
+String + |
+Billing mode of the public inbound access bandwidth. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
service_name + |
+String + |
+VPC endpoint service name. + |
+
created_at + |
+String + |
+Creation time. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
livedata + |
+Array of strings + |
+LiveData node IP addresses. + |
+
shubao + |
+Array of strings + |
+Shubao node IP addresses. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
ip_address + |
+String + |
+IP address. + |
+
bandwidth_size + |
+Integer + |
+Bandwidth. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query a backend server group of a specified VPC channel.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups/{member_group_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of a request throttling policy.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +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: +
|
+
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. +
Enumeration values: +
|
+
enable_adaptive_control + |
+String + |
+Indicates whether to enable dynamic request throttling. +
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. +
Enumeration values: +
|
+
create_time + |
+String + |
+Creation time. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of a VPC channel.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +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. +
Default: 1 +Enumeration values: +
|
+
member_type + |
+String + |
+Member type of the VPC channel. +
Default: ecs +Enumeration values: +
|
+
type + |
+Integer + |
+VPC channel type. The default type is server. +
Default: 2 +Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
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. + |
+
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. + |
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Microservice ID. + |
+
instance_id + |
+String + |
+Gateway ID. + |
+
service_type + |
+String + |
+Microservice type. Options: +
Enumeration values: +
|
+
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. + |
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
cluster_id + |
+String + |
+CCE cluster ID. +Maximum: 64 + |
+
namespace + |
+String + |
+Namespace. +Maximum: 64 + |
+
workload_type + |
+String + |
+Workload type. +
Enumeration values: +
|
+
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. + |
+
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. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
protocol + |
+String + |
+Protocol for performing health checks on backend servers in the VPC channel. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+Status code: 200
+OK
+{ + "name" : "VPC_demo", + "port" : 22, + "balance_strategy" : 1, + "member_type" : "ip", + "dict_code" : "", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "id" : "56a7d7358e1b42459c9d730d65b14e59", + "status" : 1, + "member_groups" : [ ], + "type" : 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" : "" + } ], + "vpc_health_config" : { + "protocol" : "http", + "path" : "/vpc/demo", + "method" : "GET", + "port" : 22, + "threshold_normal" : 2, + "threshold_abnormal" : 5, + "time_interval" : 10, + "http_code" : "200", + "enable_client_ssl" : false, + "status" : 1, + "timeout" : 5, + "vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59", + "id" : "3b3d02026c5f402d85e8645ea95b0816", + "create_time" : "2020-07-23T07:11:57Z" + }, + "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" : "VPC_demo", + "id" : "105c6902457144a4820dff8b1ad63331", + "balance_strategy" : 1, + "dict_code" : "", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "member_type" : "ip", + "port" : 22, + "status" : 1, + "member_groups" : [ { + "member_group_id" : "c1ce135c705c4066853a0460b318fe16", + "member_group_name" : "test", + "member_group_weight" : 1, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z", + "microservice_version" : "v1", + "microservice_port" : 80 + }, { + "member_group_id" : "c1ce135c705c4066853a0460b318fe17", + "member_group_name" : "default", + "member_group_weight" : 2, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z", + "microservice_version" : "v2", + "microservice_port" : 80 + } ], + "type" : 3, + "vpc_health_config" : { + "protocol" : "http", + "path" : "/vpc/demo", + "method" : "GET", + "port" : 22, + "threshold_normal" : 2, + "threshold_abnormal" : 5, + "time_interval" : 10, + "http_code" : "200", + "enable_client_ssl" : false, + "status" : 1, + "timeout" : 5, + "vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59", + "id" : "3b3d02026c5f402d85e8645ea95b0816", + "create_time" : "2020-07-23T07:11:57Z" + }, + "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.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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the details of a plug-in.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}
+ +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. + |
+
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. + |
+
Status code: 200
+ +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. +
Enumeration values: +
|
+
plugin_scope + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
plugin_content + |
+String + |
+Plug-in content in JSON format. For details, see the model definition. +
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to query the constraints of a gateway.
+For details, see Calling APIs.
+GET /v2/{project_id}/apigw/instances/{instance_id}/restriction
+ +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. + |
+
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. + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
None
+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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
+
+
+
+
+
This API is used to modify an access control policy. Only attributes acl_name, acl_type, and acl_value can be modified.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/acls/{acl_id}
+ +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. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
acl_value + |
+Yes + |
+String + |
+One or more objects from which the access will be controlled. Separate multiple objects with commas. +
|
+
entity_type + |
+Yes + |
+String + |
+Object type. +
Enumeration values: +
|
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
acl_name + |
+String + |
+Name. + |
+
acl_type + |
+String + |
+Type. +
|
+
acl_value + |
+String + |
+Access control objects. + |
+
entity_type + |
+String + |
+Object type. +
|
+
id + |
+String + |
+ID. + |
+
update_time + |
+String + |
+Update time. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}
+ +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. + |
+
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. + |
+
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 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+API group name. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
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. +
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. +
|
+
version + |
+String + |
+Group version. +
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Domain ID. + |
+
domain + |
+String + |
+Domain name. + |
+
cname_status + |
+Integer + |
+CNAME resolution status of the domain name. +
|
+
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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying an API group
+{ + "name" : "api_group_001", + "remark" : "API group 1" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify the information about an API, including its backend information.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}
+ +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. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
version + |
+No + |
+String + |
+API version. +Maximum: 16 + |
+
req_protocol + |
+Yes + |
+String + |
+API request protocol: +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+Yes + |
+String + |
+API request method. If the request protocol is set to GRPC, the request method is fixed to POST. +Enumeration values: +
|
+
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: +
Custom authentication is unavailable if the request protocol is set to GRPC. +Enumeration values: +
|
+
auth_opt + |
+No + |
+AuthOpt object + |
+Security authentication parameter. + |
+
cors + |
+No + |
+Boolean + |
+Indicates whether CORS is supported. +
Default: false +Enumeration values: +
|
+
match_mode + |
+No + |
+String + |
+API matching mode: +
Enumeration values: +
|
+
backend_type + |
+Yes + |
+String + |
+Backend type. Options: +
Enumeration values: +
|
+
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: +
Coming soon. +Enumeration values: +
|
+
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. + |
+
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. +
Default: DISABLE +Enumeration values: +
|
+
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. + |
+
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. +
Enumeration values: +
|
+
network_type + |
+Yes + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
location + |
+Yes + |
+String + |
+Parameter location. +Enumeration values: +
|
+
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: +
|
+
valid_enable + |
+No + |
+Integer + |
+Indicates whether validity check is enabled. +
Default: 2 +Enumeration values: +
|
+
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: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
result_content + |
+No + |
+String + |
+Response. + |
+
effect_mode + |
+Yes + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
function_urn + |
+Yes + |
+String + |
+Function URN. + |
+
invocation_type + |
+Yes + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+Yes + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
effect_mode + |
+Yes + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
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: +
|
+
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: +
|
+
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. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
origin + |
+Yes + |
+String + |
+Parameter type. +
Enumeration values: +
|
+
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: +
|
+
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: +
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". + |
+
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: +
Enumeration values: +
|
+
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. +
This parameter is required when the policy type is param, system, cookie, or frontend_authorizer. +Enumeration values: +
|
+
condition_origin + |
+Yes + |
+String + |
+Policy type +
Enumeration values: +
|
+
condition_value + |
+Yes + |
+String + |
+Policy value. This parameter is required when the policy type is param, source, cookie, or frontend_authorizer. + |
+
Status code: 200
+ +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. +
Enumeration values: +
|
+
version + |
+String + |
+API version. +Maximum: 16 + |
+
req_protocol + |
+String + |
+API request protocol: +
Default: HTTPS +Enumeration values: +
|
+
req_method + |
+String + |
+API request method. If the request protocol is set to GRPC, the request method is fixed to POST. +Enumeration values: +
|
+
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: +
Custom authentication is unavailable if the request protocol is set to GRPC. +Enumeration values: +
|
+
auth_opt + |
+AuthOpt object + |
+Security authentication parameter. + |
+
cors + |
+Boolean + |
+Indicates whether CORS is supported. +
Default: false +Enumeration values: +
|
+
match_mode + |
+String + |
+API matching mode: +
Enumeration values: +
|
+
backend_type + |
+String + |
+Backend type. Options: +
Enumeration values: +
|
+
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: +
Coming soon. +Enumeration values: +
|
+
id + |
+String + |
+API ID. + |
+
status + |
+Integer + |
+App status. +
|
+
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. + |
+
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. +
Default: DISABLE +Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
|
+
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. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+API group name. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
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. +
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Domain ID. + |
+
domain + |
+String + |
+Domain name. + |
+
cname_status + |
+Integer + |
+CNAME resolution status of the domain name. +
|
+
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: +
|
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
function_urn + |
+String + |
+Function URN. + |
+
remark + |
+String + |
+Description. It cannot exceed 255 characters. + |
+
invocation_type + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+ID. + |
+
register_time + |
+String + |
+Registration time. + |
+
status + |
+Integer + |
+Backend service status. +
|
+
update_time + |
+String + |
+Update time. + |
+
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. +
|
+
update_time + |
+String + |
+Update time. + |
+
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: +
|
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
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: +
|
+
valid_enable + |
+Integer + |
+Indicates whether validity check is enabled. +
Default: 2 +Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+Parameter ID. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
function_urn + |
+String + |
+Function URN. + |
+
invocation_type + |
+String + |
+Invocation mode. +
Enumeration values: +
|
+
network_type + |
+String + |
+Function network architecture. +
Enumeration values: +
|
+
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: +
|
+
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
effect_mode + |
+String + |
+Effective mode of the backend policy. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
|
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
origin + |
+String + |
+Parameter type. +
Enumeration values: +
|
+
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: +
|
+
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: +
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. + |
+
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: +
Enumeration values: +
|
+
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. +
This parameter is required when the policy type is param, system, cookie, or frontend_authorizer. +Enumeration values: +
|
+
condition_origin + |
+String + |
+Policy type +
Enumeration values: +
|
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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" ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to configure access control settings for a credential.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}/app-acl
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
app_acl_type + |
+Yes + |
+String + |
+Type: +
|
+
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. + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
app_id + |
+String + |
+App ID. + |
+
app_acl_type + |
+String + |
+Type: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
{ + "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: 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 Code + |
+Description + |
+
---|---|
201 + |
+Ok + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify a credential quota.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/app-quotas/{app_quota_id}
+ +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 + |
+
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. + |
+
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: +
|
+
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 + |
+
Status code: 200
+ +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: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
{ + "call_limits" : 1000, + "name" : "ClientQuota_demo", + "reset_time" : "2020-09-20 00:00:00", + "time_interval" : 1, + "time_unit" : "DAY" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/apps/{app_id}
+ +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. + |
+
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. + |
+
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: _-!@#$% + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+ID. + |
+
name + |
+String + |
+Name. + |
+
remark + |
+String + |
+Description. + |
+
creator + |
+String + |
+Creator of the app. +
The value MARKET is currently not supported. +Enumeration values: +
|
+
update_time + |
+String + |
+Update time. + |
+
app_key + |
+String + |
+AppKey. + |
+
app_secret + |
+String + |
+AppSecret. + |
+
register_time + |
+String + |
+Registration time. + |
+
status + |
+Integer + |
+Status. +
Enumeration values: +
|
+
app_type + |
+String + |
+App type. +
The default value is apig. Other types are not supported currently. +Enumeration values: +
|
+
roma_app_type + |
+String + |
+ROMA application type. +
Currently, this parameter is not supported. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying an app
+{ + "name" : "app_demo", + "remark" : "Demo app" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members
+ +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. + |
+
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. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
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 + |
+
Status code: 200
+ +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. + |
+
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. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Updating non-standby backend instances of a VPC channel
+{ + "member_group_name" : "primary", + "members" : [ { + "host" : "192.168.2.25", + "weight" : 1, + "is_backup" : false, + "member_group_name" : "primary" + } ] +}+
Updating all backend instances of a VPC channel
+{ + "members" : [ { + "ecs_id" : "1082720c-3c15-409c-9ae3-4983ddfb6a9d", + "ecs_name" : "APIGtest02", + "weight" : 2 + } ] +}+
Status code: 200
+OK
+Example 1
+{ + "total" : 1, + "size" : 1, + "members" : [ { + "host" : "192.168.2.25", + "weight" : 1, + "is_backup" : false, + "member_group_name" : "primary", + "port" : 22, + "status" : 1, + "ecs_id" : "192.168.2.25", + "ecs_name" : "192.168.2.25", + "id" : "683b6807cad54122a6777ad047a6178e", + "vpc_channel_id" : "56a7d7358e1b42459c9d730d65b14e59", + "create_time" : "2020-07-23T09:13:24Z", + "member_group_id" : "631b551cddda40478ef720163a9412ed" + } ] +}+
Example 2
+{ + "total" : 1, + "size" : 1, + "members" : [ { + "host" : "192.168.0.17", + "weight" : 2, + "is_backup" : false, + "member_group_name" : "primary", + "port" : 22, + "status" : 1, + "ecs_id" : "1082720c-3c15-409c-9ae3-4983ddfb6a9d", + "ecs_name" : "APIGtest02", + "id" : "5c868f0224084710a1e188b7d3057c52", + "vpc_channel_id" : "105c6902457144a4820dff8b1ad63331", + "create_time" : "2020-07-23T09:03:53Z", + "member_group_id" : "631b551cddda40478ef720163a9412ed" + } ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify an SSL certificate.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/certificates/{certificate_id}
+ +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. + |
+
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. + |
+
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_id + |
+No + |
+String + |
+Gateway ID. This parameter is required if type is set to instance. + |
+
trusted_root_ca + |
+No + |
+String + |
+Trusted root certificate (CA). + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Certificate ID. + |
+
name + |
+String + |
+Certificate name. + |
+
type + |
+String + |
+Certificate type. +
Enumeration values: +
|
+
instance_id + |
+String + |
+Gateway ID. +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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'" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify a custom authorizer.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/authorizers/{authorizer_id}
+ +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. + |
+
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. + |
+
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. +
Modification is not allowed. +Enumeration values: +
|
+
authorizer_type + |
+Yes + |
+String + |
+Value: FUNC. +Enumeration values: +
|
+
authorizer_uri + |
+Yes + |
+String + |
+Function URN. + |
+
network_type + |
+No + |
+String + |
+Function network architecture: +
Default: V1 +Enumeration values: +
|
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
name + |
+Yes + |
+String + |
+Parameter name. + |
+
location + |
+Yes + |
+String + |
+Parameter location. +Enumeration values: +
|
+
validation + |
+No + |
+String + |
+Parameter verification expression. The default value is null, indicating that no verification is performed. + |
+
Status code: 200
+ +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. +
Modification is not allowed. +Enumeration values: +
|
+
authorizer_type + |
+String + |
+Value: FUNC. +Enumeration values: +
|
+
authorizer_uri + |
+String + |
+Function URN. + |
+
network_type + |
+String + |
+Function network architecture: +
Default: V1 +Enumeration values: +
|
+
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. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Parameter name. + |
+
location + |
+String + |
+Parameter location. +Enumeration values: +
|
+
validation + |
+String + |
+Parameter verification expression. The default value is null, indicating that no verification is performed. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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" + } ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify the configuration of a domain name bound to an API group.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}
+ +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. + |
+
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. + |
+
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: +
|
+
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 + |
+
Status code: 201
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
url_domain + |
+String + |
+Custom domain name. + |
+
id + |
+String + |
+Domain ID. + |
+
status + |
+Integer + |
+CNAME resolution status. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying a domain name
+{ + "min_ssl_version" : "TLSv1.2" +}+
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 Code + |
+Description + |
+
---|---|
201 + |
+Created + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to update the outbound access bandwidth of a dedicated gateway.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/nat-eip
+ +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. + |
+
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. + |
+
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. +
Default: bandwidth +Enumeration values: +
|
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Updating the outbound access bandwidth of a gateway
+{ + "bandwidth_size" : 5, + "bandwidth_charging_mode" : "bandwidth" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify the information about an environment. Only the name and remark attributes of an environment can be modified.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/envs/{env_id}
+ +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. + |
+
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. + |
+
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 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
create_time + |
+String + |
+Creation time. + |
+
name + |
+String + |
+Environment name. + |
+
remark + |
+String + |
+Description. + |
+
id + |
+String + |
+Environment ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying an environment
+{ + "name" : "DEV", + "remark" : "Development environment" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/env-variables/{env_variable_id}
+ +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. + |
+
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. + |
+
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. + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
{ + "variable_value" : "192.168.1.5" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify the response of an error type defined for an API group.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}/{response_type}
+ +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: +
Enumeration values: +
|
+
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. + |
+
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 + |
+
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 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
{User defined key} + |
+Map<String,ResponseInfoResp> + |
+OK + |
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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 +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify a response of an API group.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/gateway-responses/{response_id}
+ +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. + |
+
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. + |
+
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: +
Each error type is in JSON format. + |
+
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 + |
+
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 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
name + |
+String + |
+Response name. + |
+
responses + |
+Map<String,ResponseInfoResp> + |
+Response type definition. key indicates the error type. Options of key: +
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. + |
+
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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying a response of an API group
+{ + "name" : "response_demo" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify the health check configuration of a VPC channel.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/health-config
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
protocol + |
+Yes + |
+String + |
+Protocol for performing health checks on backend servers in the VPC channel. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
Enumeration values: +
|
+
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 + |
+
Status code: 200
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
protocol + |
+String + |
+Protocol for performing health checks on backend servers in the VPC channel. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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 +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to update the public inbound access bandwidth of a gateway that uses ELB for load balancing.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/ingress-eip
+ +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. + |
+
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. + |
+
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. +
Default: bandwidth +Enumeration values: +
|
+
Status code: 202
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
instance_id + |
+String + |
+Gateway ID. + |
+
message + |
+String + |
+Public access address change task. + |
+
job_id + |
+String + |
+Task ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Updating public inbound access bandwidth of a gateway
+{ + "bandwidth_size" : 5, + "bandwidth_charging_mode" : "bandwidth" +}+
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 Code + |
+Description + |
+
---|---|
202 + |
+Accepted + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to update a dedicated gateway.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}
+ +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. + |
+
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. + |
+
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: +
|
+
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. + |
+
Status code: 200
+ +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: +
Enumeration values: +
|
+
instance_status + |
+Integer + |
+Instance status ID: +
Enumeration values: +
|
+
type + |
+String + |
+Gateway type. +The default value is apig. + |
+
spec + |
+String + |
+Gateway edition. +
Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
cbc_metadata + |
+String + |
+This parameter is not used currently. + |
+
loadbalancer_provider + |
+String + |
+Type of the load balancer used by the gateway. +
Enumeration values: +
|
+
description + |
+String + |
+Description about the gateway. + |
+
vpc_id + |
+String + |
+VPC ID. +You can obtain it in either of the following ways: +
|
+
subnet_id + |
+String + |
+Subnet network ID. +You can obtain it in either of the following ways: +
|
+
security_group_id + |
+String + |
+ID of the security group to which the gateway belongs. +You can obtain it in either of the following ways: +
|
+
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. +
|
+
ingress_bandwidth_charging_mode + |
+String + |
+Billing mode of the public inbound access bandwidth. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
service_name + |
+String + |
+VPC endpoint service name. + |
+
created_at + |
+String + |
+Creation time. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
livedata + |
+Array of strings + |
+LiveData node IP addresses. + |
+
shubao + |
+Array of strings + |
+Shubao node IP addresses. + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
ip_address + |
+String + |
+IP address. + |
+
bandwidth_size + |
+Integer + |
+Bandwidth. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying a gateway
+{ + "description" : "test create instance", + "instance_name" : "apig-demo" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to update a backend server group of a VPC channel.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups/{member_group_id}
+ +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. + |
+
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. + |
+
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. + |
+
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 + |
+
Status code: 200
+ +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. + |
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Updating a backend server group for a VPC channel of the server type
+{ + "member_group_name" : "vpc_member_group", + "member_group_weight" : 10 +}+
Updating a backend server group for a VPC channel of the microservice type
+{ + "member_group_name" : "vpc_member_group", + "member_group_weight" : 10, + "microservice_version" : "v1", + "microservice_port" : 80, + "microservice_labels" : [ { + "label_name" : "cluster_id", + "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113" + } ] +}+
Status code: 200
+OK
+Example 1
+{ + "member_group_name" : "vpc_member_group", + "member_group_id" : "105c6902457144a4820dff8b1ad63331", + "member_group_remark" : "", + "member_group_weight" : 10, + "create_time" : "2020-07-23T07:24:33Z", + "update_time" : "2020-07-23T07:24:33Z", + "microservice_version" : "", + "microservice_port" : 0, + "microservice_labels" : [ ] +}+
Example 2
+{ + "member_group_name" : "vpc_member_group", + "member_group_id" : "105c6902457144a4820dff8b1ad63331", + "member_group_remark" : "", + "member_group_weight" : 10, + "create_time" : "2020-07-23T07:24:33Z", + "update_time" : "2020-07-23T07:24:33Z", + "microservice_version" : "v1", + "microservice_port" : 80, + "microservice_labels" : [ { + "label_name" : "cluster_id", + "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113" + } ] +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify a plug-in.
+Plug-in names must be unique.
+The plug-in type and scope cannot be modified.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}
+ +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. + |
+
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. + |
+
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. +
Enumeration values: +
|
+
plugin_scope + |
+Yes + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
plugin_content + |
+Yes + |
+String + |
+Plug-in content in JSON format. For details, see the model definition. +
Maximum: 65535 + |
+
remark + |
+No + |
+String + |
+Plug-in description, with a maximum of 255 characters. +Maximum: 255 + |
+
Status code: 200
+ +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. +
Enumeration values: +
|
+
plugin_scope + |
+String + |
+Plug-in scope. global: Visible to all gateways. +Enumeration values: +
|
+
plugin_content + |
+String + |
+Plug-in content in JSON format. For details, see the model definition. +
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Updating a CORS plug-in
+{ + "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" +}+
Updating an HTTP response header plug-in
+{ + "plugin_name" : "HTTP Response Header Plug-in", + "plugin_type" : "set_resp_headers", + "plugin_scope" : "global", + "plugin_content" : "{\\\"response_headers\\\":[{\\\"name\\\":\\\"x-demo\\\",\\\"value\\\":\\\"sss\\\",\\\"action\\\":\\\"append\\\"}]}", + "remark" : "HTTP response header management" +}+
Updating a request throttling plug-in
+{ + "plugin_name" : "Request Throttling Plug-in", + "plugin_type" : "rate_limit", + "plugin_scope" : "global", + "plugin_content" : "{\\\"scope\\\":\\\"basic\\\",\\\"default_time_unit\\\":\\\"minute\\\",\\\"default_interval\\\":1,\\\"api_limit\\\":50,\\\"app_limit\\\":0,\\\"user_limit\\\":0,\\\"ip_limit\\\":0,\\\"algorithm\\\":\\\"counter\\\",\\\"specials\\\":[],\\\"parameters\\\":[],\\\"rules\\\":[]}", + "remark" : "Request throttling" +}+
Updating a Kafka log push plug-in
+{ + "plugin_name" : "Kafka Log Plug-in", + "plugin_type" : "kafka_log", + "plugin_scope" : "app", + "plugin_content" : "{\\\"broker_list\\\":[\\\"0.0.0.0:11\\\"],\\\"topic\\\":\\\"topic\\\",\\\"key\\\":\\\"\\\",\\\"max_retry_count\\\":0,\\\"retry_backoff\\\":1,\\\"sasl_config\\\":{\\\"security_protocol\\\":\\\"PLAINTEXT\\\",\\\"sasl_mechanisms\\\":\\\"PLAIN\\\",\\\"sasl_username\\\":\\\"\\\",\\\"sasl_password\\\":\\\"\\\",\\\"ssl_ca_content\\\":\\\"\\\"},\\\"meta_config\\\":{\\\"system\\\":{\\\"start_time\\\":true,\\\"request_id\\\":true,\\\"client_ip\\\":true,\\\"api_id\\\":false,\\\"user_name\\\":false,\\\"app_id\\\":false,\\\"access_model1\\\":false,\\\"request_time\\\":true,\\\"http_status\\\":true,\\\"server_protocol\\\":false,\\\"scheme\\\":true,\\\"request_method\\\":true,\\\"host\\\":false,\\\"api_uri_mode\\\":false,\\\"uri\\\":false,\\\"request_size\\\":false,\\\"response_size\\\":false,\\\"upstream_uri\\\":false,\\\"upstream_addr\\\":true,\\\"upstream_status\\\":true,\\\"upstream_connect_time\\\":false,\\\"upstream_header_time\\\":false,\\\"upstream_response_time\\\":true,\\\"all_upstream_response_time\\\":false,\\\"region_id\\\":false,\\\"auth_type\\\":false,\\\"http_x_forwarded_for\\\":true,\\\"http_user_agent\\\":true,\\\"error_type\\\":true,\\\"access_model2\\\":false,\\\"inner_time\\\":false,\\\"proxy_protocol_vni\\\":false,\\\"proxy_protocol_vpce_id\\\":false,\\\"proxy_protocol_addr\\\":false,\\\"body_bytes_sent\\\":false,\\\"api_name\\\":false,\\\"app_name\\\":false,\\\"provider_app_id\\\":false,\\\"provider_app_name\\\":false,\\\"custom_data_log01\\\":false,\\\"custom_data_log02\\\":false,\\\"custom_data_log03\\\":false,\\\"custom_data_log04\\\":false,\\\"custom_data_log05\\\":false,\\\"custom_data_log06\\\":false,\\\"custom_data_log07\\\":false,\\\"custom_data_log08\\\":false,\\\"custom_data_log09\\\":false,\\\"custom_data_log10\\\":false,\\\"response_source\\\":false},\\\"call_data\\\":{\\\"log_request_header\\\":false,\\\"request_header_filter\\\":\\\"\\\",\\\"log_request_query_string\\\":false,\\\"request_query_string_filter\\\":\\\"\\\",\\\"log_request_body\\\":false,\\\"log_response_header\\\":false,\\\"response_header_filter\\\":\\\"\\\",\\\"log_response_body\\\":false,\\\"custom_authorizer\\\":{\\\"frontend\\\":[],\\\"backend\\\":[]}}}}", + "remark" : "Kafka log push" +}+
Updating a circuit breaker plug-in
+{ + "plugin_name" : "Circuit Breaker Plug-in", + "plugin_type" : "breaker", + "plugin_scope" : "app", + "plugin_content" : "{\\\"breaker_condition\\\":{\\\"breaker_type\\\":\\\"timeout\\\",\\\"breaker_mode\\\":\\\"counter\\\",\\\"unhealthy_condition\\\":\\\"\\\",\\\"unhealthy_threshold\\\":30,\\\"min_call_threshold\\\":20,\\\"unhealthy_percentage\\\":51,\\\"time_window\\\":15,\\\"open_breaker_time\\\":15},\\\"downgrade_default\\\":null,\\\"downgrade_parameters\\\":null,\\\"downgrade_rules\\\":null,\\\"scope\\\":\\\"basic\\\"}", + "remark" : "Circuit breaker" +}+
Updating a third-party authentication plug-in
+{ + "plugin_name" : "Third-Party Authentication Plug-in", + "remark" : "This is a third-party authentication plug-in that contains a rule expression blacklist.", + "plugin_type" : "third_auth", + "plugin_scope" : "global", + "plugin_content" : "{\\\"auth_request\\\":{\\\"method\\\":\\\"POST\\\",\\\"protocol\\\":\\\"HTTP\\\",\\\"url_domain\\\":\\\"xxx.xxx.xxx.xxx:1234\\\",\\\"timeout\\\":10,\\\"path\\\":\\\"/check\\\",\\\"vpc_channel_enabled\\\":false,\\\"vpc_channel_info\\\":{\\\"vpc_proxy_host\\\":\\\"abc.com\\\",\\\"vpc_id\\\":\\\"3c113f40a54a40369ceb1eb1409a32ee\\\"}},\\\"identities\\\":{\\\"headers\\\":[{\\\"name\\\":\\\"token\\\"}],\\\"query\\\":[{\\\"name\\\":\\\"user\\\"}]},\\\"carry_body\\\":{\\\"enabled\\\":true,\\\"max_body_size\\\":10000},\\\"carry_path_enabled\\\":false,\\\"return_resp_body_enabled\\\":true,\\\"carry_resp_headers\\\":[\\\"x-message-result\\\"],\\\"simple_auth_mode_enabled\\\":false,\\\"match_auth\\\":{\\\"key\\\":\\\"x-message-result\\\",\\\"value\\\":\\\"success\\\"},\\\"rule_enabled\\\":true,\\\"rule_type\\\":\\\"deny\\\",\\\"parameters\\\":[{\\\"value\\\":\\\"reqPath\\\",\\\"type\\\":\\\"path\\\",\\\"name\\\":\\\"reqPath\\\"},{\\\"value\\\":\\\"method\\\",\\\"type\\\":\\\"method\\\",\\\"name\\\":\\\"method\\\"},{\\\"value\\\":\\\"Host\\\",\\\"type\\\":\\\"header\\\",\\\"name\\\":\\\"Host\\\"}],\\\"rules\\\":[{\\\"match_regex\\\": \\\"[\\\\\\\"OR\\\\\\\", [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/xxl-job-admin/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/leave/infor/v1/addLeaveLnfor\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/v1/charge/home/modifyChargeSync\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/mweb/campaign/api/v1/getActivityConfig\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/mp/vehicle/owner/home\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/mweb/campaign/api/v1/getTime\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/c-showroom-service/v1/vehicleDetails/upload\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/operation-charging-bff/carOwnerRights/certificate/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/api/2c/v1/sales-bff/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/2c/v1/vehicleDetails/upload\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/operation-admin/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/settings/api/v1/receiveClk\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/vehicle/relative/yTSendVehicleControl.json\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/appoint/getAppointmentByTestDrive\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdPay\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdOrder\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/getUserToken\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdCoupon\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/task/busTriggerTaskEvent.json\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/datacenter-log-center/api/trackApi/commonAdd.json\\\\\\\"]]\\\", \\\"rule_name\\\": \\\"allow2\\\"}],\\\"custom_forbid_limit\\\":100,\\\"auth_downgrade_enabled\\\":false}" +}+
Status code: 200
+OK
+Example 1
+{ + "plugin_id" : "5b729aa252764739b3s237ef0d66dc63", + "plugin_name" : "CORS Plug-in", + "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" : "2020-11-02T12:31:23.353Z", + "update_time" : "2020-11-02T12:31:23.353Z" +}+
Example 2
+{ + "plugin_id" : "8a688dce7d0c45cf84edac3d7b071769", + "plugin_name" : "HTTP Response Header Plug-in", + "plugin_type" : "set_resp_headers", + "plugin_scope" : "global", + "plugin_content" : "{\\\"response_headers\\\":[{\\\"name\\\":\\\"x-demo\\\",\\\"value\\\":\\\"sss\\\",\\\"action\\\":\\\"append\\\"}]}", + "remark" : "HTTP response header management", + "create_time" : "2022-11-02T12:31:23.353Z", + "update_time" : "2022-11-02T12:31:23.353Z" +}+
Example 3
+{ + "plugin_id" : "9642ff2b9a86481689ca9d28babcfd7f", + "plugin_name" : "Request Throttling Plug-in", + "plugin_type" : "rate_limit", + "plugin_scope" : "global", + "plugin_content" : "{\\\"scope\\\":\\\"basic\\\",\\\"default_time_unit\\\":\\\"minute\\\",\\\"default_interval\\\":1,\\\"api_limit\\\":50,\\\"app_limit\\\":0,\\\"user_limit\\\":0,\\\"ip_limit\\\":0,\\\"algorithm\\\":\\\"counter\\\",\\\"specials\\\":[],\\\"parameters\\\":[],\\\"rules\\\":[]}", + "remark" : "Request throttling", + "create_time" : "2022-11-02T12:31:23.353Z", + "update_time" : "2022-11-02T12:31:23.353Z" +}+
Example 4
+{ + "plugin_id" : "92284ece6ec7466da2c2ac2416f46d5d", + "plugin_name" : "Kafka Log Plug-in", + "plugin_type" : "kafka_log", + "plugin_scope" : "app", + "plugin_content" : "{\\\"broker_list\\\":[\\\"0.0.0.0:11\\\"],\\\"topic\\\":\\\"topic\\\",\\\"key\\\":\\\"\\\",\\\"max_retry_count\\\":0,\\\"retry_backoff\\\":1,\\\"sasl_config\\\":{\\\"security_protocol\\\":\\\"PLAINTEXT\\\",\\\"sasl_mechanisms\\\":\\\"PLAIN\\\",\\\"sasl_username\\\":\\\"\\\",\\\"sasl_password\\\":\\\"\\\",\\\"ssl_ca_content\\\":\\\"\\\"},\\\"meta_config\\\":{\\\"system\\\":{\\\"start_time\\\":true,\\\"request_id\\\":true,\\\"client_ip\\\":true,\\\"api_id\\\":false,\\\"user_name\\\":false,\\\"app_id\\\":false,\\\"access_model1\\\":false,\\\"request_time\\\":true,\\\"http_status\\\":true,\\\"server_protocol\\\":false,\\\"scheme\\\":true,\\\"request_method\\\":true,\\\"host\\\":false,\\\"api_uri_mode\\\":false,\\\"uri\\\":false,\\\"request_size\\\":false,\\\"response_size\\\":false,\\\"upstream_uri\\\":false,\\\"upstream_addr\\\":true,\\\"upstream_status\\\":true,\\\"upstream_connect_time\\\":false,\\\"upstream_header_time\\\":false,\\\"upstream_response_time\\\":true,\\\"all_upstream_response_time\\\":false,\\\"region_id\\\":false,\\\"auth_type\\\":false,\\\"http_x_forwarded_for\\\":true,\\\"http_user_agent\\\":true,\\\"error_type\\\":true,\\\"access_model2\\\":false,\\\"inner_time\\\":false,\\\"proxy_protocol_vni\\\":false,\\\"proxy_protocol_vpce_id\\\":false,\\\"proxy_protocol_addr\\\":false,\\\"body_bytes_sent\\\":false,\\\"api_name\\\":false,\\\"app_name\\\":false,\\\"provider_app_id\\\":false,\\\"provider_app_name\\\":false,\\\"custom_data_log01\\\":false,\\\"custom_data_log02\\\":false,\\\"custom_data_log03\\\":false,\\\"custom_data_log04\\\":false,\\\"custom_data_log05\\\":false,\\\"custom_data_log06\\\":false,\\\"custom_data_log07\\\":false,\\\"custom_data_log08\\\":false,\\\"custom_data_log09\\\":false,\\\"custom_data_log10\\\":false,\\\"response_source\\\":false},\\\"call_data\\\":{\\\"log_request_header\\\":false,\\\"request_header_filter\\\":\\\"\\\",\\\"log_request_query_string\\\":false,\\\"request_query_string_filter\\\":\\\"\\\",\\\"log_request_body\\\":false,\\\"log_response_header\\\":false,\\\"response_header_filter\\\":\\\"\\\",\\\"log_response_body\\\":false,\\\"custom_authorizer\\\":{\\\"frontend\\\":[],\\\"backend\\\":[]}}}}", + "remark" : "Kafka log push", + "create_time" : "2022-11-02T12:31:23.353Z", + "update_time" : "2022-11-02T12:31:23.353Z" +}+
Example 5
+{ + "plugin_id" : "8b5253ed723c4a878e7b8532c08763b4", + "plugin_name" : "Circuit Breaker Plug-in", + "plugin_type" : "breaker", + "plugin_scope" : "app", + "plugin_content" : "{\\\"breaker_condition\\\":{\\\"breaker_type\\\":\\\"timeout\\\",\\\"breaker_mode\\\":\\\"counter\\\",\\\"unhealthy_condition\\\":\\\"\\\",\\\"unhealthy_threshold\\\":30,\\\"min_call_threshold\\\":20,\\\"unhealthy_percentage\\\":51,\\\"time_window\\\":15,\\\"open_breaker_time\\\":15},\\\"downgrade_default\\\":null,\\\"downgrade_parameters\\\":null,\\\"downgrade_rules\\\":null,\\\"scope\\\":\\\"basic\\\"}", + "remark" : "Circuit breaker", + "create_time" : "2022-11-02T12:31:23.353Z", + "update_time" : "2022-11-02T12:31:23.353Z" +}+
Example 6
+{ + "plugin_id" : "235d97683439437585aff06020059720", + "plugin_name" : "Third-Party Authentication Plug-in", + "plugin_type" : "third_auth", + "plugin_scope" : "global", + "plugin_content" : "{\\\"auth_request\\\":{\\\"method\\\":\\\"POST\\\",\\\"protocol\\\":\\\"HTTP\\\",\\\"url_domain\\\":\\\"xxx.xxx.xxx.xxx:1234\\\",\\\"path\\\":\\\"/check\\\",\\\"timeout\\\":10,\\\"vpc_channel_enabled\\\":false,\\\"vpc_channel_info\\\":null},\\\"identities\\\":{\\\"headers\\\":[{\\\"name\\\":\\\"token\\\"}],\\\"queries\\\":null},\\\"carry_body\\\":{\\\"enabled\\\":true,\\\"max_body_size\\\":10000},\\\"carry_path_enabled\\\":false,\\\"return_resp_body_enabled\\\":true,\\\"carry_resp_headers\\\":[\\\"x-message-result\\\"],\\\"simple_auth_mode_enabled\\\":false,\\\"match_auth\\\":{\\\"key\\\":\\\"x-message-result\\\",\\\"value\\\":\\\"success\\\"},\\\"parameters\\\":[{\\\"type\\\":\\\"path\\\",\\\"name\\\":\\\"reqPath\\\",\\\"value\\\":\\\"reqPath\\\"},{\\\"type\\\":\\\"method\\\",\\\"name\\\":\\\"method\\\",\\\"value\\\":\\\"method\\\"},{\\\"type\\\":\\\"header\\\",\\\"name\\\":\\\"Host\\\",\\\"value\\\":\\\"Host\\\"}],\\\"rules\\\":[{\\\"rule_name\\\":\\\"allow2\\\",\\\"match_regex\\\":\\\"[\\\\\\\"OR\\\\\\\", [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/xxl-job-admin/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/leave/infor/v1/addLeaveLnfor\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/v1/charge/home/modifyChargeSync\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/mweb/campaign/api/v1/getActivityConfig\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/mp/vehicle/owner/home\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/mweb/campaign/api/v1/getTime\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/c-showroom-service/v1/vehicleDetails/upload\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/operation-charging-bff/carOwnerRights/certificate/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/api/2c/v1/sales-bff/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/2c/v1/vehicleDetails/upload\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"~~\\\\\\\", \\\\\\\"/operation-admin/*\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/app/settings/api/v1/receiveClk\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/vehicle/relative/yTSendVehicleControl.json\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/appoint/getAppointmentByTestDrive\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdPay\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdOrder\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/getUserToken\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/evd/callBackEvdCoupon\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/api/task/busTriggerTaskEvent.json\\\\\\\"], [\\\\\\\"reqPath\\\\\\\", \\\\\\\"==\\\\\\\", \\\\\\\"/datacenter-log-center/api/trackApi/commonAdd.json\\\\\\\"]]\\\"}],\\\"rule_type\\\":\\\"allow\\\",\\\"rule_enabled\\\":true,\\\"custom_forbid_limit\\\":100,\\\"auth_downgrade_enable\\\":false}", + "remark" : "This is a third-party authentication plug-in that contains a rule expression blacklist.", + "create_time" : "2023-05-06T06:54:59.296181801Z", + "update_time" : "2023-05-06T07:07:18.369017889Z" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify the information about a request throttling policy.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}
+ +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. + |
+
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. + |
+
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: +
|
+
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. +
Enumeration values: +
|
+
enable_adaptive_control + |
+No + |
+String + |
+Indicates whether to enable dynamic request throttling. +
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. + |
+
Status code: 200
+ +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: +
|
+
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. +
Enumeration values: +
|
+
enable_adaptive_control + |
+String + |
+Indicates whether to enable dynamic request throttling. +
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. +
Enumeration values: +
|
+
create_time + |
+String + |
+Creation time. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
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 +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify the information about a signature key.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/signs/{sign_id}
+ +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. + |
+
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. + |
+
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. +
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: +
|
+
sign_key + |
+No + |
+String + |
+Signature key. +
|
+
sign_secret + |
+No + |
+String + |
+Signature secret. +
|
+
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: +
|
+
Status code: 200
+ +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. +
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: +
|
+
sign_key + |
+String + |
+Signature key. +
|
+
sign_secret + |
+String + |
+Signature secret. +
|
+
sign_algorithm + |
+String + |
+Signature algorithm. Specify a signature algorithm only when using an AES signature key. By default, no algorithm is used. +Enumeration values: +
|
+
update_time + |
+String + |
+Update time. + |
+
create_time + |
+String + |
+Creation time. + |
+
id + |
+String + |
+Signature key ID. + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 412
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error description. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modify the name of a specified signature key.
+{ + "name" : "signature_demo" +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
412 + |
+PreconditionFailed + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to disable or enable the debugging domain name bound to an API group.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/sl-domain-access-settings
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
sl_domain_access_enabled + |
+Yes + |
+Boolean + |
+Specifies whether the debugging domain name is accessible. Options: true and false. +Default: true + |
+
Status code: 400
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Setting accessibility of a debugging domain name
+{ + "sl_domain_access_enabled" : true +}+
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 Code + |
+Description + |
+
---|---|
204 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+This API is used to modify an excluded configuration of a request throttling policy.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/throttles/{throttle_id}/throttle-specials/{strategy_id}
+ +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. + |
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
call_limits + |
+Yes + |
+Long + |
+Maximum number of times an excluded object can access an API within the throttling period. + |
+
Status code: 200
+ +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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Modifying an excluded configuration of a request throttling policy
+{ + "call_limits" : 200 +}+
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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
+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.
+For details, see Calling APIs.
+PUT /v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}
+ +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. + |
+
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. + |
+
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. +
Default: 1 +Enumeration values: +
|
+
member_type + |
+Yes + |
+String + |
+Member type of the VPC channel. +
Default: ecs +Enumeration values: +
|
+
type + |
+No + |
+Integer + |
+VPC channel type. The default type is server. +
Default: 2 +Enumeration values: +
|
+
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. + |
+
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. + |
+
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 + |
+
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. +
Enumeration values: +
|
+
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 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
protocol + |
+Yes + |
+String + |
+Protocol for performing health checks on backend servers in the VPC channel. +
Enumeration values: +
|
+
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: +
|
+
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: +
|
+
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. +
Enumeration values: +
|
+
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 + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
service_type + |
+No + |
+String + |
+Microservice type. Options: +
Enumeration values: +
|
+
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. + |
+
Parameter + |
+Mandatory + |
+Type + |
+Description + |
+
---|---|---|---|
engine_id + |
+Yes + |
+String + |
+Microservice engine ID. +Maximum: 64 + |
+
service_id + |
+Yes + |
+String + |
+Microservice ID. +Maximum: 64 + |
+
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. +
Enumeration values: +
|
+
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 + |
+
Status code: 200
+ +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. +
Default: 1 +Enumeration values: +
|
+
member_type + |
+String + |
+Member type of the VPC channel. +
Default: ecs +Enumeration values: +
|
+
type + |
+Integer + |
+VPC channel type. The default type is server. +
Default: 2 +Enumeration values: +
|
+
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. +
Enumeration values: +
|
+
member_groups + |
+Array of MemberGroupInfo objects + |
+Backend server groups. + |
+
microservice_info + |
+MicroServiceInfo object + |
+Microservice information. + |
+
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. + |
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
id + |
+String + |
+Microservice ID. + |
+
instance_id + |
+String + |
+Gateway ID. + |
+
service_type + |
+String + |
+Microservice type. Options: +
Enumeration values: +
|
+
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. + |
+
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 + |
+
Parameter + |
+Type + |
+Description + |
+
---|---|---|
cluster_id + |
+String + |
+CCE cluster ID. +Maximum: 64 + |
+
namespace + |
+String + |
+Namespace. +Maximum: 64 + |
+
workload_type + |
+String + |
+Workload type. +
Enumeration values: +
|
+
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
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 401
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 403
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 404
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
Status code: 500
+ +Parameter + |
+Type + |
+Description + |
+
---|---|---|
error_code + |
+String + |
+Error code. + |
+
error_msg + |
+String + |
+Error message. + |
+
{ + "balance_strategy" : 2, + "member_type" : "ip", + "name" : "VPC_demo", + "port" : 22, + "type" : 2, + "vpc_health_config" : { + "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 + }, + "member_groups" : [ { + "member_group_name" : "test", + "member_group_weight" : 1, + "member_group_remark" : "remark" + }, { + "member_group_name" : "default", + "member_group_weight" : 2, + "member_group_remark" : "remark" + } ], + "members" : [ { + "host" : "192.168.0.5", + "weight" : 1, + "member_group_name" : "test" + }, { + "host" : "192.168.1.124", + "weight" : 2, + "member_group_name" : "default" + } ] +}+
{ + "balance_strategy" : 1, + "member_type" : "ip", + "name" : "VPC_demo", + "port" : 22, + "type" : 3, + "vpc_health_config" : { + "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 + }, + "member_groups" : [ { + "member_group_name" : "test", + "member_group_weight" : 1, + "member_group_remark" : "remark", + "microservice_version" : "v1", + "microservice_port" : 80 + }, { + "member_group_name" : "default", + "member_group_weight" : 2, + "member_group_remark" : "remark", + "microservice_version" : "v2", + "microservice_port" : 80, + "microservice_labels" : [ { + "label_name" : "cluster_id", + "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113" + } ] + } ], + "members" : [ { + "host" : "192.168.0.5", + "weight" : 1, + "member_group_name" : "test" + }, { + "host" : "192.168.1.124", + "weight" : 2, + "member_group_name" : "default" + } ], + "microservice_info" : { + "service_type" : "CCE", + "cce_info" : { + "cluster_id" : "ab1485b4f91b45abbcd560be591f7309", + "namespace" : "default", + "workload_type" : "deployment", + "app_name" : "testapp" + } + } +}+
Status code: 200
+OK
+{ + "name" : "VPC_demo", + "port" : 22, + "balance_strategy" : 2, + "member_type" : "ip", + "dict_code" : "", + "create_time" : "2020-07-23T07:11:57Z", + "id" : "18174f5f4f1a4dc29f33aeadd9788e5f", + "status" : 1, + "member_groups" : [ { + "member_group_id" : "c1ce135c705c4066853a0460b318fe16", + "member_group_name" : "test", + "member_group_weight" : 1, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z" + }, { + "member_group_id" : "c1ce135c705c4066853a0460b318fe17", + "member_group_name" : "default", + "member_group_weight" : 2, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z" + } ], + "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" : "VPC_demo", + "id" : "105c6902457144a4820dff8b1ad63331", + "balance_strategy" : 1, + "dict_code" : "", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "member_type" : "ip", + "port" : 22, + "status" : 1, + "member_groups" : [ { + "member_group_id" : "c1ce135c705c4066853a0460b318fe16", + "member_group_name" : "test", + "member_group_weight" : 1, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z", + "microservice_version" : "v1", + "microservice_port" : 80 + }, { + "member_group_id" : "c1ce135c705c4066853a0460b318fe17", + "member_group_name" : "default", + "member_group_weight" : 2, + "member_group_remark" : "remark", + "create_time" : "2020-07-23T07:11:57.244829604Z", + "update_time" : "2020-07-23T07:11:57.244829604Z", + "microservice_version" : "v2", + "microservice_port" : 80, + "microservice_labels" : [ { + "label_name" : "cluster_id", + "label_value" : "c429700c-5dc4-482a-9c0e-99f6c0635113" + } ] + } ], + "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.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 Code + |
+Description + |
+
---|---|
200 + |
+OK + |
+
400 + |
+Bad Request + |
+
401 + |
+Unauthorized + |
+
403 + |
+Forbidden + |
+
404 + |
+Not Found + |
+
500 + |
+Internal Server Error + |
+
See Error Codes.
++
+
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.
+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.
+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.
+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+
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.
+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=****************+
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.
+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+
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+
Table 1 describes common 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: +
|
+
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. + |
+
Released On + |
+Description + |
+
---|---|
2024-10-18 + |
+This issue incorporates the following changes: +
|
+
2024-07-05 + |
+This issue incorporates the following changes: +
|
+
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. + |
+
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 + |
+- + |
+- + |
+- + |
+- + |
+- + |
+