mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
filter snapshot by owner
This commit is contained in:
@@ -99,7 +99,8 @@ func (self *SRegion) GetSnapshots(instanceId string, diskId string, snapshotName
|
||||
// filters = AppendSingleValueFilter(filters, )
|
||||
// }
|
||||
// owner by self
|
||||
// filters = AppendSingleValueFilter(filters, "owner-id", self)
|
||||
owner := "self"
|
||||
params.SetOwnerIds([]*string{&owner})
|
||||
if len(diskId) > 0 {
|
||||
filters = AppendSingleValueFilter(filters, "volume-id", diskId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user