@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api PolicyClient
@base https://management.azure.com
@version 2019-06-01
@auth OAuth2
@common_fields {api-version: any # The API version to use for the operation.}
@endpoints 10
@toc subscriptions(4), providers(6)

@group subscriptions
@endpoint PUT /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
@desc Creates or updates a policy set definition.
@required {policySetDefinitionName: any # The name of the policy set definition to create., parameters: any # The policy set definition properties., subscriptionId: any # The ID of the target subscription.}
@returns(200) OK - Returns information about the policy set definition.
@returns(201) Created - Returns information about the policy set definition.

@endpoint DELETE /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
@desc Deletes a policy set definition.
@required {policySetDefinitionName: any # The name of the policy set definition to delete., subscriptionId: any # The ID of the target subscription.}
@returns(200) OK
@returns(204) No Content - the policy set definition doesn't exist in the subscription.

@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
@desc Retrieves a policy set definition.
@required {policySetDefinitionName: any # The name of the policy set definition to get., subscriptionId: any # The ID of the target subscription.}
@returns(200) OK - Returns information about the policy set definition.

@endgroup

@group providers
@endpoint GET /providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
@desc Retrieves a built in policy set definition.
@required {policySetDefinitionName: any # The name of the policy set definition to get.}
@returns(200) OK - Returns information about the built in policy set definition.

@endgroup

@group subscriptions
@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions
@desc Retrieves the policy set definitions for a subscription.
@required {subscriptionId: any # The ID of the target subscription.}
@returns(200) OK - Returns an array of policy set definitions.

@endgroup

@group providers
@endpoint GET /providers/Microsoft.Authorization/policySetDefinitions
@desc Retrieves built-in policy set definitions.
@returns(200) OK - Returns an array of built in policy set definitions.

@endpoint PUT /providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
@desc Creates or updates a policy set definition.
@required {policySetDefinitionName: any # The name of the policy set definition to create., parameters: any # The policy set definition properties., managementGroupId: any # The ID of the management group.}
@returns(200) OK - Returns information about the policy set definition.
@returns(201) Created - Returns information about the policy set definition.

@endpoint DELETE /providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
@desc Deletes a policy set definition.
@required {policySetDefinitionName: any # The name of the policy set definition to delete., managementGroupId: any # The ID of the management group.}
@returns(200) OK
@returns(204) No Content - the policy set definition doesn't exist in the subscription.

@endpoint GET /providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}
@desc Retrieves a policy set definition.
@required {policySetDefinitionName: any # The name of the policy set definition to get., managementGroupId: any # The ID of the management group.}
@returns(200) OK - Returns information about the policy set definition.

@endpoint GET /providers/Microsoft.Management/managementgroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions
@desc Retrieves all policy set definitions in management group.
@required {managementGroupId: any # The ID of the management group.}
@returns(200) OK - Returns an array of policy set definitions.

@endgroup

@end
