This URL gets the specified domain.
Resource URL
GET /domain/<domain_id>
Request Parameters
URL Parameters:
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Domain Id | Number | Yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned.
Field Name | Description | Data Type |
|---|---|---|
| Object that contains the details of the fields | Object |
Details of fields in SubscriberDescriptor:
Field Name | Description | Data Type |
|---|---|---|
| Domain Id | Number |
| Parent domain Id | Number |
| Domain name | String |
| Contact person | String |
| Email address | String |
| Title | String |
| Contact phone number | String |
| Company phone number | String |
| Organization | String |
| Address | Object |
| City | String |
| State | String |
| Country | String |
| Allow child admin domain | Boolean |
| Allow devices | Boolean |
| Default IPS policy | String |
| Default recon policy | String |
Details of fields in Address:
Field Name | Description | Data Type |
|---|---|---|
| Address1 | String |
| Address2 | String |
Example
Request
GET https://<NSM_IP>/sdkapi/domain/101
Response
{
"parentDomainId": 0,
"domainName": "Test Child Domain 2",
"contactPerson": "Trellix",
"emailAddress": "abc@xyz.com",
"title": "Intel",
"contactPhoneNumber": "9999999999",
"companyPhoneNumber": "080-12345678",
"organization": "Trellix",
"address":
{
"address1": "Bangalore",
"address2": "India"
},
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"allowChildAdminDomain": true,
"allowDevices": true,
"defaultIPSPolicy": "Default Inline IPS",
"defaultReconPolicy": "Default Reconnaissance Policy"
}
Error Information
Following error codes are returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1105 | Invalid domain |