Skip to content
Niu DocsNiu 牛元文档
Dashboard控制台

Revoke locally saved asset-management credentials

Generated from the checked-in source. Do not edit this reference by hand.

DELETE /api/v1/vendors/{id}/asset-management

Installation administrator only. The expected management revision must match the latest configuration. Revocation blocks internal reads through that revision. Optional erasure removes ciphertext from the active database only and requires confirm_erase=true; immutable metadata and audit events remain. Exact repeat requests do not duplicate audit events. This does not revoke Access Keys at Ark or erase backups, and does not affect inference bearer credentials.

Operation: revokeAssetManagement.

Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.

JSON
[
{
"adminBearerAuth": []
}
]

Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.

Shell
curl --fail-with-body -X DELETE "$NIU_ORIGIN/api/v1/vendors/{id}/asset-management" \
-H "Authorization: Bearer $NIU_ADMIN_TOKEN" \
-H 'Content-Type: application/json' \
--data @request.json

Location: path. Required.

JSON
{
"type": "string",
"format": "uuid"
}

Required.

JSON
{
"type": "object",
"additionalProperties": false,
"required": [
"expected_revision"
],
"properties": {
"expected_revision": {
"type": "integer",
"minimum": 1
},
"erase_history": {
"type": "boolean",
"default": false
},
"confirm_erase": {
"type": "boolean",
"default": false
}
}
}

Local revocation applied. erased_revisions counts ciphertext rows erased by this call, and is zero on a repeat.

Content type: application/json.

JSON
{
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"required": [
"revision",
"configured",
"dispatch_available",
"erased_revisions"
],
"properties": {
"revision": {
"type": "integer",
"minimum": 1
},
"configured": {
"type": "boolean",
"const": false
},
"dispatch_available": {
"type": "boolean",
"const": false
},
"erased_revisions": {
"type": "integer",
"minimum": 0
}
}
}
}
}

Invalid input or missing erasure confirmation.

Installation administrator required.

Missing configuration or stale revision.

Request body exceeds 16 KiB.

Installation administrator only. The expected management revision must match the latest configuration. Revocation blocks internal reads through that revision. Optional erasure removes ciphertext from the active database only and requires confirm_erase=true; immutable metadata and audit events remain. Exact repeat requests do not duplicate audit events. This does not revoke Access Keys at Ark or erase backups, and does not affect inference bearer credentials.