Access Policies - Delete

Deletes the access policy with the specified name in the specified subscription, resource group, and environment

DELETE https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TimeSeriesInsights/environments/{environmentName}/accessPolicies/{accessPolicyName}?api-version=2020-05-15

URI Parameters

Name In Required Type Description
accessPolicyName
path True

string

The name of the Time Series Insights access policy associated with the specified environment.

environmentName
path True

string

The name of the Time Series Insights environment associated with the specified resource group.

resourceGroupName
path True

string

Name of an Azure Resource group.

subscriptionId
path True

string

Azure Subscription ID.

api-version
query True

string

Version of the API to be used with the client request.

Responses

Name Type Description
200 OK

The access policy was successfully deleted.

204 No Content

The access policy was successfully deleted.

Other Status Codes

CloudError

HTTP 404 (Not Found): The subscription, resource group, environment, or access policy could not be found.

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

AccessPoliciesDelete

Sample Request

DELETE https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.TimeSeriesInsights/environments/env1/accessPolicies/ap1?api-version=2020-05-15

Sample Response

Definitions

Name Description
CloudError

Contains information about an API error.

CloudErrorBody

Describes a particular API error with an error code and a message.

CloudError

Contains information about an API error.

Name Type Description
error

CloudErrorBody

Describes a particular API error with an error code and a message.

CloudErrorBody

Describes a particular API error with an error code and a message.

Name Type Description
code

string

An error code that describes the error condition more precisely than an HTTP status code. Can be used to programmatically handle specific error cases.

details

CloudErrorBody[]

Contains nested errors that are related to this error.

message

string

A message that describes the error in detail and provides debugging information.

target

string

The target of the particular error (for example, the name of the property in error).