Perform your first API call in NetApp Console local deployment
Learn how to obtain the required authentication information and perform a REST API call in NetApp Console local deployment.
Step 1: Obtain the access tokens
You'll need an access token to use the Console local deployment REST APIs. The tokens need to be included with every API call.
Step 2: Create the required request headers
You need to create several HTTP request headers and include them with each API call. The following table shows the request headers used by the Console local deployment REST APIs.
| Request Header | Description |
|---|---|
Authorization |
This header contains a bearer token issued by the local identity provider. |
Content-Type |
This representation header is used to indicate the original media type of the resource. |
Accept |
The server automatically returns content in JSON format if the Accept header is not specified. |
Step 3: Issue a REST API call
You can use curl or the programming language of your choice to issue a REST API call. The following example shows a curl request.
The following example lists all the fleets from the Assets service:
curl --request GET \
--url https://<host>/v1/services/assets/organizations/<organization_ID>/fleets \
--header 'authorization: Bearer <access_token>'