基础设施相关接口/指标目录与保留策略
POSTInfrastructure起始版本 1.0同步需要认证
预览删除保留策略
预览删除保留策略的影响,返回阻断项、级联资源、孤立资源、终结器和可用策略。
调试可用性
在线调试
使用当前认证信息和示例参数提交 Mock 请求。
路径参数
请求参数
路径参数
idString必填资源ID。
请求体字段
optionsObject必填资源。
propagationPolicyString传播策略。
示例: value
forceBoolean是否强制执行。
示例: true
gracePeriodSecondsInteger宽限周期秒。
示例: 10
revokeRemoteCredentialsBoolean撤销远程凭证。
示例: true
响应状态
请求地址
POST/api/v1/metrics/retention-policies/{id}/previewDelete
/api/v1/metrics/retention-policies/{id}/previewDelete
请求示例
curl -X POST '{host}/api/v1/metrics/retention-policies/{id}/previewDelete' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"options":{"propagationPolicy":"value","force":true,"gracePeriodSeconds":10,"revokeRemoteCredentials":true}}'
响应示例
200{"blockers": [{"resourceType": "VmNic", "resourceUuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901", "resourceName": "nic-001", "relation": "AttachedTo", "suggestion": "Detach the NIC before deleting the VM", "hard": true}], "cascadeResources": [{"resourceType": "Volume", "resourceUuid": "c3d4e5f6-a7b8-9012-cdef-123456789012", "resourceName": "vol-data-01"}], "orphanResources": [{"resourceType": "Volume", "resourceUuid": "c3d4e5f6-a7b8-9012-cdef-123456789012", "resourceName": "vol-data-01"}], "finalizers": [{"name": "cleanup-network", "description": "Releases network interfaces associated with the resource", "status": "Succeeded", "error": "timeout waiting for network release"}], "availablePolicies": ["value"], "softDeleteRecoverable": true}变更历史
此 API 暂无变更历史记录。
