All Products
Search
Document Center

:QueryDefaultTemplate

最終更新日:May 06, 2024

Queries the default data category and data sensitivity level template defined by Data Security Guard.

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

QueryDefaultTemplate

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

TenantId

String

No

10241024

The tenant ID. To obtain the tenant ID, perform the following steps: Log on to the DataWorks console. Find your workspace and go to the DataStudio page. On the DataStudio page, click the logon username in the upper-right corner and click User Info in the Menu section.

Response parameters

Parameter

Type

Example

Description

Success

Boolean

true

Indicates whether the request was successful. Valid values:

  • true

  • false

ErrorCode

String

9990030003

The error code.

ErrorMessage

String

Parameter error

The error message.

HttpStatusCode

Integer

400

The HTTP status code.

Data

Any

[{"gmtModified":1709022365000,"fileName":"Default file","isDelete":false,"isDefaultTemplate":true}]

The returned data about the default data category and data sensitivity level template. The data is in the JSON format.

RequestId

String

102400001

The request ID. You can locate logs and troubleshoot issues based on the ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=QueryDefaultTemplate
&TenantId=10241024
&<Common request parameters>

Sample success responses

XML format

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

<QueryDefaultTemplateResponse>
    <Success>true</Success>
    <ErrorCode>9990030003</ErrorCode>
    <ErrorMessage>Parameter error</ErrorMessage>
    <HttpStatusCode>400</HttpStatusCode>
    <Data>[{"gmtModified":1709022365000,"fileName":"Default file","isDelete":false,"isDefaultTemplate":true}]</Data>
    <RequestId>102400001</RequestId>
</QueryDefaultTemplateResponse>

JSON format

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

{
  "Success" : true,
  "ErrorCode" : "9990030003",
  "ErrorMessage": "Parameter error",
  "HttpStatusCode" : 400,
  "Data": "[{\"gmtModified\":1709022365000,\"fileName\":\"Default file\",\"isDelete\":false,\"isDefaultTemplate\":true}]",
  "RequestId" : "102400001"
}

Error codes

HttpCode

Error code

Error message

Description

400

BADPARAMETERS

Parameters are missing or in the wrong format.

A required parameter is not specified.

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