Cisco Intersight

Number of APIs: 25

Cisco Intersight Qodex Collection

The Cisco Intersight Qodex Collection provides a subset of all Intersight calls. Cisco Intersight is based on the OpenAPI specification and as such a Qodex collection can be created directly from the OpenAPI specification.

However the OpenAPI specification does not provide the pre-requestion operation of siging the request. A request signed with the user's API Key ID and their Secret Key is needed to authenticate the request. Additionally, the pre-request script pre-processes the Body and URL Qodex variable prior to signing the request.

The pre-request script requires two variables, that must be in the current Qodex environment and named exactly as follows;

api-key - which is available in the Intersight Web interafce after a successful API Key creation. secret-key - which is the complete text of the SecretKet.txt file that is downloaded after a successful API Key creation.

With defined API Key environment variables the provided calls will work within the limits of your Intersight account. With respect to licensing and account capabilities.

The collection also contains some basic test that determine the success or failure of the request and is the request completed in a certain amount of time.

Several of the requests contain post-request tests to perform various activities

  • Update the Qodex console
  • Set Environment variables
  • Unset Environment variables

Cisco DevNet provides several Learning Labs and an Inersight Sandbox to get you started using these Qodex Calls.

Cisco DevNet resources

  1. Create Server Profile and Resources - UnAssign Compute Resource to Server Profile 'server-01' POST https://intersight.com/api/v1/server/Profiles/{{server-server-profile-01}}

  2. Device Claiming - Device Claim POST https://intersight.com/api/v1/asset/DeviceClaims

  3. Create Server Profile and Resources - Create Server VMedia Policy POST https://www.intersight.com/api/v1/vmedia/Policies

  4. Create Server Profile and Resources - Retrieve Server VMedia Policy by Moid GET https://intersight.com/api/v1/vmedia/Policies/{{server-vmedia-policy}}

  5. Create Server Profile and Resources - Create Server Boot Policy POST https://intersight.com/api/v1/boot/PrecisionPolicies

  6. Create Server Profile and Resources - Retrieve Server Boot Policy by Moid GET https://intersight.com/api/v1/boot/PrecisionPolicies/{{server-boot-from-local-disk-policy}}

  7. Create Server Profile and Resources - Create Server NTP Policy POST https://intersight.com/api/v1/ntp/Policies

  8. Create Server Profile and Resources - Retrieve NTP Policy by Moid GET https://intersight.com/api/v1/ntp/Policies/{{server-ntp-policy}}

  9. Create Server Profile and Resources - Retrieve 'server-01' Server Profile by Moid GET https://intersight.com/api/v1/server/Profiles/{{server-server-profile-01}}

  10. Create Server Profile and Resources - Create 'server-02' Server Profile POST https://www.intersight.com/api/v1/server/Profiles