This URL gets the protected VM group details.
Resource URL
PUT /cloud/cluster/<id>/getvmgroup
Request Parameters
URL Parameters
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Cluster id | Number | Yes |
Payload Request Parameters
Field Name | Description | Data Type | Mandatory |
|---|---|---|---|
| Protected VM group name | String | yes |
Response Parameters
Following fields are returned if the request parameters are correct, otherwise error details are returned:
Field Name | Description | Data Type |
|---|---|---|
| Protected VM group name | String |
| Protected VM group description | String |
| Cluster name | String |
| Controller name | String |
| VPC where the protected VM proup has been created | Array |
| Resource group list in case of Azure | Array |
| Traffic inspection settings | Object |
| List of the protected subnets | Array |
| Last updated time | String |
Details of fields in advancedAgentSettings:
Field Name | Description | Data Type |
|---|---|---|
| Traffic processing direction. Values can be:
| String |
| Inspection mode. Values can be :
| String |
Example
Request
PUT https://<NSM_IP>/sdkapi/cloud/cluster/101/getvmgroup
Payload
{
“name”: “Protected_VMGroup”
}
Response
{
"oldName": null,
"name": "Protected_VMGroup",
"description": "api update",
"cloudCluster": "Cloud_Cluster",
"cloudConnector": "Cloud_Controller",
"vpc": ["vpc-06b3ce61(Cloud_test)"],
"advancedAgentSettings":
{
"trafficProcessing": "Ingress & Egress",
"inspectionMode": "ips"
},
"protectedObjects":
[
"subnet-bde05df4(Secure_subnet)"
],
"lastUpdated": "2017-03-23 11:02:50.0 ( admin)"
}
Error Information
Following error codes are returned by this URL:
No | HTTP Error Code | SDK API errorId | SDK API errorMessage |
|---|---|---|---|
1 | 500 | 1001 | Internal error message |
2 | 400 | 11001 | No VM group of <name> name in cluster |