Managing Entitlements Sets

Administrative APIs for managing entitlements sets

The standard create, read, update and delete management operations are performed by calling the addEntitlementsSet, getEntitlementsSet or listEntitlementsSets, setEntitlementsSet, and removeEntitlementsSet APIs respectively.

Common Entitlements Sets Types

# An entitlement
type Entitlement {
  # Name of the entitlement
  name: String!

  # Optional description of the entitlement
  description: String

  # Value of the entitlement. Type Float to allow for values
  # values larger than possible with Int. Value is a
  # positive integer.
  value: Float!
}

# A set of entitlements
type EntitlementsSet {
  # Time of initial creation of an entitlements set in milliseconds
  # since epoch. Number is integral, float type provides sufficient
  # precision.
  createdAtEpochMs: Float!

  # Time of most recent update of an entitlements set in milliseconds
  # since epoch. Number is integral, float type provides sufficient
  # precision.
  updatedAtEpochMs: Float!

  # Version of the entitlements set. Incremented each time an update is made.
  version: Int!

  # Name of the entitlements set.
  name: String!

  # Optional description of the entitlements set.
  description: String

  # Entitlements conferred by this entitlements set.
  entitlements: [Entitlement!]!
}

Add a New Entitlements Set

A new entitlements set can be added to the system by calling the addEntitlementsSet mutation.

Possible Errors

  • InvalidEntitlementsError will be returned if an entitlement name is not a recognized entitlement.

  • ServiceError will be returned for internal errors.

Adding a new entitlements set using SDK.

Get an Entitlements Set

Call the getEntitlementsSet query to retrieve an entitlements set by name.

Possible Errors

  • ServiceError will be returned for internal errors.

Retrieving an entitlements set using SDK.

List all Entitlements Sets

Call the listEntitlementsSet query to list all of the entitlements sets in the system. The results list is paginated with a page size of 10. To retrieve all results your application must implement the following algorithm.

Possible Errors

  • ServiceError will be returned for internal errors.

Listing entitlements sets using SDK.

Update an Existing Entitlements Set

Call the setEntitlementsSet mutation to update the contents of an existing entitlements set. The updated entitlements set is returned.

Possible Errors

  • InvalidEntitlementsError will be returned if an entitlement name is not a recognized entitlement.

  • ServiceError will be returned for internal errors.

Updating an entitlements set using SDK.

Remove an Entitlements Set

Call the removeEntitlementsSet mutation to remove an existing entitlements set by name. The removed entitlements set is returned on success. null is returned if the named entitlements set cannot be found.

Possible Errors

  • EntitlementsSetInUseError will be returned if any entitlements sequences exist that reference the entitlements set

  • ServiceError will be returned for internal errors.

Removing an entitlements set using SDK.

Last updated