Cloud Control API Explorer
This topic describes the main features of the Cloud Control API Explorer. The API Explorer is a graphical tool for the Cloud Control API that lets you view resource information and make API calls to manage your resources. To learn how to manage the full lifecycle of a resource by using the API Explorer, see Manage resources by using OpenAPI Portal.
View resource information
The API Explorer lets you view detailed resource information.
View supported products and resources
You can view all supported products and their resources.
In the left-side navigation pane of the OpenAPI Portal, select a cloud product, such as VPC. A list of resource types for the product is displayed, including public IP address pool (PublicIpAddressPool), prefix list (PrefixList), traffic mirror filter (TrafficMirrorFilter), IPv4 gateway (Ipv4Gateway), flow log (FlowLog), HaVip, route table (RouteTable), VSwitch, and VPC. After you select a resource, the Resource Attributes tab in the main content area displays information such as Attribute Name, Type, Required for Creation, Update Allowed, Read-only, and Description.
View detailed resource information
Click a resource name to display its Resource Attributes and Resource Metadata on the right.
The Resource Attributes tab displays a resource overview—including Resource Type, Product, Deployment Level, and Billing Method—and an attribute table. The table columns include Attribute Name, Type, Required for Creation, Update Allowed, Read-only, and Description.
View authorization policies
To configure a custom policy, consult the resource's authorization policy.
In the OpenAPI Portal, select VPC in the left-side navigation pane. In the main content area, click the Authorization Policy tab to view the mappings between resource operations and their corresponding Actions. For example, creating a resource corresponds to vpc:CreateVpc, and updating a resource corresponds to Actions such as vpc:TagResources, vpc:AssociateVpcCidrBlock, vpc:MoveResourceGroup, vpc:ModifyVpcAttribute, vpc:UnTagResources, vpc:UnassociateVpcCidrBlock, vpc:EnableVpcClassicLink, vpc:DisableVpcClassicLink, and vpc:ListTagResources.
Invoke APIs
Select a resource operation
You can create, update, retrieve, list, or delete resources.
In the left-side navigation tree, expand the VPC node to view five operations: CreateResource, UpdateResource, GetResource, GetResources, and DeleteResource. Click an operation to view its request parameters and sample code for multiple languages on the right.
Enter parameters and invoke
The tool provides a parameter entry form with types and descriptions. To invoke the API, click Initiate Call.
In the left-side navigation pane, you can select the target API. The central area contains the request parameter form with input fields for parameters such as service endpoint, request path, regionId, nextToken, and maxResults. The right-hand pane displays the corresponding SDK sample code.
Sample code
The tool dynamically generates sample code in multiple languages based on the parameters you enter.
In the right-hand pane, click the Sample Code tab to view the generated code. You can select a language from the language bar, which supports Java (async), Java, TypeScript, Go, PHP, Python, C#, C++, Swift, and Node.js. Above the code panel, you can find the Run Sample and Download Full Project buttons.
Invocation result
The invocation result includes shortcuts to View Logs and Go to Diagnose.
A successful invocation displays a green status indicator, a status code of 200, and the response time. The response body appears below in JSON format, containing fields such as requestId and resources, along with the request header details.
Asynchronous task management
The tool provides shortcuts to Query Task and Cancel Task to manage asynchronous tasks.