Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
REST API: How is the way attach Cloud tier target to Aggregate
2021-12-17
10:10 PM
1,995 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Using PCL, I could successfully create CloudTarget. But couldn't atttach to existing aggregae.
-----
cloudstore = CloudStore.from_dict({
"target" : {"name" : "sgws_1" },
})
cloudstore.post()
-----
Error is followings:
NetAppRestError: Could not compute the location of the CloudStore collection. Values for ['aggregate.uuid'] are required. Caused by AttributeError("The 'aggregate' field has not been set on the CloudStore. Try refreshing the object by calling get().")
Where I can describe "aggregate.uuid"?
Solved! See The Solution
1 ACCEPTED SOLUTION
ogatat has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I solved the problem with the following!
-----
cloudstore = CloudStore("fb91b0a6-5fbb-11ec-be69-00a0985c5d5b")
cloudstore.target = {"name" : "sgws_1" }
cloudstore.post()
2 REPLIES 2
ogatat has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I solved the problem with the following!
-----
cloudstore = CloudStore("fb91b0a6-5fbb-11ec-be69-00a0985c5d5b")
cloudstore.target = {"name" : "sgws_1" }
cloudstore.post()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, this solution is correct. If you want to, you can combine the first two lines to make your solution look something like this:
cloudstore = CloudStore("fb91b0a6-5fbb-11ec-be69-00a0985c5d5b", target={"name": "sgws_1"})
cloudstore.post()
which would mean the same thing.
