This URL gets the list of QoS policies defined in a particular domain.
Resource URL
GET /domain/<domain_id>/qospolicy
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 |
|---|---|---|
| List of QoS policies defined in the domain | Array |
Details of object in QoSPoliciesForDomainResponseList:
Field Name | Description | Data Type |
|---|---|---|
| Name of the QoS policy | String |
| Is policy visible to child domains | Boolean |
| Policy description | String |
| Is policy editable | Number |
| Last user that modified the policy | String |
| Policy type, can be "ADVANCED" or "CLASSIC" | String |
| QoS policy unique id | Number |
| Domain id | Number |
| Policy version | Number |
Example
Request
GET https://<NSM_IP>/sdkapi/domain/0/qospolicy
Response
{
"QoSPoliciesForDomain":
[
{
"policyName": "TestQosPolicy",
"visibleToChild": true,
"isEditable": true,
"description": "To test the QOSPolicy",
"lastModUser": "admin",
"policyType": "ADVANCED",
"policyId": 179,
"domainId": 0,
"policyVersion": 1
},
{
"policyName": "QosPolicy",
"visibleToChild": true,
"isEditable": true,
"description": "To test the QOSPolicy",
"lastModUser": "admin",
"policyType": "ADVANCED",
"policyId": 175,
"domainId": 0,
"policyVersion": 1
}
]
}
Error Information
Following error codes are returned by this URL:
S.No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 404 | 1105 | Invalid domain |