Use the Orgs resource to get a list of trusted IP address ranges and add trusted IP address ranges. You can also enable or disable trusted IP address filtering.
Note: A sub-organization's trusted IP ranges are independent of the parent organization's trusted IP ranges.
GET request
To request a list of trusted IP address ranges for an organization or a sub-organization, use the following URI:
/public/core/v3/Orgs/<organization ID>/TrustedIP
GET response
If the request is successful, the response includes the following information for the organization:
Field
Type
Description
orgId
String
Organization ID.
enableIP
Boolean
Whether IP address filtering is enabled.
ipRanges
List
Trusted IP address ranges for the organization.
startIP
String
Included in the ipRanges object.
The first IP address in a range of trusted IP addresses.
endIP
String
Included in the ipRanges object.
The last IP address in a range of trusted IP addresses.
GET example
To get a list of trusted IP ranges for an organization, you might send a request similar to the following example:
GET <baseApiUrl>/public/core/v3/Orgs/6MRgiMIfvdRfUuCCCLICcI/TrustedIP
You might receive a response similar to the following example:
To add values of trusted IP ranges for an organization or a sub-organization and enable or disable trusted IP ranges, send a PUT request using the following URI:
/public/core/v3/Orgs/<organization ID>/TrustedIP
Note: If you add trusted IP address ranges for an organization, existing trusted IP address ranges are overwritten.
Include the following information:
Field
Type
Required
Description
enableIP
Boolean
No
Whether to enable IP address filtering. If enabled, at least one IP address range must be specified.
ipRanges
List
No
IP address ranges for the organization.
startIP
String
No
Include in the ipRanges object.
The first IP address in a range of trusted IP addresses.
endIP
String
No
Include in the ipRanges object.
The last IP address in a range of trusted IP addresses.
PUT response
If the request is successful, the response includes trusted IP address information for the specified organization.
PUT example
To enable the trusted IP addresses feature for an organization and add a range of trusted IP addresses, you might send a request similar to the following example: