-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #115 from f5devcentral/v20_update
module 6 edits
- Loading branch information
Showing
19 changed files
with
172 additions
and
100 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,56 @@ | ||
Accessing the BIG-IP CM API | ||
Accessing the BIG-IP Central Manager API | ||
================================================================================ | ||
|
||
|
||
Log into Central Manager UI | ||
Log into Central Manager (CM) GUI | ||
-------------------------------------------------------------------------------- | ||
|
||
The next step is to log into the BIG-IP Central Manager UI. In a purely | ||
programmatic sense this is not expressly required, but we will use it in | ||
this lab to provide visual cues to successful API deployment. You will | ||
be able to see and interact with the applications created from the API. | ||
In a purely programmatic sense, it not required to log into the BIG-IP Central | ||
Manager UI. However, you will use it in in this lab to provide visual feedback | ||
on successful API deployment. You will be able to see and interact with the | ||
application created from the API. | ||
|
||
#. From within the UDF interface, navigate to the **BIG-IP-Next-CM** instance and find the **GUI** access link. | ||
.. note:: | ||
Skip this section if you are still logged into the BIG-IP CM GUI from the previous lab module. | ||
|
||
#. Clicking this link opens a new browser tab to the CM logon screen. | ||
|
||
#. Provide the credentials to log in. | ||
#. Refer to section 3.1 of this Lab Guide to access and log into the BIG-IP CM GUI. | ||
|
||
#. On the home screen, click the **Manage Applications** button. | ||
|
||
We will come back to the CM UI later. Let's now move on to using the CM API. | ||
You will come back to the BIG-IP CM GUI later. Let's now move on to using the BIG-IP CM API. | ||
|
||
|
||
Login to Central Manager via API Request | ||
Log into Central Manager via API Request | ||
-------------------------------------------------------------------------------- | ||
|
||
#. API requests to CM require an **Authorization: Bearer** token. To get that token you first need to make a login POST request to CM with your CM username and password. | ||
API requests to BIG-IP CM require an **Authorization: Bearer** token. To get that token you first need to make a login POST request to BIG-IP CM with your username and password. | ||
|
||
.. note:: | ||
All of the following API calls will minimally include a **{{CM}}** variable value. This is a variable reference that points to a value in the included environments file. You can view these environment values in the Thunder client by navigating to the **Env** tab in the top left of the Thunder client navigation bar in Visual Studio Code, and then clicking on **sslo-environment**. Both user-defined variables, and variables captured from API responses are saved here. | ||
Here is the what that API request looks like: | ||
|
||
.. code-block:: text | ||
POST https://{{CM}}/api/login | ||
Content-Type: application/json | ||
{ | ||
"username": "{{CM username}", | ||
"password": "{{CM password}" | ||
} | ||
A similar API request has already been created for you and is stored in the SSL Orchestrator Collection. | ||
|
||
.. code-block:: text | ||
#. In the **Create SSLO Deployment** folder, click on the **CM Login** request to select it. | ||
|
||
POST https://{{CM}}/api/login | ||
Content-Type: application/json | ||
.. image:: ./images/login-1.png | ||
|
||
{ | ||
"username": "{{CM username}", | ||
"password": "{{CM password}" | ||
} | ||
|
||
#. Click on the **Send** button to submit the request to the BIG-IP CM API. | ||
|
||
This request returns a JSON payload with an **access_token** value that you will use for subsequent **Authorization: Bearer** token requests. The token will expire after a few minutes, so it may be necessary to regenerate this request periodically and fetch a new bearer token for subsequent API calls. | ||
|
||
This request returns a JSON payload with an **access_token** value that you will use for subsequent **Authorization: Bearer** token requests. | ||
|
||
.. image:: ./images/login-2.png | ||
|
||
.. note:: | ||
The token will expire after a few minutes, so it may be necessary to regenerate this request periodically and fetch a new bearer token for subsequent API calls. | ||
|
Oops, something went wrong.