All URIs are relative to https://console.jumpcloud.com/api/v2
Method | HTTP request | Description |
---|---|---|
GraphCommandAssociationsList | Get /commands/{command_id}/associations | List the associations of a Command |
GraphCommandAssociationsPost | Post /commands/{command_id}/associations | Manage the associations of a Command |
GraphCommandTraverseSystem | Get /commands/{command_id}/systems | List the Systems bound to a Command |
GraphCommandTraverseSystemGroup | Get /commands/{command_id}/systemgroups | List the System Groups bound to a Command |
[]GraphConnection GraphCommandAssociationsList(ctx, commandId, targets, contentType, accept, optional) List the associations of a Command
This endpoint will return the direct associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations?targets=system_group \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}'
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
commandId | string | ObjectID of the Command. | |
targets | []string | ||
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
optional | map[string]interface{} | optional parameters | nil if no parameters |
Optional parameters are passed through a map[string]interface{}.
Name | Type | Description | Notes |
---|---|---|---|
commandId | string | ObjectID of the Command. | |
targets | []string | ||
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
limit | int32 | The number of records to return at once. Limited to 100. | [default to 10] |
skip | int32 | The offset into the records to return. | [default to 0] |
xOrgId | string | [default to ] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GraphCommandAssociationsPost(ctx, commandId, contentType, accept, optional) Manage the associations of a Command
This endpoint will allow you to manage the direct associations of this Command. A direct association can be a non-homogeneous relationship between 2 different objects, for example Commands and User Groups. #### Sample Request curl -X POST https://console.jumpcloud.com/api/v2/commands/{Command_ID}/associations \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}' \\ -d '{ \"op\": \"add\", \"type\": \"system_group\", \"id\": \"Group_ID\" }'
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
commandId | string | ObjectID of the Command. | |
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
optional | map[string]interface{} | optional parameters | nil if no parameters |
Optional parameters are passed through a map[string]interface{}.
Name | Type | Description | Notes |
---|---|---|---|
commandId | string | ObjectID of the Command. | |
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
body | GraphManagementReq | ||
xOrgId | string | [default to ] |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]GraphObjectWithPaths GraphCommandTraverseSystem(ctx, commandId, contentType, accept, optional) List the Systems bound to a Command
This endpoint will return all Systems bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the type, id, attributes and paths. The attributes
object is a key/value hash of compiled graph attributes for all paths followed. The paths
array enumerates each path from this Command to the corresponding System; this array represents all grouping and/or associations that would have to be removed to deprovision the System from this Command. See /members
and /associations
endpoints to manage those collections. #### Sample Request curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systems \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}'
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
commandId | string | ObjectID of the Command. | |
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
optional | map[string]interface{} | optional parameters | nil if no parameters |
Optional parameters are passed through a map[string]interface{}.
Name | Type | Description | Notes |
---|---|---|---|
commandId | string | ObjectID of the Command. | |
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
limit | int32 | The number of records to return at once. Limited to 100. | [default to 10] |
xOrgId | string | [default to ] | |
skip | int32 | The offset into the records to return. | [default to 0] |
filter | []string | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]GraphObjectWithPaths GraphCommandTraverseSystemGroup(ctx, commandId, contentType, accept, optional) List the System Groups bound to a Command
This endpoint will return all System Groups bound to a Command, either directly or indirectly, essentially traversing the JumpCloud Graph for your Organization. Each element will contain the group's type, id, attributes and paths. The attributes
object is a key/value hash of compiled graph attributes for all paths followed. The paths
array enumerates each path from this Command to the corresponding System Group; this array represents all grouping and/or associations that would have to be removed to deprovision the System Group from this Command. See /members
and /associations
endpoints to manage those collections. #### Sample Request curl -X GET https://console.jumpcloud.com/api/v2/commands/{Command_ID}/systemgroups \\ -H 'accept: application/json' \\ -H 'content-type: application/json' \\ -H 'x-api-key: {API_KEY}'
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for logging, tracing, authentication, etc. | |
commandId | string | ObjectID of the Command. | |
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
optional | map[string]interface{} | optional parameters | nil if no parameters |
Optional parameters are passed through a map[string]interface{}.
Name | Type | Description | Notes |
---|---|---|---|
commandId | string | ObjectID of the Command. | |
contentType | string | [default to application/json] | |
accept | string | [default to application/json] | |
limit | int32 | The number of records to return at once. Limited to 100. | [default to 10] |
xOrgId | string | [default to ] | |
skip | int32 | The offset into the records to return. | [default to 0] |
filter | []string | Supported operators are: eq, ne, gt, ge, lt, le, between, search, in |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]