Favicon

You are here: Home > API Reference > AOSP > Android Non Gms Policies > List non-GMS Android policies

GET /organizations/:organizationId/mdm/aosp/enterprise/policies

Required Permission: mdm.aosp.policy.list

Retrieve non-GMS Android policies for the enterprise

GET
/v1/organizations/:organizationId/mdm/aosp/enterprise/policies
Copy to clipboard

List non-GMS Android policies

Required Permission: mdm.aosp.policy.list

Retrieve non-GMS Android policies for the enterprise

Request

Add parameter in header authorization
Example: Authorization: Bearer <token>
organizationId string
required
Match pattern: ^(([a-fA-F0-9]{24})|([a-zA-Z0-9\\-]{3,}))$
page integer
optional
Page number for paginated AOSP policy results.
limit integer
optional
Maximum number of AOSP policies to return per page.
sort string
optional
Sort expression applied to the AOSP policy list.
Match pattern: ^[\w.]*((:asc)|(:desc))?$
name string
optional
Filter policies by name.
≤ 256 characters
segmentId integer
optional
Optional segment identifier used to scope the resource within the organization.
expandTo string
optional
Segment expansion mode applied when filtering by segment.
ancestorschildren

Responses

200 Response application/json
status boolean required
data object required
items array [object] required
id string required
Identifier of the AOSP policy.
Match pattern: ^[a-fA-F0-9]{24}$
organizationId string required
Identifier of the organization that owns the AOSP enterprise resource.
Match pattern: ^[a-fA-F0-9]{24}$
aosEnterpriseId string required
Identifier of the AOSP enterprise configuration associated with this resource.
Match pattern: ^[a-fA-F0-9]{24}$
name string required
Display name of the AOSP policy.
≤ 256 characters
description string optional
Optional human-readable description of the policy.
≤ 500 characters
config any optional
Raw AOSP policy configuration payload stored by the backend.
private boolean optional
Whether the policy is private to a segment or workflow and should not be broadly reused.
segmentId integer optional
Optional segment identifier used to scope the resource within the organization.
≥ 0 · ≤ 9007199254740991
exposeToChildren any optional
Whether this policy can be inherited by child segments when segment filtering is expanded.
agentConfiguration object optional
Optional policy-level AOSP agent configuration delivered to devices.
assets array [object] optional
Referenced MDM assets attached to the policy.
assetsInfo array [object] optional
Expanded asset metadata returned for dashboard rendering.
applications array [object] required
AOSP application assignments attached to the policy.
applicationsInfo array [object] required
Expanded AOSP application mapping records resolved for dashboard rendering.
certificateProviderIds array [string] optional
Identifiers of certificate providers referenced by the policy.
version integer optional
Internal resource version used by the backend for tracking changes over time.
≥ 0 · ≤ 9007199254740991
updatedAt string required
Timestamp when the resource was last updated.
createdAt string required
Timestamp when the resource was created.
totalDocs integer required
≥ -9007199254740991 · ≤ 9007199254740991
limit integer required
≥ -9007199254740991 · ≤ 9007199254740991
hasPrevPage boolean required
hasNextPage boolean required
page integer required
≥ -9007199254740991 · ≤ 9007199254740991
totalPages integer required
≥ -9007199254740991 · ≤ 9007199254740991
prevPage integer required
≥ -9007199254740991 · ≤ 9007199254740991
nextPage integer required
≥ -9007199254740991 · ≤ 9007199254740991
{
    "status": true,
    "data": {
        "items": [
            {
                "id": "string",
                "organizationId": "string",
                "aosEnterpriseId": "string",
                "name": "string",
                "description": "string",
                "config": "string",
                "private": true,
                "segmentId": 0,
                "exposeToChildren": true,
                "agentConfiguration": {
                    "allowLocation": true,
                    "allowPackageTime": true,
                    "allowPackageTransfer": true,
                    "allowNetworkStatus": true,
                    "policyFeatures": {
                        "defaultViewFeature": "bookmarks",
                        "toggledFeatures": [
                            {
                                "name": "bookmarks",
                                "active": true
                            }
                        ],
                        "enableDefaultView": true
                    }
                },
                "assets": [
                    {
                        "mdmAssetId": "string",
                        "location": "string",
                        "assetName": "string",
                        "scope": "user"
                    }
                ],
                "assetsInfo": [
                    {}
                ],
                "applications": [
                    {
                        "aosApplicationId": "string",
                        "configuration": "string",
                        "action": "forceInstall",
                        "updatePolicy": {},
                        "customAppConfig": {}
                    }
                ],
                "applicationsInfo": [
                    {
                        "id": "string",
                        "organizationId": "string",
                        "aosEnterpriseId": "string",
                        "type": "build",
                        "config": {
                            "buildId": "string",
                            "applicationId": "string",
                            "filter": "string"
                        },
                        "info": {
                            "id": "string",
                            "bundleId": "string",
                            "name": "string",
                            "icon": "string",
                            "processedVersionName": "string",
                            "versionCode": "string",
                            "size": "string",
                            "originalExtension": "string",
                            "applicationInfo": {
                                "id": "string",
                                "slug": "string",
                                "name": "string",
                                "picture": "string"
                            },
                            "disabled": true,
                            "signatures": {
                                "sha1": "string",
                                "sha256": "string"
                            }
                        },
                        "version": 0,
                        "updatedAt": "string",
                        "createdAt": "string"
                    }
                ],
                "certificateProviderIds": [
                    "string"
                ],
                "version": 0,
                "updatedAt": "string",
                "createdAt": "string"
            }
        ],
        "totalDocs": 0,
        "limit": 0,
        "hasPrevPage": true,
        "hasNextPage": true,
        "page": 0,
        "totalPages": 0,
        "prevPage": 0,
        "nextPage": 0
    }
}
401 Response application/json
status boolean optional
false
error object optional
code number optional
4004
message string optional
Invalid Token
{
    "status": false,
    "error": {
        "code": 4002,
        "message": "No auth token"
    }
}
404 Response application/json
status boolean optional
false
error object optional
code number optional
3001
message string optional
Entity not found
{
    "status": false,
    "error": {
        "code": 3001,
        "message": "Entity not found"
    }
}