Domain name for API request: csip.intl.tencentcloudapi.com.
Creates a Pod Association service list export task. The export fields include service name, type, Selector, namespace, and creation time. Filtering is supported. When PodUniqueID is input, the Pod Association matching logic of DescribeClusterServiceList is reused. Export is implemented through an async task, and after JobId is returned, the frontend polls to query the export task status.
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: CreatePodServiceListExportJob. |
| Version | Yes | String | Common Params. The value used for this API: 2022-11-21. |
| Region | No | String | Common Params. This parameter is not required. |
| MemberId.N | No | Array of String | Group account member id |
| ClusterCaMD5 | No | String | Cluster CA certificate MD5 (at least one of this and PodUniqueID is required) |
| PodUniqueID | No | String | Unique ID of the Pod (if passed, the Pod Association Service mode is used) |
| Filter | No | Filter | Common filter criteria list. Supported filter fields: |
| ExportFields.N | No | Array of String | Export field list (export all fields if not specified) |
| Parameter Name | Type | Description |
|---|---|---|
| JobId | String | Export task ID |
| 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. |
POST / HTTP/1.1
Host: csip.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: CreatePodServiceListExportJob
<Common request parameters>
{
"PodUniqueID": "pod-unique-id-12345",
"Filter": {
"Filters": [
{
"Name": "ServiceType",
"Values": [
"LoadBalancer"
]
}
]
},
"ExportFields": [
"Name",
"ServiceType",
"Selector",
"Namespace",
"CreateTime"
]
}
{
"Response": {
"JobId": "export-job-99999",
"RequestId": "5cd96106-1d72-466c-9bcf-9876543210ab"
}
}
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 |
|---|---|
| InternalError | Internal error. |
| InvalidParameter | Parameter error. |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback