occi -d -v
CLI: 4.3.1
API: 4.3.1
Core: 4.3.2
Adding the --debug
option to any of the following commands will produce a verbose output useful for debugging.
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--dump-model
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action list --resource os_tpl
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action describe --resource os_tpl
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action list --resource resource_tpl
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action describe --resource resource_tpl
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action create --resource compute --mixin $OS_TPL --mixin $RESOURCE_TPL --attribute occi.core.title="MyrOCCIVM"
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action create --resource compute --mixin $OS_TPL --mixin $RESOURCE_TPL --attribute occi.core.title="MyrOCCIVM" \
--context user_data="file://$ABSOLUTE_PATH_TO_FILE" --context public_key="file://$ABSOLUTE_PATH_TO_PUB"
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action list --resource compute
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action describe --resource compute
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action trigger --resource $RELATIVE_COMPUTE_URL --trigger-action stop
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action trigger --resource $RELATIVE_COMPUTE_URL --trigger-action start
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action create --resource storage --attribute occi.core.title="mystorage" --attribute occi.storage.size="1"
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action list --resource storage
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action describe --resource storage
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action link --resource $RELATIVE_COMPUTE_URL --link $RELATIVE_STORAGE_URL
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action unlink --resource $RELATIVE_STORAGELINK_URL
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action delete --resource $RELATIVE_STORAGE_URL
This is still specific for enabled backend!
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action create --resource network \
--mixin http://schemas.ogf.org/occi/infrastructure/network#ipnetwork \
--mixin http://opennebula.org/occi/infrastructure#network \
--attribute occi.core.title="mynetwork" --attribute occi.network.address="10.1.1.0/24" \
--attribute org.opennebula.network.bridge="onebr1"
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action list --resource network
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action describe --resource network
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action link --resource $RELATIVE_COMPUTE_URL --link $RELATIVE_NETWORK_URL
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action unlink --resource $RELATIVE_NETWORKINTERFACE_URL
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action delete --resource $RELATIVE_NETWORK_URL
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action delete --resource $RELATIVE_COMPUTE_URL
occi --endpoint $OCCI_HTTP_ENDPOINT --auth basic --username $USERNAME --password $PASSWORD \
--action create --resource compute --mixin $OS_TPL --mixin $RESOURCE_TPL --attribute occi.core.title="MyrOCCIVM" \
--link $RELATIVE_STORAGE_URL --link $RELATIVE_NETWORK_URL