Queries the information about data classification templates.
Debugging
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:
|
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:
|
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.