Get Assignments for A Package

Get Assignments for A Package

Get Assignments for a Package

Request
URI
GET
https://{api_host}/app_volumes/app_packages/{id}/assignments
COPY
Path Parameters
integer
id
Required

Package ID.

Query Parameters
string
include
Required

The extra models in order to fetch entity and filter details.

Possible values are : entities, filters,

Responses
200

Package Assignments.

Returns GetPackageAssignment of type(s) application/json
{
    "data": [
        {
            "id": 0,
            "description": "This package is on its latest version 7.0.1",
            "app_product_id": 0,
            "app_product_name": "Notepad++",
            "app_package_id": 0,
            "app_package_name": "Notepad-7.0.1",
            "app_marker_id": 0,
            "app_marker_name": "CURRENT",
            "priority": 0,
            "mount_prefix": "string",
            "created_at": "2021-12-03 13:10:13 -0800",
            "created_at_human": "Dec 03 2021",
            "updated_at": "2021-12-03 13:10:13 -0800",
            "updated_at_human": "Dec 03 2021",
            "entities": [
                {
                    "id": 1,
                    "entity_type": "User",
                    "name": "testuser-1",
                    "account_name": "testuser-1",
                    "upn": "SNAPVOLUMES\\testuser-1",
                    "distinguished_name": "CN=testuser-1,OU=Domain Users,DC=Snapvolumes,DC=com"
                }
            ],
            "filters": [
                {
                    "id": 3,
                    "type": "ComputerPrefixFilter",
                    "value": "COMP"
                }
            ]
        }
    ]
}
data
Optional

data


403

Session expired. Create a session and make the request with the _session_id cookie.

Returns UnauthorizedError of type(s) application/json
{
    "error": "Session expired. Please login again."
}
string
error
Optional

Session expired. Create a session using and make the request with the _session_id cookie.


404

Package not found.

Returns GetPackageNotFoundError of type(s) application/json
{
    "errors": [
        {
            "title": "Incorrect Package id 0 passed",
            "meta": {
                "manager": {
                    "title": "Incorrect Package id 0 passed"
                }
            }
        }
    ]
}
array of object
errors
Optional

errors


500

Server error.

Returns ServerError of type(s) application/json
{
    "error": "Server Error",
    "detail": "Unexpected server error."
}
string
error
Optional

Server Error.

string
detail
Optional

Details of error. Exact error format subject to change depending on type of error.