Software Development Kit (SDK) and API Discussions

Ontap java api volume modify

Sh-team
1,465 Views

hey I'm trying to use the volume modify operation to modify volume attributes and the api fails to modify it , I checked the volumeModifyResponse class and it's empty. 

Also I checked the values on the cli and it remains the same as before .

Can anyone help me figure out if something is needed for this function or is it error in the api.

I'm using the ontap nmsdk 9.7 

2 REPLIES 2

hmoubara
1,328 Views

Hello @Sh-team 

 

Can you share how you using the function and which attributes are you trying to modify?

 

Thanks

Sh-team
1,258 Views

Hay I'm trying to modify the snapshot policy attributes 

And I'm doing it like that :

 

volumeSnapshotAttributs.setSnapshotPolicy(policy name);

VolumeAttributes.setVolumeSnapshotAttributes(volumeSnapshotAttrobutes);

VolumeToModifyAttributes=this.getvolume(volumename,vserver) //getting the volume attributes

VolumeModifyItrRequest.setAttributes(volumeSnapshotAttributes);

VolumeModifyItrRequest.setQuery(volumeToModifyAttributes);

ExecutionManager.instance().execute(cluster,volumeModifyItrRequest);//this function contact the cluster and runs the query 

Public