Reputation: 395
I have a set of block volumes authorized to a host on datacenter DC1
. These volumes have been 'replicated' to datacenter DC2
. The 'replica' volumes (_REP) on DC2
have been authorized with a host on DC2
.
Now I want to find out this list of volumes for that given host.
Using list_instances() with allowedNetworkStorage and blockDevice masks as suggested here does not return the list of 'replica' volumes. It only lists the volume that were provisioned on DC2
and authorized for this host.
So, how can I get the list of 'replica'
volumes authorized for the host?
Thanks, ~ Urjit
Upvotes: 0
Views: 56
Reputation: 2757
Please, could you try to use: allowedNetworkStorageReplicas instead of allowedNetworkStorage, or you can use both:
Updated
I verified that the request returns the storage's name (but it means that the replication from the storage is attached), but if you wish to get the storage replication's username, try the following:
e.g:
id_mask = "mask[id, hostname, allowedNetworkStorageReplicas[replicationPartners[username]]]"
Upvotes: 0