tencent cloud

APIs

CreatePodServiceListExportJob

Download
Modo Foco
Tamanho da Fonte
Última atualização: 2026-09-01 10:11:08

1. API Description

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.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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)
Supplemental description: Pass at least one of this parameter and ClusterCaMD5

Filter No Filter

Common filter criteria list. Supported filter fields:
Name: service name, fuzzy matching.
ServiceType: service type, exact matching. Values: ClusterIP, NodePort, LoadBalancer, ExternalName.
Namespace: namespace, exact matching.
SelectorLabel: Selector tag, fuzzy matching.

ExportFields.N No Array of String

Export field list (export all fields if not specified)
Enumeration values:
Name: service name
ServiceType: service type (for example, LoadBalancer/ClusterIP)
Selector: Selector tag (format: key1=value1;key2=value2)
Namespace: namespace
CreateTime: creation time

3. Output Parameters

Parameter Name Type Description
JobId String

Export task ID
Parameter value for reference: used when frontend polls the export task status

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.

4. Example

Example1 Example of Creating a Pod Associated Service List Export Task

Input Example

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"
    ]
}

Output Example

{
    "Response": {
        "JobId": "export-job-99999",
        "RequestId": "5cd96106-1d72-466c-9bcf-9876543210ab"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

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.

Ajuda e Suporte

Esta página foi útil?

comentários