Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Issue with VRA 7 Rest API to revert a snapshot

$
0
0

Hi All,

 

Did anyone try managing snapshots like create, revert and delete a snapshot using VRA 7 rest API's.

 

Below is the JSON request paylod, any idea what should the provider-SnapshotReference value should be when i am reverting a snapshot.

{

  "type": "com.vmware.vcac.catalog.domain.request.CatalogResourceRequest",

  "resourceId": "60c53ce6-f97d-4808-8742-b93f87c8a177",

  "actionId": "4b8c52ed-8d67-4c27-9c74-677e54790ce0",

  "description": null,

  "data": {

    "provider-SnapshotReference": null

  }

}

 

i am using a VRA 7 Java sdk for implementing this API call, and this is the error that i get everytime

[Rest Error]: {Status code: 400}, {Error code: 10101} , {Error Source: null},

{Error Msg: Invalid argument.}, {System Msg: Expected EntityReferenceDatum, not java.lang.String for Field: provider-SnapshotReference}

 

The snapshot already exists for my VM, this is the response for getCatalogResource call,

 

SNAPSHOT_LIST : MultipleLiteral[[ComplexLiteral[componentTypeId=com.vmware.csp.component.iaas.proxy.provider, componentId=null, classId=dynamicops.api.model.SnapshotViewModel, typeFilter=null, values=LiteralMap[values={SNAPSHOT_DESC=test123, SNAPSHOT_IS_CURRENT=true, SNAPSHOT_IS_MEMORY=true, SNAPSHOT_CREATION_DATE=Tue May 02 15:48:55 AEST 2017}]]]]

 

Can you please help me in fixing this issue ?


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>