[openstack-dev] Create a Volume type using OpenStack

Duncan Thomas duncan.thomas at gmail.com
Tue May 8 11:18:36 UTC 2018


If you're using the cinder CLI (aka python-cinderclient) then if you
run with --debug, then you can see the REST calls used.

I would assume the the unified openstack CLI client has a similar mode.

On 8 May 2018 at 12:13, Hari Prasanth Loganathan
<hariprasanth.l at msystechnologies.com> wrote:
> Hi Team,
>
> 1) I am able to list all the project using the OpenStack REST API,
>
>   http://{IP_ADDRESS}:5000/v3/auth/projects/
>
> But as per the documentation of /v3/ API's in OpenStack
> (https://developer.openstack.org/api-ref/block-storage/v3/index.html#volumes-volumes),
>
> I need API's to
> i) list all the Volume types in the OpenStack
> ii) I need API's to create the Volume types in the OpenStack
>
> I am able to create via CLI, I need to perform the same using API
> Create Volume Type
> openstack volume type create ${poolName}
> cinder type-key "${poolName}" set storagetype:pool=${poolName}
> volume_backend_name=rbd-${poolName}
>
>
> I am able to create via CLI, I need to perform the same using API. Please
> help me in this.
>
>
> Thanks,
> Hari
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>



-- 
Duncan Thomas



More information about the OpenStack-dev mailing list