API to Rename a Connector
This endpoint renames the Connector with given ID.
PUT /openapi/v1/connectors/<id>
where <id> is the id that can be obtained from the API to Get Connectors.
Parameters: The request URL contains the following parameters
Name |
Type |
Description |
---|---|---|
id |
string |
Specify the Connector ID |
name |
string |
Specify the new name of the Connector |
Response object: Returns the Connector with given ID and the new name.
Sample response
req_payload = {
"name": "ERSPAN2",
}
resp = restclient.put('/ext_appliances/63c12e316419d0131767e21b', json_body=json.dumps(req_payload))
if resp.status_code == 200:
parsed_resp = json.loads(resp.content)
print json.dumps(parsed_resp)
Sample response
{
"name": "ERSPAN2",
"updated_at": 0,
"created_at": 1673604657,
"appliance_id": "63c1272039042a1c0ddd3e20",
"root_scope_id": "63bf8d2f497d4f7287dbd335",
"vrf_id": 1,
"type": "ERSPAN",
"ip_bindings": [],
"internal": false,
"id": "63c12e316419d0131767e21b"
}