Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Modify an Address Group

 

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

URI

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

URI Parameters

Parameter

Type

Required

Description

id

Integer

Yes

ID of the address group to be modified

Consumes

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

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

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

address1 and address2

String

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

These are mandatory fields.

city, state and zipCode

String

City, State and Zip Code of the location

These are mandatory fields.

contactName

String

Name of contact associated with this address group

contactPhone

String

Phone number of contact associated with this address group

createdBy

String

Username of the person who created this address group

creationTime

String

Date and time the address group was created

modificationTime

String

Date and time the address group was last modified

domainId

Integer

ID of the domain in which the address group is created

This is an optional element. The value provided in this element is ignored if the value is invalid or a domainId other than the current domainId is provided.

Sample Input

Sample XML Input

Sample JSON Input

Sample Output

Sample XML Output

Sample JSON Output

Response Status Code

Message

Description

404 Not Found

Address group ID not found in Service Now.

400 Bad Request

Indicates one of the following:

  • Address field(s) are empty. Enter a value int 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.