eBayClassifiedsGroup/nsnitro

servicegroup_servicegroupmember_binding not available

Closed this issue · 1 comments

servicegroup_servicegroupmember_binding function binds the servicegroupmember object to a given service group name.

Operations

NOTE: In request payload, Mandatory parameters are marked red and bold.

  • add
  • delete
  • get
  • count

add:

URL:http://NS_IP/nitro/v1/config

HTTP Method:PUT

Request Payload:JSON

{"sessionid":"##sessionid","servicegroup_servicegroupmember_binding":{
      "servicegroupname":<String_value>,
      "ip":<String_value>,
                  "servername":<String_value>,
                  "port":<Integer_value>,
                  "weight":<Double_value>,
                  "serverid":<Double_value>,
                  "state":<String_value>,
                  "hashid":<Double_value>,

}}

Response Payload:JSON

{ "errorcode": 0, "message": "Done" }

delete:

URL:http://<NS_IP>/nitro/v1/config/servicegroup_servicegroupmember_binding/servicegroupname_value

Query-parameters:

args = 
      ip:<String_value>,
      servername:<String_value>,
      port:<Integer_value>,

HTTP Method:DELETE

Response Payload:JSON

{ "errorcode": 0, "message": "Done" }

get

URL:http://<NS_IP>/nitro/v1/config/servicegroup_servicegroupmember_binding/servicegroupname_value

Query-parameters:

filter

http://<NS_IP>/nitro/v1/config/servicegroup_servicegroupmember_binding/servicegroupname_value?filter=property-name1:property-value1,property-name2:property-value2

Use this query-parameter to get the filtered set of servicegroup_servicegroupmember_binding resources configured on NetScaler.Filtering can be done on any of the properties of the resource.

pagesize=#no&pageno=#no

http://<NS_IP>/nitro/v1/config/servicegroup_servicegroupmember_binding/servicegroupname_value?pagesize=#no&pageno=#no

Use this query-parameter to get the servicegroup_servicegroupmember_binding resources in chunks.

HTTP Method:GET

Response Payload:JSON

{ "errorcode": 0, "message": "Done", "servicegroup_servicegroupmember_binding": [ {
      "servicegroupname":<String_value>,
      "ip":<String_value>,
      "port":<Integer_value>,
      "state":<String_value>,
      "hashid":<Double_value>,
      "serverid":<Double_value>,
      "servername":<String_value>,
      "weight":<Double_value>,
      "svrstate":<String_value>,

}]}