v1

latestSwagger 2.0raw.githubusercontent.com2019-08-2810316.0 KB
PolicyDefinitions

Creates or updates a policy definition in a subscription.

This operation creates or updates a policy definition in the given subscription with the given name.

put/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}

Path parameters

policyDefinitionNamestring required

The name of the policy definition to create.

subscriptionIdstring required

The ID of the target subscription.

Query parameters

api-versionstring required

The API version to use for the operation.

Request body

idstring

The ID of the policy definition.

namestring

The name of the policy definition.

typestring

The type of the resource (Microsoft.Authorization/policyDefinitions).

Response

Created - Returns information about the policy definition.

idstring

The ID of the policy definition.

namestring

The name of the policy definition.

typestring

The type of the resource (Microsoft.Authorization/policyDefinitions).