Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Delete a Device Group

    Use this API to delete a specified device group from Junos Space Service Now.

    URI

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

    URI Parameters

    Parameter

    Type

    Required

    Description

    id

    Integer

    Yes

    ID of the device group to be deleted

    Consumes

    None

    Produces

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

    Response Elements

    Element

    Type

    Description

    msg

    String

    Status message of the delete device group job

    Sample Output

    Sample XML Output

    <servicenowmsg>
           <msg>
                  Device group successfully deleted
           </msg>
    </servicenowmsg>
    

    Sample JSON Output

    servicenowmsg:{
            msg:'Device group successfully deleted'
        }
    

    Response Status Code

    Message

    Description

    404 Not Found

    Invalid device group ID specified.

    Modified: 2016-08-10