virtual_services_location
List all service virtualization locations for a specified workspace to retrieve details like harbor, ship, port range, and Kubernetes status.
Instructions
Operations on locations.
Use this when a user needs to read locations information.
Actions:
- list: List all locations.
args(dict): Dictionary with the following required parameters:
workspace_id (int): Mandatory. The id of the workspace to list locations from.
Location Schema:
{'properties': {'harborId': {'default': None, 'description': 'Location harbor id', 'title': 'Harborid', 'type': 'string'}, 'shipId': {'default': None, 'description': 'Location ship id', 'title': 'Shipid', 'type': 'string'}, 'shipName': {'default': None, 'description': 'Location name', 'title': 'Shipname', 'type': 'string'}, 'portRange': {'default': None, 'description': 'Location port range', 'title': 'Portrange', 'type': 'string'}, 'kubernetes': {'default': None, 'description': 'If true - Kubernetes location, if false - Docker location', 'title': 'Kubernetes', 'type': 'boolean'}}, 'title': 'Location', 'type': 'object'}Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"args": "<args>"
},
"name": "virtual_services_location"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | Yes | ||
| action | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| info | No | Info messages | |
| error | No | Error message | |
| total | No | Total available records | |
| result | No | Result | |
| warning | No | Warning messages | |
| has_more | No | More records per page to list |