Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Modify a Device Group

 

Use this API to modify a device group.

URI

https://[host]/api/juniper/servicenow/device-group-management/deviceGroup/ {id}/modifyDeviceGroup (HTTP method = PUT)

URI Parameters

Parameter

Type

Required

Description

id

Integer

Yes

ID of the device group to be modified

Consumes

  • application/vnd.juniper.servicenow.device-group-management.modifydevicegroup +xml;version=1

  • application/vnd.juniper.servicenow.device-group-management.modifydevicegroup +json;version=1

Request Elements

Element

Type

Description

defaultDeviceGroup

Boolean

Flag to specify if the device group is the default device group in Junos Space Service Now

Possible values

  • true—Device group is the default device group

  • false—Device group is not the default device group

devices

devices

Collection of devices in the device group

newDevice

device

Collection of devices to be added to the device group

device

device

A device included in the device group

uri

String

URI of the device

href

String

Link to the device

removeDevice

device

Collection of devices to be removed from the device group

uri

String

URI of the device

href

String

Link to the device

policies

policies

Collection of auto submit policies in the device group

newPolicy

policy

Collection of auto submit policies to be added to the device group

policy

String

A new auto submit policy added to the device group

href

String

URI of the new auto submit policy

removePolicy

Policy

Collection of auto submit policies to be removed from the device group

policy

policy

Auto submit policy to be removed from the device group

href

String

Link to the auto submit policy to be removed from the device group

organization

String

Organization to which the device group is assigned

uri

String

URI of the organization

href

String

Link to the organization

Produces

  • application/vnd.juniper.servicenow.device-group-management.modifydevicegroup. servicenowmsg+xml;version=1

  • application/vnd.juniper.servicenow.device-group-management.modifydevicegroup. servicenowmsg+json;version=1

Response Elements

Element

Type

Description

msg

String

Status message of the modify device group job

Sample Input

Sample XML Input

Sample JSON Input

Sample Output

Sample XML Output

Sample JSON Output