Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Create an Address Group

 

Use this API to create an address group in Junos Space Service Now.

URI

https://[host]/api/juniper/servicenow/address-group-management/addressGroups/create (HTTP method = POST)

URI Parameters

None

Consumes

  • application/vnd.juniper.servicenow.address-group-management.addressgroup+xml; version=1;charset=UTF-8

  • application/vnd.juniper.servicenow.address-group-management.addressgroup+json; version=1;charset=UTF-8

Produces

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

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

Response Elements

Element

Type

Description

name

String

Name of the location, such as the business name.

This element is mandatory.

address1 and address2

String

Address, such as street number and street name, to be associated with the device.

address 1 is required, where as address 2 is optional

city, state and zipCode

String

City, State and Zip Code of the location.

These elements are mandatory.

contactName

String

Name of contact associated with this address group.

contactPhone

String

Phone number of contact associated with this address group.

createdBy

String

User creating this address group.

creationTime

String

Date and time the address group was created.

modificationTime

String

Date and time the address group was last modified.

hostName

String

Hostname of the device associated with this address group. hostname is displayed only if Service Now can obtain the device information.

serialNumber

String

Serial number of the device associated with this address group. serialnumber is displayed only if Service Now can obtain the device information.

platform

String

Device platform associated with this address group. platform is displayed only if Service Now can obtain the device information.

domainId

Integer

ID of the domain in which the address group is created

Sample Input

Sample XML Input

Sample JSON Input

Sample Output

Sample XML Output

Sample JSON Output

Response Status Code

Message

Description

400 Bad Request

Indicates one of the following:

  • Address group name is null or empty. You cannot have a null or empty name.

  • Address group name already exists in Service Now.

  • Address field(s) are empty. Enter a value in address1 and optionally address2.

  • City field is empty. Enter a value in the city field.

  • State field is empty. Enter a valid state.

  • Zip code field is empty. Enter a valid zip code.