@lap v0.3
# Machine-readable API spec. Each @endpoint block is one API call.
@api IntuneResourceManagementClient
@base https://management.azure.com
@version 2015-01-14-privatepreview
@common_fields {api-version: any # Service Api Version.}
@endpoints 33
@hint download_for_search
@toc providers(33)

@endpoint GET /providers/Microsoft.Intune/locations
@desc Returns location for user tenant.
@returns(200) location response as a collection

@endpoint GET /providers/Microsoft.Intune/locations/hostName
@desc Returns location for given tenant.
@returns(200) single location response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/apps
@desc Returns Intune Manageable apps.
@required {hostName: any # Location hostName for the tenant}
@optional {$filter: any # The filter to apply on the operation., $top: any, $select: any # select specific fields in entity.}
@returns(200) applications as collection response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/iosPolicies
@desc Returns Intune iOSPolicies.
@required {hostName: any # Location hostName for the tenant}
@optional {$filter: any # The filter to apply on the operation., $top: any, $select: any # select specific fields in entity.}
@returns(200) applications as collection response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/androidPolicies
@desc Returns Intune Android policies.
@required {hostName: any # Location hostName for the tenant}
@optional {$filter: any # The filter to apply on the operation., $top: any, $select: any # select specific fields in entity.}
@returns(200) android Policies response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}
@desc Returns Intune iOS policies.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy}
@optional {$select: any # select specific fields in entity.}
@returns(200) iOSMAMPolicy entity.

@endpoint PUT /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}
@desc Creates or updates iOSMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, parameters: any # Parameters supplied to the Create or update an android policy operation.}
@returns(200) iOSMAMPolicy entity.

@endpoint PATCH /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}
@desc patch an iOSMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, parameters: any # Parameters supplied to the Create or update an android policy operation.}
@returns(200) iOSMAMPolicy entity.

@endpoint DELETE /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}
@desc Delete Ios Policy
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}
@desc Returns AndroidMAMPolicy with given name.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy}
@optional {$select: any # select specific fields in entity.}
@returns(200) iOSMAMPolicy entity.

@endpoint PUT /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}
@desc Creates or updates AndroidMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, parameters: any # Parameters supplied to the Create or update an android policy operation.}
@returns(200) android entity.

@endpoint PATCH /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}
@desc Patch AndroidMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, parameters: any # Parameters supplied to the Create or update an android policy operation.}
@returns(200) android entity.

@endpoint DELETE /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}
@desc Delete Android Policy
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/apps
@desc Get apps for an iOSMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy}
@optional {$filter: any # The filter to apply on the operation., $top: any, $select: any # select specific fields in entity.}
@returns(200) applications as collection response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/AndroidPolicies/{policyName}/apps
@desc Get apps for an AndroidMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy}
@optional {$filter: any # The filter to apply on the operation., $top: any, $select: any # select specific fields in entity.}
@returns(200) applications as collection response

@endpoint PUT /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/apps/{appName}
@desc Add app to an iOSMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, appName: any # application unique Name, parameters: any # Parameters supplied to add an app to an ios policy.}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint DELETE /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/apps/{appName}
@desc Delete App for Ios Policy
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, appName: any # application unique Name}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint PUT /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/apps/{appName}
@desc Add app to an AndroidMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, appName: any # application unique Name, parameters: any # Parameters supplied to the Create or update app to an android policy operation.}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint DELETE /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/apps/{appName}
@desc Delete App for Android Policy
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, appName: any # application unique Name}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/groups
@desc Returns groups for a given iOSMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # policy name for the tenant}
@returns(200) groups as collection response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/groups
@desc Returns groups for a given AndroidMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # policy name for the tenant}
@returns(200) groups as collection response

@endpoint PUT /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/groups/{groupId}
@desc Add group to an iOSMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, groupId: any # group Id, parameters: any # Parameters supplied to the Create or update app to an android policy operation.}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint DELETE /providers/Microsoft.Intune/locations/{hostName}/iosPolicies/{policyName}/groups/{groupId}
@desc Delete Group for iOS Policy
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, groupId: any # application unique Name}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint PUT /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/groups/{groupId}
@desc Add group to an AndroidMAMPolicy.
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, groupId: any # group Id, parameters: any # Parameters supplied to the Create or update app to an android policy operation.}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint DELETE /providers/Microsoft.Intune/locations/{hostName}/androidPolicies/{policyName}/groups/{groupId}
@desc Delete Group for Android Policy
@required {hostName: any # Location hostName for the tenant, policyName: any # Unique name for the policy, groupId: any # application unique Name}
@returns(200) No-Content.
@returns(204) No-Content.

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices
@desc Get devices for a user.
@required {hostName: any # Location hostName for the tenant, userName: any # user unique Name}
@optional {$filter: any # The filter to apply on the operation., $top: any, $select: any # select specific fields in entity.}
@returns(200) devices as collection response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices/{deviceName}
@desc Get a unique device for a user.
@required {hostName: any # Location hostName for the tenant, userName: any # unique user name, deviceName: any # device name}
@optional {$select: any # select specific fields in entity.}
@returns(200) Device entity.

@endpoint POST /providers/Microsoft.Intune/locations/{hostName}/users/{userName}/devices/{deviceName}/wipe
@desc Wipe a device for a user.
@required {hostName: any # Location hostName for the tenant, userName: any # unique user name, deviceName: any # device name}
@returns(200) Wipe operation result.

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/operationResults
@desc Returns operationResults.
@required {hostName: any # Location hostName for the tenant}
@optional {$filter: any # The filter to apply on the operation., $top: any, $select: any # select specific fields in entity.}
@returns(200) applications as collection response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/statuses/default
@desc Returns Intune Tenant level statuses.
@required {hostName: any # Location hostName for the tenant}
@returns(200) applications as collection response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/flaggedUsers
@desc Returns Intune flagged user collection
@required {hostName: any # Location hostName for the tenant}
@optional {$filter: any # The filter to apply on the operation., $top: any, $select: any # select specific fields in entity.}
@returns(200) Flagged users as collection response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/flaggedUsers/{userName}
@desc Returns Intune flagged user details
@required {hostName: any # Location hostName for the tenant, userName: any # Flagged userName}
@optional {$select: any # select specific fields in entity.}
@returns(200) Flagged user details in response

@endpoint GET /providers/Microsoft.Intune/locations/{hostName}/flaggedUsers/{userName}/flaggedEnrolledApps
@desc Returns Intune flagged enrolled app collection for the User
@required {hostName: any # Location hostName for the tenant, userName: any # User name for the tenant}
@optional {$filter: any # The filter to apply on the operation., $top: any, $select: any # select specific fields in entity.}
@returns(200) Flagged enrolled Apps as collection response

@end
