@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api ManagedServiceIdentityClient
@base https://management.azure.com
@version 2018-11-30
@auth OAuth2
@common_fields {api-version: any # Version of API to invoke.}
@endpoints 8
@toc {scope}(1), providers(1), subscriptions(6)

@group {scope}
@endpoint GET /{scope}/providers/Microsoft.ManagedIdentity/identities/default
@desc Gets the systemAssignedIdentity available under the specified RP scope.
@required {scope: any # The resource provider scope of the resource. Parent resource being extended by Managed Identities.}
@returns(200) OK. The systemAssignedIdentity was retrieved and returned successfully.

@endgroup

@group providers
@endpoint GET /providers/Microsoft.ManagedIdentity/operations
@desc Lists available operations for the Microsoft.ManagedIdentity provider
@returns(200) The operation was successful. The response contains the list of available operations.

@endgroup

@group subscriptions
@endpoint GET /subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities
@desc Lists all the userAssignedIdentities available under the specified subscription.
@required {subscriptionId: any # The Id of the Subscription to which the identity belongs.}
@returns(200) OK. The list of userAssignedIdentities was retrieved and returned successfully.

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities
@desc Lists all the userAssignedIdentities available under the specified ResourceGroup.
@required {subscriptionId: any # The Id of the Subscription to which the identity belongs., resourceGroupName: any # The name of the Resource Group to which the identity belongs.}
@returns(200) OK. The list of userAssignedIdentities was retrieved and returned successfully.

@endpoint PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}
@desc Create or update an identity in the specified subscription and resource group.
@required {subscriptionId: any # The Id of the Subscription to which the identity belongs., resourceGroupName: any # The name of the Resource Group to which the identity belongs., resourceName: any # The name of the identity resource., parameters: any # Parameters to create or update the identity}
@returns(200) Updated identity
@returns(201) Created identity

@endpoint PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}
@desc Update an identity in the specified subscription and resource group.
@required {subscriptionId: any # The Id of the Subscription to which the identity belongs., resourceGroupName: any # The name of the Resource Group to which the identity belongs., resourceName: any # The name of the identity resource., parameters: any # Parameters to update the identity}
@returns(200) Updated identity

@endpoint GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}
@desc Gets the identity.
@required {subscriptionId: any # The Id of the Subscription to which the identity belongs., resourceGroupName: any # The name of the Resource Group to which the identity belongs., resourceName: any # The name of the identity resource.}
@returns(200) OK. The requested identity.

@endpoint DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}
@desc Deletes the identity.
@required {subscriptionId: any # The Id of the Subscription to which the identity belongs., resourceGroupName: any # The name of the Resource Group to which the identity belongs., resourceName: any # The name of the identity resource.}
@returns(200) OK. Deleted Identity.
@returns(204) The specified identity does not exist.

@endgroup

@end
