Exporting Full User List through PM Portal API
search cancel

Exporting Full User List through PM Portal API

book

Article ID: 265691

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

1) Is there any direct API to get full user list from broadcom DX netops 

i have gone through the official API document but did not find any API

currently im using API to get user list http://<host>/pc/center/webservice/users/en-us

2) I'm trying to run this API from python and postman, the GET request always gives response in XML format

is it possible to get output in JSON format

Environment

Dx NetOps Performance Management any version

Resolution

First, here is a curl command to get a formatted user list:

curl --request GET --user admin:admin -k https://<portal>:8182/pc/center/webservice/users/en-US/  | xmllint --format -

... that is the only REST endpoint to get a full user list out of performance management

 

json is not supported

# curl -kv -X GET -H "Accept: application/json" --user admin:admin -k https://<capc>:8182/pc/center/webservice/users/en-US/ |more
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* About to connect() to trond-team-portal port 8182 (#0)
*   Trying xx.xxx.xx.xx...
* Connected to xxxxx (xx.xxx.xxx.xx) port 8182 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate:
*       subject: CN=xxx
*       start date: Dec 14 22:05:48 2022 GMT
*       expire date: Dec 14 22:05:47 2023 GMT
*       common name: xxx
*       issuer: CN=DX NetOps Edu Intermediate
* Server auth using Basic with user 'admin'
> GET /pc/center/webservice/users/en-US/ HTTP/1.1
> Authorization: Basic YWRtaW46YWRtaW4=
> User-Agent: curl/7.29.0
> Host: xxxx:8182
> Accept: application/json
>
HTTP/1.1 406 Not Acceptable