Assign Application To target
Assign Application to target
Request
URI
POST
https://{api_host}/app_volumes/app_assignments
COPY
Request Body
AppAssignmentRequestBody of type(s) application/json
Optional
{
"data": [
{
"app_product_id": 1,
"entities": [
{
"entity_type": "Group",
"path": "CN=test1,CN=Users,DC=test,DC=local"
}
],
"app_package_id": 0,
"app_marker_id": 1,
"delivery": "default",
"filters": [
{
"type": "ComputerPrefixFilter",
"value": "COMP"
}
]
}
]
}
Responses
200
1 Entities assigned to the Application Notepad++
Returns AppAssignmentSuccess of type(s) application/json
{
"data": [
{
"id": 0,
"description": "This application is best suitable for text files.",
"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",
"delivery": "default",
"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",
"filters": [
{
"id": 3,
"type": "ComputerPrefixFilter",
"value": "COMP"
}
]
}
],
"restricted_app_product_ids": [
2
]
}
array of restricted_app_product_ids
restricted_app_product_ids
Optional
restricted_app_product_ids
400
Unable to create assignment due to disabled Package, incorrect app_package_id or app_marker_id etc
Returns ApplicationAssignmentBadRequestError of type(s) application/json
{
"errors": [
{
"title": "Unable to create assignment. Package must be enabled",
"meta": {
"manager": {
"title": "Unable to create assignment. Package must be enabled"
}
}
},
{
"title": "Unable to save assignment",
"meta": {
"manager": {
"title": "Unable to save assignment"
}
}
},
{
"title": "Unable to create duplicate assignment with entity SNAPVOLUMES\\test-user to the same application",
"meta": {
"manager": {
"title": "Unable to create duplicate assignment with entity SNAPVOLUMES\\test-user to the same application"
}
}
},
{
"title": "Invalid delivery mode 'custom_mode' passed, it must belong to: [\"default\", \"on_trigger\"]",
"meta": {
"manager": {
"title": "Invalid delivery mode 'custom_mode' passed, it must belong to: [\"default\", \"on_trigger\"]"
}
}
}
]
}
array of object
errors
Optional
errors
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
Record not found
Operation doesn't return any data structure
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.