Vapi Metadata Cli Command get
Retrieves information about a command including information about how to execute that command.
Request body for invoking operation: get
{
"identity": {
"path": "string",
"name": "string"
}
}
The Vapi Metadata Cli Command Identity schema uniquely identifies a command in the CLI commands tree.
Information about the command including information about how to execute that command.
{
"identity": {
"path": "string",
"name": "string"
},
"description": "string",
"service_id": "string",
"operation_id": "string",
"options": [
{
"long_option": "string",
"short_option": "string",
"field_name": "string",
"description": "string",
"type": "string",
"generic": "string"
}
],
"formatter": "string",
"output_field_list": [
{
"structure_id": "string",
"output_fields": [
{
"field_name": "string",
"display_name": "string"
}
]
}
]
}
Basic command identity.
The text description displayed to the user in help output.
The service identifier that contains the operations for this CLI command.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.vapi.service. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.vapi.service.
The operation identifier corresponding to this CLI command.
When clients pass a value of this schema as a parameter, the property must be an identifier for the resource type: com.vmware.vapi.operation. When operations return a value of this schema as a response, the property will be an identifier for the resource type: com.vmware.vapi.operation.
The input for this command.
The formatter to use when displaying the output of this command.
For more information see: Vapi Metadata Cli Command FormatterType.
If not present, client can choose a default output formatter.
List of output structure name and output field info.
if a command corresponding to identity doesn't exist.
{
"messages": [
{
"id": "string",
"default_message": "string",
"args": [
"string"
],
"params": {
"params": {
"s": "string",
"dt": "string",
"i": 0,
"d": "number",
"l": "Vapi Std NestedLocalizableMessage Object",
"format": "string",
"precision": 0
}
},
"localized": "string"
}
],
"data": {},
"error_type": "string"
}
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"identity:"object"}' https://{api_host}/api/vapi/metadata/cli/command?action=get