virtual_services_asset
Manage assets like certificates, keys, and keystores for service virtualization. Upload new asset files, list, read asset details, and set keystore passwords.
Instructions
Operations on assets.
Use this when a user needs to create an asset from file. Supported file extensions: .jks, .keystore, .key, .crt,
.cer, .p7b, .p7c, .p7s, .pem
Actions:
- read: Reads an Asset. Get the information of an asset.
args(dict): Dictionary with the following required parameters:
workspace_id (int): Mandatory. The id of the workspace to list asset from.
asset_id (int): Mandatory. The id of the asset.
- list: List all assets.
args(dict): Dictionary with the following required parameters:
workspace_id (int): Mandatory. The id of the workspace to list services from.
limit (int, default=10, valid=[1 to 50]): The number of assets to list.
offset (int, default=0): Number of assets to skip.
- set_keystore_passwords: Sets keystore password for the keystore asset.
args(dict): Dictionary with the following required parameters:
workspace_id (int): Mandatory. The id of the workspace to list asset from.
asset_id (int): Mandatory. The id of the asset.
keystore_password (str): Optional. The keystore password.
key_passwords (dict): Optional. The dictionary of key alias x password.
- upload: Create a new asset from file.
Action result contains tracking id to track the create asset process. Use tracking tool to track it.
Creation of the asset is finished, when tracking status is 'FINISHED'. If creation fails, tracking status is 'FAILED'.
args(dict): Dictionary with the following required parameters:
workspace_id (int): Mandatory. The id of the workspace to store the asset.
file_path (int): Mandatory. The full file path to the file for upload.
Asset Schema:
{'properties': {'id': {'description': 'The unique identifier of the asset', 'title': 'Id', 'type': 'integer'}, 'name': {'description': 'The name of the asset', 'title': 'Name', 'type': 'string'}, 'type': {'description': 'The type of the asset', 'title': 'Type', 'type': 'string'}, 'primaryMetadata': {'anyOf': [{'additionalProperties': True, 'type': 'object'}, {'type': 'null'}], 'default': None, 'description': 'The asset metadata', 'title': 'Primarymetadata'}}, 'required': ['id', 'name', 'type'], 'title': 'Asset', 'type': 'object'}
Asset create action result schema:
{'properties': {'tracking_id': {'description': 'Action tracking id', 'title': 'Tracking Id', 'type': 'string'}}, 'required': ['tracking_id'], 'title': 'ActionResult', '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_asset"
}
}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 |