Queries the information about data classification templates.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListClassificationTemplates

The operation that you want to perform. Set the value to ListClassificationTemplates.

Tid Long No 3***

The ID of the tenant.

Note To view the ID of the tenant, go to the Data Management (DMS) console and move the pointer over the profile picture in the upper-right corner. For more information, see View information about the current tenant.

Response parameters

Parameter Type Example Description
RequestId String 90260530-565C-42B9-A6E8-893481FE6AB6

The ID of the request.

Success Boolean true

Indicates whether the request was successful. Valid values:

  • true: The request was successful.
  • false: The request failed.
ErrorMessage String UnknownError

The error message returned if the request failed.

ErrorCode String UnknownError

The error code returned if the request failed.

TemplateList Array of TemplateList

The information about the data classification templates that are returned.

TemplateId Long 3**

The ID of the data classification template.

Name String test

The name of the data classification template.

TemplateType String USER_DEFINE

The type of the data classification template. Valid values:

  • INNER: built-in
  • USER_DEFINE: custom
Remark String test

The remarks on the data classification template.

Examples

Sample requests

 
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListClassificationTemplatesResponse>
    <RequestId>90260530-565C-42B9-A6E8-893481FE6AB6</RequestId>
    <Success>true</Success>
    <TemplateList>
        <Name>test</Name>
        <TemplateType>USER_DEFINE</TemplateType>
        <Remark>test</Remark>
    </TemplateList>
</ListClassificationTemplatesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "90260530-565C-42B9-A6E8-893481FE6AB6",
  "Success" : true,
  "TemplateList" : [ {
    "Name" : "test",
    "TemplateType" : "USER_DEFINE",
    "Remark" : "test"
  } ]
}

Error codes

For a list of error codes, see Service error codes.