address update

This commit is contained in:
muassif 2021-08-21 17:16:26 +04:00 committed by GitHub
parent cd205b5e1d
commit bb1b4fd49e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@ headers = {
'Authorization': 'Bearer {}'.format(token)
}
url1 = "https://10.52.90.90:8443/nfm-p/rest/api/v1/managedobjects/searchWithFilter"
url1 = "https://10.52.90.110:8443/nfm-p/rest/api/v1/managedobjects/searchWithFilter"
payload1 = json.dumps({
"fullClassName": "equipment.PhysicalPort",
"filterExpression": "siteId = '10.172.172.172' AND portName='1/1/1'",
@ -18,4 +18,4 @@ payload1 = json.dumps({
})
response = requests.request("POST", url1, headers=headers, data=payload1, verify=False)
print(response.json()[0]['objectFullName'])
print(response.json()[0]['description'])
print(response.json()[0]['description'])