Domain name for API request: omics.tencentcloudapi.com.
This API is used to query the environment list.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeEnvironments. |
Version | Yes | String | Common Params. The value used for this API: 2022-11-28. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
Offset | No | Integer | Offset, which defaults to 0. |
Limit | No | Integer | Quantity of returns. It is 20 by default, and the maximum value is 100. |
Filters.N | No | Array of Filter | Filter, which supports filtering fields: - EnvironmentId: Environment ID - Name: Name - Status: Environmental status |
Parameter Name | Type | Description |
---|---|---|
TotalCount | Integer | Number of qualified items |
Environments | Array of Environment | List of Environment details |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
This example shows you how to query the environment list.
POST / HTTP/1.1
Host: omics.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeEnvironments
<Common request parameters>
{
"Offset": 0,
"Limit": 1
}
{
"Response": {
"Environments": [
{
"Available": true,
"CreationTime": "2022-12-14T16:14:49+08:00",
"Description": "test description",
"EnvironmentId": "env-lljckw12",
"LastWorkflowUuid": "94922fcd-107e-4220-9a0f-cc3cd84a9a27",
"Message": "",
"Name": "test",
"Region": "ap-guangzhou",
"ResourceIds": {
"CFSId": "cfs-iwee8gk3",
"CFSStorageType": "SD",
"CVMId": "ins-jcbptifa",
"EKSId": "cls-9j9zh13o",
"SecurityGroupId": "sg-gzsfk3r5",
"SubnetId": "subnet-qdkfn4xe",
"TDSQLCId": "cynosdbmysql-kzwghvxj",
"VPCId": "vpc-8yhq1v63"
},
"Status": "RUNNING",
"Type": "KUBERNETES"
}
],
"RequestId": "1bc7ec7d-5fa9-42af-ac6d-1ef56f3bf625",
"TotalCount": 10
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
AuthFailure | CAM signature/authentication error. |
InternalError | Internal error. |
InvalidParameter | Parameter error. |
InvalidParameterValue | Parameter value error. |
OperationDenied | Operation rejected. |
Was this page helpful?