Import Workspace Resource Package¶
POST /api/v1/workspace/resource/upload
Overview¶
Upload a resource ZIP and check or start an import task according to various conflict policies.
Before Calling and Usage Steps¶
- Back up the existing configurations in the target workspace, prepare the resource ZIP exported by this product, and use a Key with
workspace.setManagepermission in the target workspace. - Upload
filesusing multipart, and select conflict policies by resource type. First keep the defaultcheckto check the returned duplicate-name and identifier conflicts. - If conflict information is returned but there is no
taskId, decideskiporrecoverfor each item first and then upload again;recovermay overwrite existing resources. - After obtaining
content.taskId, use the same Key to poll Resource Task Progress and verify successes, failures, skips, and actual target resources.
The current Key requires workspace.setManage. A task belongs only to the current workspace and the resource UUID of the initiating Key. Another Key in the same workspace cannot read/cancel the task even with the same role. Rotating the same Key preserves the resource UUID. Do not confuse taskId with the API Key value.
Use multipart/form-data, with the ZIP field files; a single file can be up to 100 MiB. Each policy in the Form is a normal text field in the same multipart, not JSON. Prefer the resource.zip exported by this product, and preserve the directory and JSON structure. It contains configuration directories such as dashboards, monitors, explorers, notification targets, SLOs, security monitoring, alert policies, data forwarding, workspace attribute claims, field configurations, tags, environment variables, roles, log indexes, blacklists, Pipelines, regular expressions, field masking rules, and sensitive data scanning rules. You cannot upload business logs or arbitrary compressed packages in place of it. Back up the target workspace before choosing recover.
First save the temporary ZIP and check the package structure/JSON as well as version, quantity, and type limits, then pre-check duplicate names using the default check policy for each resource. If there are conflicts requiring confirmation, content in an HTTP 200/success=true response returns repeat_name/repeat_identifier/repeat_conflict without taskId, and the import has not started. You should select skip/recover for the specific group and upload again; do not rely only on HTTP 200. Policies are independent by resource; repeatNameOp is only compatible with and controls monitors, while other resources have separate parameters. Policy fields are validated for enumeration in the route Form declaration; invalid values are rejected first as public parameter errors.
taskId is returned and the task is enqueued only when no confirmation is required. Processing is asynchronous per resource/per item; UUIDs may be rebuilt, references converted, and partial success retained; there is no overall cross-module rollback. Resources such as attribute claims may overwrite target configurations; this is not a full database restore, and the import does not include raw telemetry data. Each repeated upload may create or repeatedly overwrite resources; it is not an idempotent request.
Use Resource Task Progress to read complete success/failure/conversion/skip information; status=ok or success=true is not sufficient to prove that everything was imported. Verify successCount/failCount, failedItems, skippedTags, etc., and verify that the target resources are actually usable. After import, configurations such as monitors/alerts/forwarding in the package may enable related tasks; verify targets and credentials before execution.
Request Headers¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or fill in: Obtain an OpenAPI Key with the required operation permission from API Key Management in the target workspace. |
Form Parameters¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| repeatNameOp | string | multipart normal text field. Optional; default check; controls only checker (monitors). check returns confirmation information when a conflict is found and does not start the task; skip skips same-name resources; recover overwrites; continue enters the normal creation path for non-skip/recover and does not guarantee that a same-name resource can be imported. Other resources do not inherit this setting. Allow null: False Allowed values: ['check', 'skip', 'recover', 'continue'] Example: checkHow to obtain or fill in: Select as needed for monitor same-name handling; initially use check. |
|
| repeatIdentifierOp | string | Optional check/skip/recover; default check; serves as the default for the name_and_identifier and identifier groups of the two resource types, while the standalone name group still defaults to check; dedicated policies take precedence. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: Compatibility default policy for dashboard/explorer identifier conflicts. |
|
| repeatDashboardNameAndIdentifierOp | string | Optional check/skip/recover; policy for when both the dashboard name and identifier conflict; defaults to inheriting repeatIdentifierOp. check returns conflicts first without enqueueing; skip skips; recover locates the target by this group and overwrites; overwriting is not append/merge, so back up first. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: Select after confirming the corresponding group in repeat_conflict during the upload pre-check. |
|
| repeatDashboardIdentifierOp | string | Optional check/skip/recover; policy for dashboard identifier-only conflicts; defaults to inheriting repeatIdentifierOp. check returns conflicts first without enqueueing; skip skips; recover locates the target by this group and overwrites; overwriting is not append/merge, so back up first. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: Select after confirming the corresponding group in repeat_conflict during the upload pre-check. |
|
| repeatDashboardNameOp | string | Optional check/skip/recover; policy for dashboard name-only conflicts; default check. check returns conflicts first without enqueueing; skip skips; recover locates the target by this group and overwrites; overwriting is not append/merge, so back up first. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: Select after confirming the corresponding group in repeat_conflict during the upload pre-check. |
|
| repeatViewerNameAndIdentifierOp | string | Optional check/skip/recover; policy for when both the explorer name and identifier conflict; defaults to inheriting repeatIdentifierOp. check returns conflicts first without enqueueing; skip skips; recover locates the target by this group and overwrites; overwriting is not append/merge, so back up first. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: Select after confirming the corresponding group in repeat_conflict during the upload pre-check. |
|
| repeatViewerIdentifierOp | string | Optional check/skip/recover; policy for explorer identifier-only conflicts; defaults to inheriting repeatIdentifierOp. check returns conflicts first without enqueueing; skip skips; recover locates the target by this group and overwrites; overwriting is not append/merge, so back up first. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: Select after confirming the corresponding group in repeat_conflict during the upload pre-check. |
|
| repeatViewerNameOp | string | Optional check/skip/recover; policy for explorer name-only conflicts; default check. check returns conflicts first without enqueueing; skip skips; recover locates the target by this group and overwrites; overwriting is not append/merge, so back up first. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: Select after confirming the corresponding group in repeat_conflict during the upload pre-check. |
|
| repeatNotifyObjectNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only notification targets. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For notification targets in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatAlertPolicyNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only alert policies. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For alert policies in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatLogBackupCfgNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only data forwarding. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For data forwarding in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatSloNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only SLOs. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For SLOs in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatSecurityRuleNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only security monitoring. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For security monitoring in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatFieldNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only field configurations. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For field configurations in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatLabelNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only tags. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For tags in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatEnvVariableNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only environment variables. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For environment variables in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatRoleNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only roles. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For roles in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatLogIndexNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only log indexes. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For log indexes in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatBlacklistNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only blacklists. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For blacklists in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatPipelineNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only Pipelines. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For Pipelines in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatRegularExpressionNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only regular expressions. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For regular expressions in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatFieldDisplayPermissionNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only field masking rules. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For field masking rules in the resource package, first check for existing same-name resources in the current workspace and back them up. |
|
| repeatSensitiveDataScannerNameOp | string | multipart normal text field. Optional check/skip/recover; default check; controls only sensitive data scanning rules. If check pre-check finds a same-name resource, it is not enqueued; skip keeps the existing resource and skips; recover overwrites the same-name configuration. The scope/fields supported for overwriting different resources and version restrictions are still subject to the task results. Allow null: False Allowed values: ['check', 'skip', 'recover'] Example: checkHow to obtain or fill in: For sensitive data scanning rules in the resource package, first check for existing same-name resources in the current workspace and back them up. |
File Parameters (multipart/form-data)¶
| Parameter | Type | Required | Description |
|---|---|---|---|
| files | file | Y | Required single .zip file, maximum 100×1024×1024 bytes; the field name is files (plural), and you cannot pass only a local path string. Maximum single file size: 100M Maximum number of files: 1 Allowed file extensions: ['zip'] Example: @./resource.zipHow to obtain or fill in: Download and save from the URL after the Export Resource Task task is complete. |
Additional Parameter Notes¶
When migrating a workspace and creating a log index (including direct write and cloning) to ScopeDB, isFullLineIndex=0/false can be adapted to 1, and the original file remains unchanged; existing skip items are not modified. When full-line is migrated to non-ScopeDB or recover requires full-line downgrade, the entire item is skipped, and source and clone are checked together first; other parameters/JSON/permissions/database/downstream errors are still handled as failures. This migration adaptation does not change the standalone log index import API. Environment variable export does not include scope=rum; log indexes do not include external bindings and default; field management covers only workspace custom fields; data access rules are currently not in the supported resource catalog.
Request Example¶
curl --request POST 'https://openapi.guance.com/api/v1/workspace/resource/upload' \
-H 'DF-API-KEY: <DF-API-KEY>' \
-F 'files=@./resource.zip' \
-F 'repeatNameOp=check' \
-F 'repeatIdentifierOp=check'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.taskId | string | Asynchronous task ID, subsequently used to query/cancel with taskId; it is not a ZIP download URL or a Celery execution completion flag. |
| content.declaration | object or null | Workspace common declaration attached to non-empty content; may be null or an empty object when not configured. |
| content.repeat_name | object | Returned only when pre-check finds conflicts; arrays of duplicate names grouped by resource type; this branch has no taskId and does not start asynchronous import. |
| content.repeat_name. |
array<string> |
Existing names hit for this type, such as checker/log_backup_cfg/role. |
| content.repeat_name. |
string | A conflicting name; duplicate names for field configurations are determined by name+fieldSource. |
| content.repeat_identifier | object | Compatibility confirmation map; the current upload controller usually returns {}. |
| content.repeat_conflict | object | Detailed dashboard/explorer conflict map; returned only when check is required and a conflict group actually exists. |
| content.repeat_conflict.dashboard.name_and_identifier | array<object> |
Conflict items of this type for names/identifiers; see each item for actual match details. |
| content.repeat_conflict.dashboard.name_and_identifier[] | object | Conflict data between the imported item and the existing object. |
| content.repeat_conflict.dashboard.name_and_identifier[].name | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].identifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].fileName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].importName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].importIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].existName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].existIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].nameConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].existNameIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].identifierConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].existIdentifierName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name_and_identifier[].isCrossConflict | boolean | true when the name and identifier hit two different existing objects; verify each separately before overwriting. |
| content.repeat_conflict.dashboard.name_and_identifier[].conflictUUIDs | array<string> |
All existing resource UUIDs involved in this item, deduplicated but in no stable order. |
| content.repeat_conflict.dashboard.name_and_identifier[].conflictUUIDs[] | string | An existing conflict UUID. |
| content.repeat_conflict.dashboard.identifier | array<object> |
Conflict items of this type for names/identifiers; see each item for actual match details. |
| content.repeat_conflict.dashboard.identifier[] | object | Conflict data between the imported item and the existing object. |
| content.repeat_conflict.dashboard.identifier[].name | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].identifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].fileName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].importName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].importIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].existName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].existIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].nameConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].existNameIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].identifierConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].existIdentifierName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.identifier[].isCrossConflict | boolean | true when the name and identifier hit two different existing objects; verify each separately before overwriting. |
| content.repeat_conflict.dashboard.identifier[].conflictUUIDs | array<string> |
All existing resource UUIDs involved in this item, deduplicated but in no stable order. |
| content.repeat_conflict.dashboard.identifier[].conflictUUIDs[] | string | An existing conflict UUID. |
| content.repeat_conflict.dashboard.name | array<object> |
Conflict items of this type for names/identifiers; see each item for actual match details. |
| content.repeat_conflict.dashboard.name[] | object | Conflict data between the imported item and the existing object. |
| content.repeat_conflict.dashboard.name[].name | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].identifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].fileName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].importName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].importIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].existName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].existIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].nameConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].existNameIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].identifierConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].existIdentifierName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.dashboard.name[].isCrossConflict | boolean | true when the name and identifier hit two different existing objects; verify each separately before overwriting. |
| content.repeat_conflict.dashboard.name[].conflictUUIDs | array<string> |
All existing resource UUIDs involved in this item, deduplicated but in no stable order. |
| content.repeat_conflict.dashboard.name[].conflictUUIDs[] | string | An existing conflict UUID. |
| content.repeat_conflict.viewer.name_and_identifier | array<object> |
Conflict items of this type for names/identifiers; see each item for actual match details. |
| content.repeat_conflict.viewer.name_and_identifier[] | object | Conflict data between the imported item and the existing object. |
| content.repeat_conflict.viewer.name_and_identifier[].name | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].identifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].fileName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].importName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].importIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].existName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].existIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].nameConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].existNameIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].identifierConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].existIdentifierName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name_and_identifier[].isCrossConflict | boolean | true when the name and identifier hit two different existing objects; verify each separately before overwriting. |
| content.repeat_conflict.viewer.name_and_identifier[].conflictUUIDs | array<string> |
All existing resource UUIDs involved in this item, deduplicated but in no stable order. |
| content.repeat_conflict.viewer.name_and_identifier[].conflictUUIDs[] | string | An existing conflict UUID. |
| content.repeat_conflict.viewer.identifier | array<object> |
Conflict items of this type for names/identifiers; see each item for actual match details. |
| content.repeat_conflict.viewer.identifier[] | object | Conflict data between the imported item and the existing object. |
| content.repeat_conflict.viewer.identifier[].name | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].identifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].fileName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].importName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].importIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].existName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].existIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].nameConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].existNameIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].identifierConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].existIdentifierName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.identifier[].isCrossConflict | boolean | true when the name and identifier hit two different existing objects; verify each separately before overwriting. |
| content.repeat_conflict.viewer.identifier[].conflictUUIDs | array<string> |
All existing resource UUIDs involved in this item, deduplicated but in no stable order. |
| content.repeat_conflict.viewer.identifier[].conflictUUIDs[] | string | An existing conflict UUID. |
| content.repeat_conflict.viewer.name | array<object> |
Conflict items of this type for names/identifiers; see each item for actual match details. |
| content.repeat_conflict.viewer.name[] | object | Conflict data between the imported item and the existing object. |
| content.repeat_conflict.viewer.name[].name | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].identifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].fileName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].importName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].importIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].existName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].existIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].nameConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].existNameIdentifier | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].identifierConflictUUID | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].existIdentifierName | string | Name, identifier, or UUID of the corresponding imported/existing object; some fields are omitted when the corresponding conflict side is not hit. |
| content.repeat_conflict.viewer.name[].isCrossConflict | boolean | true when the name and identifier hit two different existing objects; verify each separately before overwriting. |
| content.repeat_conflict.viewer.name[].conflictUUIDs | array<string> |
All existing resource UUIDs involved in this item, deduplicated but in no stable order. |
| content.repeat_conflict.viewer.name[].conflictUUIDs[] | string | An existing conflict UUID. |
{
"code": 200,
"content": {
"taskId": "resource_task_example",
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
{
"code": 200,
"content": {
"repeat_name": {
"checker": [
"Existing monitor"
]
},
"repeat_identifier": {},
"repeat_conflict": {},
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | Request field is missing, or the field value violates the declared validation conditions | Parameter parsing failed | Verify the parameter location, field name, type, and value. |
| 406 | ft.UploadFileFailedParse | ZIP or the JSON of the inspected resource cannot be read/parsed | File parsing failed | Regenerate from a supported export package, verify the JSON and directory structure, and do not upload encrypted or corrupted ZIP files. |
| 403 | ft.ForbiddenFreeEditionLimit | The number of resources reaches/exceeds the current plan limit | Free Plan workspace {} has reached the upper limit ({} items) and cannot create new resources. Upgrade to a Commercial Plan to remove the limit | Verify the target plan quota and current count; do not use the skip policy to bypass the pre-import quantity check. |
| 403 | ft.ForbiddenFreeEditionWorkspace | Types to be imported, such as monitors/notifications, are not allowed by the target workspace plan | The Free Plan workspace does not support this feature. Upgrade to a Commercial Plan to remove the restriction | Remove unsupported resources or choose a supported plan. |
| 403 | ft.Forbidden | Free Plan workspaces are not allowed to import resources such as data forwarding, or API permissions are insufficient | You do not have permission to perform this operation | Verify the plan and permissions. |
| 406 | ft.UnsupportShortMessage | The current Free Plan does not support SMS notification targets in the package | The Free Plan workspace does not support SMS notification targets |
Remove the target or use a supported plan. |
| 406 | ft.UnsupportOnCall | The current Free Plan does not support voice notification targets in the package | The workspace does not support Phone notification targets |
Remove the target or use a supported plan. |
| 400 | ft.UnsupportFreeWorkspaceSecurityCfg | The current Free Plan does not support security configurations to be imported | The Free Plan workspace does not support security monitoring rule configurations | Verify plan support. |
| 500 | ft.InternalServerError | Task cache/queue, file system, database, or unhandled task status/JSON processing failed | Internal error | First use the same Key in the same workspace to query the task and current resource state. Confirm whether it has been enqueued/partially saved before retrying; do not blindly repeat the import or overwrite. |