GetCertificate
Retrieves a certificate file.
Operation description
You must purchase DataWorks Basic Edition or a more advanced edition to use this API.
You must have at least one of the following roles in the DataWorks workspace: tenant owner, workspace administrator, deployer, developer, project owner, or operator.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:GetCertificate |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
Yes |
The ID of the certificate file, which is the unique identifier of the certificate file. |
676303114031776 |
| ProjectId |
integer |
Yes |
The ID of the project to which the certificate file belongs. You can also call the ListProjects operation to query the workspace ID under the current tenant. |
1065601 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. You can use this ID to locate logs and troubleshoot issues. |
0000-ABCD-EFG**** |
| Certificate |
object |
The certificate details. |
|
| Id |
integer |
The ID of the certificate file, which is the unique identifier of the certificate file. |
676303114031776 |
| Name |
string |
The name of the file. |
ca1.crt |
| ProjectId |
integer |
The ID of the project to which the certificate file belongs. |
177161 |
| Description |
string |
The description. |
This is a file |
| CreateUser |
string |
The ID of the user who created the certificate file. |
1107550004253538 |
| CreateTime |
integer |
The time when the certificate file was created. The value is a UNIX timestamp in milliseconds. |
1730217600000 |
| FileSizeInBytes |
integer |
The size of the file in bytes. |
77549 |
Examples
Success response
JSON format
{
"RequestId": "0000-ABCD-EFG****",
"Certificate": {
"Id": 676303114031776,
"Name": "ca1.crt",
"ProjectId": 177161,
"Description": "This is a file",
"CreateUser": "1107550004253538",
"CreateTime": 1730217600000,
"FileSizeInBytes": 77549
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.