API Server CLI is contained in contrailcli
executable.
It consists of following commands:
show
list
sync
set
rm
delete
schema
Show command shows data of specified resource.
contrailcli show virtual_network first-uuid
Invoke command with empty schema identifier in order to show possible usages:
contrailcli show
List command lists data of specified resources.
There are also multiple parameters available, such as --filters
and --fields
. Display them with contrailcli list -h
command.
contrailcli list virtual_network
Invoke command with empty schema identifier in order to show possible usages:
contrailcli list -c integration/contrailcli.yml
Sync command creates or updates resources with data defined in given YAML file. It creates new resource for every not already existing resource.
contrailcli sync pkg/client/testdata/vns.yml
Set updates properties of specified resource.
contrailcli set virtual_network first-uuid "external_ipam: true" -c integration/contrailcli.yml
Invoke command with empty schema identifier in order to show possible usages:
contrailcli set
Rm removes a resource with specified UUID.
contrailcli rm virtual_network second-uuid
Rm command output is empty on successful operation.
Invoke command with empty schema identifier in order to show possible usages:
contrailcli rm
Delete removes resources specified in given YAML file.
contrailcli delete pkg/client/testdata/vns.yml
Delete command returns no output.
Schema command shows schema for specified resource.
contrailcli schema virtual_network