{"files":{"SKILL.md":"---\nname: policyclient\ndescription: \"PolicyClient API skill. Use when working with PolicyClient for {scope}, subscriptions, {policyAssignmentId}. Covers 13 endpoints.\"\nversion: 1.0.0\ngenerator: lapsh\n---\n\n# PolicyClient\nAPI version: 2016-04-01\n\n## Auth\nOAuth2\n\n## Base URL\nhttps://management.azure.com\n\n## Setup\n1. Configure auth: OAuth2\n2. GET /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName} -- gets a policy assignment.\n3. Explore available endpoints below\n\n## Endpoints\n13 endpoints across 3 groups. See references/api-spec.lap for full details.\n\n### {scope}\n| Method | Path | Description |\n|--------|------|-------------|\n| DELETE | /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName} | Deletes a policy assignment. |\n| PUT | /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName} | Creates a policy assignment. |\n| GET | /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName} | Gets a policy assignment. |\n\n### Subscriptions\n| Method | Path | Description |\n|--------|------|-------------|\n| GET | /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments | Gets policy assignments for the resource group. |\n| GET | /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments | Gets policy assignments for a resource. |\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyassignments | Gets all the policy assignments for a subscription. |\n| PUT | /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName} | Creates or updates a policy definition. |\n| DELETE | /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName} | Deletes a policy definition. |\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName} | Gets the policy definition. |\n| GET | /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions | Gets all the policy definitions for a subscription. |\n\n### {policyAssignmentId}\n| Method | Path | Description |\n|--------|------|-------------|\n| DELETE | /{policyAssignmentId} | Deletes a policy assignment by ID. |\n| PUT | /{policyAssignmentId} | Creates a policy assignment by ID. |\n| GET | /{policyAssignmentId} | Gets a policy assignment by ID. |\n\n## Common Questions\nMatch user requests to endpoints in references/api-spec.lap. Key patterns:\n- \"Delete a policyassignment?\" -> DELETE /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}\n- \"Update a policyassignment?\" -> PUT /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}\n- \"Get policyassignment details?\" -> GET /{scope}/providers/Microsoft.Authorization/policyassignments/{policyAssignmentName}\n- \"List all policyAssignments?\" -> GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/policyAssignments\n- \"List all policyassignments?\" -> GET /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/policyassignments\n- \"Delete a {policyAssignmentId}?\" -> DELETE /{policyAssignmentId}\n- \"Update a {policyAssignmentId}?\" -> PUT /{policyAssignmentId}\n- \"Get {policyAssignmentId} details?\" -> GET /{policyAssignmentId}\n- \"Update a policydefinition?\" -> PUT /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}\n- \"Delete a policydefinition?\" -> DELETE /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}\n- \"Get policydefinition details?\" -> GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions/{policyDefinitionName}\n- \"List all policydefinitions?\" -> GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policydefinitions\n- \"How to authenticate?\" -> See Auth section above\n\n## Response Tips\n- Check response schemas in references/api-spec.lap for field details\n- Create/update endpoints return the modified resource on success\n\n## References\n- Full spec: See references/api-spec.lap for complete endpoint details, parameter tables, and response schemas\n\n> Generated from the official API spec by [LAP](https://lap.sh)\n","references/api-spec.lap":"@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"}}