DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1

Figure 11-8 AMP Console: Creating API Credentials


Once this is done, an API client ID/key pair is generated.
It looks something like this:


Client ID: deadbeef123448ccc00d
Client key: XXXXXXXX-YYYY-ZZZZ-0000-e384ef2dxxxx

Using the API client ID and key, you can now make the
API calls as follows:


Click here to view code image


https://<clientID>:<clientKEY>@<api_endpoint>

Also, you can use basic HTTP authentication encoding
for the client ID and key and the Authorization header.
For the client ID and key generated, the credential is
Base64 encoded as
"ZGVhZGJlZWYxMjM0NDhjY2MwMGQ6WFhY
WFhYWFgtWVlZWS1aWlpaLTAwMDAtZTM4NG
VmMmR4eHh4", and the header looks as follows:


Click here to view code image


Authorization: Basic
ZGVhZGJlZWYxMjM0NDhjY2MwMGQ6WFhYWFhYWFgt
WVlZWS1aWlpaLTAwMDAtZTM4NGVmMmR4eHh4

Now let’s look at a couple of examples of the AMP for
Endpoints API.

Free download pdf