{"note":"OpenAPI conversion -- returning structured metadata","name":"azure-com-resources-policy","description":"PolicyClient","version":"2016-04-01","base_url":"https://management.azure.com","endpoints":13,"raw":"@lap v0.3\n# Machine-readable API spec. Each @endpoint block is one API call.\n@api PolicyClient\n@base https://management.azure.com\n@version 2016-04-01\n@auth OAuth2\n@common_fields {api-version: any # The API version to use for the operation.}\n@endpoints 13\n@toc {scope}(3), subscriptions(7), {policyAssignmentId}(3)\n\n@group {scope}\n@endpoint DELETE /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}\n@desc Deletes a policy assignment.\n@required {scope: any # The scope of the policy assignment., policyAssignmentName: any # The name of the policy assignment to delete.}\n@returns(200) OK - Returns information about the deleted assignment.\n\n@endpoint PUT /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}\n@desc Creates a policy assignment.\n@required {scope: any # The scope of the policy assignment., policyAssignmentName: any # The name of the policy assignment., parameters: any # Parameters for the policy assignment.}\n@returns(201) Created - Returns information about the new policy assignment.\n\n@endpoint GET /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}\n@desc Gets a policy assignment.\n@required {scope: any # The scope of the policy assignment., policyAssignmentName: any # The name of the policy assignment to get.}\n@returns(200) OK - Returns information about the policy assignment.\n\n@endgroup\n\n@group subscriptions\n@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments\n@desc Gets policy assignments for the resource group.\n@required {resourceGroupName: any # The name of the resource group that contains policy assignments., subscriptionId: any # The ID of the target subscription.}\n@optional {$filter: any # The filter to apply on the operation.}\n@returns(200) OK - Returns an array of policy assignments.\n\n@endpoint GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments\n@desc Gets policy assignments for a resource.\n@required {resourceGroupName: any # The name of the resource group containing the resource. The name is case insensitive., resourceProviderNamespace: any # The namespace of the resource provider., parentResourcePath: any # The parent resource path., resourceType: any # The resource type., resourceName: any # The name of the resource with policy assignments., subscriptionId: any # The ID of the target subscription.}\n@optional {$filter: any # The filter to apply on the operation.}\n@returns(200) OK - Returns an array of policy assignments.\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments\n@desc Gets all the policy assignments for a subscription.\n@required {subscriptionId: any # The ID of the target subscription.}\n@optional {$filter: any # The filter to apply on the operation.}\n@returns(200) OK - Returns an array of policy assignments.\n\n@endgroup\n\n@group {policyAssignmentId}\n@endpoint DELETE /{policyAssignmentId}\n@desc Deletes a policy assignment by ID.\n@required {policyAssignmentId: any # The ID of the policy assignment to delete. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.}\n@returns(200) OK - Returns information about the policy assignment.\n\n@endpoint PUT /{policyAssignmentId}\n@desc Creates a policy assignment by ID.\n@required {policyAssignmentId: any # The ID of the policy assignment to create. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'., parameters: any # Parameters for policy assignment.}\n@returns(201) Created - Returns information about the policy assignment.\n\n@endpoint GET /{policyAssignmentId}\n@desc Gets a policy assignment by ID.\n@required {policyAssignmentId: any # The ID of the policy assignment to get. Use the format '/{scope}/providers/Microsoft.Authorization/policyAssignments/{policy-assignment-name}'.}\n@returns(200) OK - Returns information about the policy assignment.\n\n@endgroup\n\n@group subscriptions\n@endpoint PUT /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}\n@desc Creates or updates a policy definition.\n@required {policyDefinitionName: any # The name of the policy definition to create., parameters: any # The policy definition properties., subscriptionId: any # The ID of the target subscription.}\n@returns(201) Created - Returns information about the policy definition.\n\n@endpoint DELETE /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}\n@desc Deletes a policy definition.\n@required {policyDefinitionName: any # The name of the policy definition to delete., subscriptionId: any # The ID of the target subscription.}\n@returns(200) OK\n@returns(204) No Content\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}\n@desc Gets the policy definition.\n@required {policyDefinitionName: any # The name of the policy definition to get., subscriptionId: any # The ID of the target subscription.}\n@returns(200) OK - Returns information about the policy definition.\n\n@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions\n@desc Gets all the policy definitions for a subscription.\n@required {subscriptionId: any # The ID of the target subscription.}\n@optional {$filter: any # The filter to apply on the operation.}\n@returns(200) OK - Returns ana array of policy definitions.\n\n@endgroup\n\n@end\n"}