Attestations - Delete At Resource Group
Deletes an existing attestation at resource group scope.
DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.PolicyInsights/attestations/{attestationName}?api-version=2022-09-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
attestation
|
path | True |
string |
The name of the attestation. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
The attestation was successfully deleted. |
|
| 204 No Content |
The attestation did not exist. |
|
| Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Delete attestation at resource group scope
Sample request
DELETE https://management.azure.com/subscriptions/35ee058e-5fa0-414c-8145-3ebb8d09b6e2/resourceGroups/myRg/providers/Microsoft.PolicyInsights/attestations/790996e6-9871-4b1f-9cd9-ec42cd6ced1e?api-version=2022-09-01
Sample response
Definitions
| Name | Description |
|---|---|
|
Error |
Error definition. |
|
Error |
Error response. |
|
Typed |
Scenario specific error details. |
ErrorDefinition
Error definition.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
Additional scenario specific error details. |
|
| code |
string |
Service specific error code which serves as the substatus for the HTTP error code. |
| details |
Internal error details. |
|
| message |
string |
Description of the error. |
| target |
string |
The target of the error. |
ErrorResponse
Error response.
| Name | Type | Description |
|---|---|---|
| error |
The error details. |
TypedErrorInfo
Scenario specific error details.
| Name | Type | Description |
|---|---|---|
| info |
|
The scenario specific error details. |
| type |
string |
The type of included error details. |