Querying API Group Quantities

Function

This API is used to query the number of API groups that have been listed and the number of API groups that have not been listed.

URI

The following table lists the HTTP/HTTPS request method and URI of the API.

Table 1 HTTP/HTTPS request method and URI

Request Method

URI

GET

/v1/{project_id}/apigw/instances/{instance_id}/resources/outline/groups

The following table lists the parameters in the URI.

Table 2 Parameter description

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID, which can be obtained by the administrator on the My Credentials page.

instance_id

Yes

String

Instance ID, which can be obtained from the dedicated gateway information on the API Gateway console.

Request

N/A

Response

Table 3 Parameter description

Parameter

Type

Description

offsell_nums

Integer

Number of API groups that have not been listed on the marketplace

onsell_nums

Integer

Number of API groups that have been listed on the marketplace

Example response:

{
	"offsell_nums": 1,
	"onsell_nums": 2
}

Status Codes

Table 4 Status codes

Status Code

Description

200

OK

400

Bad Request

401

Unauthorized

403

Forbidden

500

Server Internal Error