VADP¶
For the VADP collection resource, you can use an object value to return another value for the same object.
Getting a {vadpId}
¶
IBM Spectrum Protect Plus assigns an ID {vadpId}
to each VADP proxy.
Method and URI: To convert the value of an object for a VADP proxy, use a GET method with a URI:
GET https://{hostname|IP}/api/vadp
Path: Response body (JSON) > vadps
> ipAddr
& id
Example: Assume that you added a VADP proxy (IPv4 address 10.0.2.1) to IBM Spectrum Protect Plus. A Python snippet that is similar to the following example can be used to return its ID, 2102:
object_name = "10.0.2.1"
_response = requests.get('https://' + spp_ipv4 + '/api/vadp',
headers=..., verify=...)
_response_json = json.loads(_response.text) # Convert to JSON
object_json = _response_json['vadps']
for keys in object_json:
if keys['ipAddr'] == object_name:
object_id = keys['id']
print(object_id)
2102