Exporting a Resource Package Using an API
Function
This API is used to export resource packages.
URI
POST /v1/{project_id}/resource-package/export
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For how to obtain a project ID, see Obtaining a Project ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Workspace-Id |
Yes |
String |
Workspace ID. For how to obtain it, see Obtaining a Workspace ID. |
X-Auth-Token |
Yes |
String |
User token. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
name |
Yes |
String |
Name of the exported package. |
export_param |
No |
ResourcePackageExportParam object |
Exported advanced parameters. |
resources |
Yes |
Array of objects |
Details about exported resources. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
export_dataset_tag_permission |
No |
Boolean |
Whether the resource package includes dataset row permissions and tag-based authorization. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
resource_type |
Yes |
String |
Explanation Enumerated value of the resource type, which is used to specify the type of the authorized object. For example, datasource indicates that the type of the authorized object is a data source. Constraints N/A Value range The enumerated values are:
Default value N/A |
resource_id |
Yes |
String |
Resource ID. |
Response Parameters
Parameter |
Type |
Description |
---|---|---|
- |
File |
File stream. |
Example Request
POST https://{endpoint}/v1/{project_id}/resource-package/export { "name": "Unnamed Resource Package", "resources" : [ { "resource_type" : "datasource", "resource_id" : "12awedqweqweqwe" } ] }
Example Response
None
Status Codes
Status Code |
Description |
---|---|
200 |
File stream. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot