Public Network Service API
All Network Service APIs require a valid authentication token, this token can be obtained in two ways.
- When using a refresh token, an authentication token can be obtained by issuing a
POSTlike this:
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
https://console.cloud.broadcom.com/csp/gateway/am/api/auth/api-tokens/authorize \
-d "api_token=string"
- The
api_tokenused to get a valid authentication token can be obtained after successful login to following URL via a web browser: https://console.cloud.broadcom.com/my-account/api-tokens.
- When using client credentials, an authentication token can be obtained by issuing a
POSTlike this:
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d 'grant_type=client_credentials& \
client_id=<OAuth-client-id>&
client_secret=<client-secret>&
orgId=<org-id>'
https://console.cloud.broadcom.com/csp/gateway/am/api/auth/token
- The
client_idandclient_secretused to get a valid authentication token can be obtained from the 'OAuth Apps' section in the CSP settings for theorgIdorganization.