Software Development Kit (SDK) and API Discussions

create volume in cluster-mode

barnabegailliard
views-count 3096 Views

Hello,

I lookup to create volume in a cluster-mode by api.

But, i can't find the api to create a volume and attach to a vserver.

There is an api to create the volume or i have to use a cli to create it ?

Best regards.

Barnabé

2 REPLIES 2

Re: create volume in cluster-mode

zulanch
views-count 3097 Views

Hi Barnabé,

The volume-create API is a Vserver API in Clustered ONTAP. You connect to a Vserver and then run the volume-create API to create a volume on that Vserver. Or, alternatively, you can connect to the Administrative Vserver on the Cluster Management interface and use Vserver tunneling (NaServer.setVserver()) to tunnel the volume-create API to your desired Vserver.

You might find the sample code included in the SDK helpful. It has an example of creating volumes using either method described above.

Thanks,

Ben

View solution in original post

Re: create volume in cluster-mode

barnabegailliard
views-count 3097 Views

Hello Ben,

Thanks for your answer, it's work.

I haven't seen that the way to create a volume is done by a vserver not by the cluster.

Thanks,

Barnabé

G2 Review Banner
All Community Forums
Public