PreviewDeleteSilenceTemplate
Preview the deletion impact for a silence Template without mutating state. Returns blockers, cascade resources, orphan resources, finalizers, and available policies.
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
templateIdStringRequired模板ID。
Body Fields
optionsObjectRequiredOptions for this resource
propagationPolicyStringPropagationPolicy overrides the resource's default policy when non-empty. Accepted values: Restrict, Foreground, Background, Orphan, SoftDelete.
Example: value
forceBooleanForce skips the Finalizer phase and advances directly to PhysicalDelete. Requires operator-level permission; returns PermissionDenied until the audit-integration rollout lands.
Example: true
gracePeriodSecondsIntegerGracePeriodSeconds defines the post-request delay before the engine begins the Checking phase. Default 0 (immediate).
Example: 10
revokeRemoteCredentialsBooleanRevokeRemoteCredentials is a resource-scoped hint for resources that carry out-of-band credentials (e.g. Platform access keys). When true, the corresponding revoke finalizer is activated for this request. Ignored by resources that do not register such a finalizer.
Example: true
Responses
Endpoint
POST/api/v1/alerting/silence-templates/{templateId}/previewDelete
/api/v1/alerting/silence-templates/{templateId}/previewDelete
Request Example
curl -X POST '{host}/api/v1/alerting/silence-templates/{template_id}/previewDelete' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"options":{"propagationPolicy":"value","force":true,"gracePeriodSeconds":10,"revokeRemoteCredentials":true}}'
Response Example
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}Change History
This API has no change history records yet.
