Placement v1 Commands

resource class

resource class create

Create a new resource class.

This command requires at least --os-placement-api-version 1.2.

openstack resource class create <name>
name

Name of the resource class

This command is provided by the osc-placement plugin.

resource class delete

Delete the resource class identified by <name>.

Only custom resource classes can be deleted.

This command requires at least --os-placement-api-version 1.2.

openstack resource class delete <name>
name

Name of the resource class

This command is provided by the osc-placement plugin.

resource class list

Return a list of all resource classes.

This command requires at least --os-placement-api-version 1.2.

openstack resource class list
    [--sort-column SORT_COLUMN]
    [--sort-ascending | --sort-descending]
--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), column names are case-insensitive and accept underscores for spaces, can be repeated

--sort-ascending

sort the column(s) in ascending order

--sort-descending

sort the column(s) in descending order

This command is provided by the osc-placement plugin.

resource class set

Create or validate the existence of single resource class.

Unlike openstack resource class create, this command also succeeds if the resource class already exists, which makes this an idempotent check or create command.

This command requires at least --os-placement-api-version 1.7.

openstack resource class set <name>
name

Name of the resource class

This command is provided by the osc-placement plugin.

resource class show

Return a representation of the resource class identified by <name>.

This command requires at least --os-placement-api-version 1.2.

openstack resource class show <name>
name

Name of the resource class

This command is provided by the osc-placement plugin.