Last updated: 2019-11-29 18:49:30

1. API Description

Domain name for API request:

This API (DescribeServiceTemplates) is used to query a protocol port template.

A maximum of 100 requests can be initiated per second for this API.

Note: This API supports Finance regions. Since Finance regions and non-Finance regions are isolated and not interconnected. If the common parameter Region is a Finance region (such as ap-shanghai-fsi), you need to specify a domain name containing the Finance region that should be identical to the value of Region field, for example:

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 parameter. The value used for this API: DescribeServiceTemplates
Version Yes String Common parameter. The value used for this API: 2017-03-12
Region Yes String Common parameter. For more information, please see the list of regions supported by the product.
Filters.N No Array of Filter Filter conditions.
  • service-template-name - String - (Filter condition ) Protocol port template name.
  • service-template-id - String - (Filter condition ) Protocol port template instance ID, such as ppm-e6dy460g.
  • Offset No String Offset. Default is 0.
    Limit No String Number of values to be returned. Default is 20. Maximum is 100.

    3. Output Parameters

    Parameter Name Type Description
    TotalCount Integer Number of instances matching the filter condition.
    ServiceTemplateSet Array of ServiceTemplate Protocol port template object.
    RequestId String The unique request ID, which is returned for each request. RequestId is required for locating a problem.

    4. Error Codes

    The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

    Error Code Description
    InvalidParameterValue.Malformed Invalid input parameter format.

    5. Example

    Example 1 Query a protocol port template

    Input example
    &<Common request parameters>

    Output example

      "Response": {
        "RequestId": "20569756-56ba-4a13-b545-e1528d5cb239",
        "ServiceTemplateSet": [
            "CreatedTime": "2018-04-03 21:19:31",
            "ServiceSet": [
            "ServiceTemplateId": "ppm-bu8cir16",
            "ServiceTemplateName": "TestName"
            "CreatedTime": "2018-04-03 21:03:12",
            "ServiceSet": [
            "ServiceTemplateId": "ppm-2jju0z3u",
            "ServiceTemplateName": "TestName"
        "TotalCount": 8

    6. Other Resources

    Cloud API 3.0 comes with the following development tools to make it easier to call the API.