Skip to main content

REST APIs for 24.2.20 and 24.2.10

Pairing Profiles and Pairing Keys

The Public Stable API for pairing profiles gets, creates, updates, and deletes pairing profiles.

About Pairing Profiles and Keys

Pairing Profiles apply specific properties to workloads as they pair with the PCE, such as labels and the workload policy state.

When you configure a pairing profile, the pairing script contains a unique pairing key at the end of the script (activation code) that identifies the VEN securely so it can authenticate with the PCE. You can configure a pairing key for one-time use or more and set time and use limits.

The Pairing Key API can generate a new pairing key from a specified pairing profile.

Pairing Profile Methods

Functionality

HTTP

URI

Get a collection of pairing profiles.

GET

[api_version][org_href]/pairing_profiles

Get the specified pairing profile.

GET

[api_version][org_href]/pairing_profile_href

Create an individual pairing profile.

POST

[api_version][org_href]/pairing_profiles

Update an individual pairing profile.

PUT

[api_version][pairing_profile_href]

Delete an individual pairing profile.

DELETE

[api_version][pairing_profile_href]

Get Pairing Profiles

This method allows you to get a collection of all pairing profiles in your organization or just an individual pairing profile.

By default, the maximum number returned on a GET collection of pairing profiles is 500. For more than 500 pairing profiles, use Asynchronous GET Collection.

Create a Pairing Profile

This method creates an individual pairing profile. The only required parameter for the POST method is enabled; others are optional.

URI to Create a Pairing Profile

POST [api_version][org_href]/pairing_profiles

Update a Pairing Profile

To update a pairing profile, specify its HREF, which can be obtained from getting a collection of pairing profiles.

URI to Update a Pairing Profile

PUT [api_version][pairing_profile_href]
Delete a Pairing Profile

To delete an individual pairing profile, specify its HREF that you can obtain from a collection of pairing profiles.

URI to Delete a Pairing Profile

DELETE [api_version][pairing_profile_href]

Pairing Key API Method

Functionality

HTTP

URI

Create a pairing key

POST

[api_version][org_href]/pairing_profiles[pairing_profile_href] /pairing_key

Create a Pairing Key

You need a pairing profile HREF to pass as a parameter to create a pairing key. You can obtain the pairing profile HREF from the pairing profile page in the PCE web console.

A pairing key is governed by the parameters configured in the pairing profile.

URI to Create a Pairing Key

Obtain the pairing key HREF from the response body returned by an API call to get a collection of pairing keys.

POST [api_version][pairing_key_href]/pairing_key