vinfra domain properties create
Create a property sheet for the domain:
usage: vinfra domain properties create --key <key> --data <data> [--access <access>] <domain>
--key <key>
- Key name
--data <data>
- Property sheet. Should be a valid JSON object.
--access <access>
-
Access type:
pub
: grant read access to all users (authentication is not required)auth
: grant read access to authenticated usersdomain
: grant read access to domain users
-
The superadmin and domain admin have write access.
<domain>
- Domain name or ID
Example 1:
# vinfra domain properties create --key myproperty mydomain \ --data '{"key1": "value1", "key2": "value2"}' --access pub Operation successful.
This command creates a property sheet with the key myproperty
that is accessible by all users.
Example 2:
# vinfra domain properties create --key allow_live_resize mydomain \ --data '{"enabled":true}' Operation successful.
This command creates the property allow_live_resize
that enables CPU and RAM hot plug for virtual machines within the domain mydomain
.