Skip to main content

TenantsApi

MethodHTTP requestDescription
create_tenant_async_using_postPOST /api/web/v5/async/tenantsCreate a tenant asynchronously
create_tenant_using_postPOST /api/web/v4/tenantsCreate a tenant
get_create_tenant_async_result_using_getGET /api/web/v4/async/tenants/{id}/createresultGet the result of an asynchronous tenant creation operation
get_create_tenant_async_status_using_getGET /api/web/v4/async/tenants/{id}/createstatusGet the status of an asynchronous tenant creation operation
get_entitlement_usage_info_using_postPOST /api/web/v4/tenants/entitlements/usageLists a page of entitlement usage information
get_sp_identity_provider_using_getGET /api/web/v1/tenants/{id}/spidentityproviderGet Tenant Identity Provider and Service Provider OIDC Application for Tenant Management.
get_tenant_entitlement_using_getGET /api/web/v4/tenants/{tenantid}/entitlements/{type}Get an entitlement
get_tenant_entitlements_using_getGET /api/web/v4/tenants/{tenantid}/entitlementsGet entitlements for tenant
get_tenant_using_getGET /api/web/v4/tenants/{id}Get a tenant
get_tenants_page_using_postPOST /api/web/v4/tenantspagedLists a page of tenants
lock_tenant_using_putPUT /api/web/v4/tenants/{id}/lockLock a tenant
remove_tenant_using_deleteDELETE /api/web/v4/tenants/{id}Delete a tenant
set_sp_identity_provider_using_putPUT /api/web/v1/tenants/{id}/spidentityproviderSet Tenant Identity Provider and Service Provider OIDC Application for Tenant Management
set_tenant_entitlement_using_putPUT /api/web/v4/tenants/{tenantid}/entitlementsSet an entitlement
unlock_tenant_using_putPUT /api/web/v4/tenants/{id}/unlockUnlock a tenant

create_tenant_async_using_post

CreateTenantAsyncStatus create_tenant_async_using_post(create_tenant_parms)

Create a tenant asynchronously

Create a new tenant for a service provider. Caller requires the TENANTS:ADD permission from a service provider role.

Notes on CreateTenantParms attributes:

adminUser (UserParms):
  • The locale attribute is ignored if provided. It defaults to English for the first super administrator.
  • The status attributes is ignored if provided. It defaults to ACTIVE for the first super administrator.
  • The userId is required.

adminApiApplication (AdminApiApplicationParms):

  • The spRoleId attribute is not supported. An error is returned if provided.

entitlements (EntitlementParms):

  • The contractMode attribute is required. It must be either TRIAL or PRODUCTION.
  • The quantity attribute is required.
  • entitlements.issuance (EntitlementParms.IssuanceParms):
  • The entitlements.issuance attribute is required if you are creating an Issuance tenant.
  • The serviceBundles attribute is required. One service bundle (of those supported by the service provider contract) must be defined.
  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
create_tenant_parmsCreateTenantParms

Return type

CreateTenantAsyncStatus

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

create_tenant_using_post

CreateTenantResult create_tenant_using_post(create_tenant_parms)

Create a tenant

Create a new tenant for a service provider. Caller requires the TENANTS:ADD permission from a service provider role.
Notes on CreateTenantParms attributes:
adminUser (UserParms):

  • The locale attribute is ignored if provided. It defaults to English for the first super administrator.
  • The status attributes is ignored if provided. It defaults to ACTIVE for the first super administrator.
  • The userId is required.

adminApiApplication (AdminApiApplicationParms):

  • The spRoleId attribute is not supported. An error is returned if provided.

entitlements (EntitlementParms):

  • The contractMode attribute is required. It must be either TRIAL or PRODUCTION.
  • The quantity attribute is required.
  • entitlements.issuance (EntitlementParms.IssuanceParms):
  • The entitlements.issuance attribute is required if you are creating an Issuance tenant.
  • The serviceBundles attribute is required. One service bundle (of those supported by the service provider contract) must be defined.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
create_tenant_parmsCreateTenantParms

Return type

CreateTenantResult

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

get_create_tenant_async_result_using_get

CreateTenantResult get_create_tenant_async_result_using_get(id)

Get the result of an asynchronous tenant creation operation

Get the result of a tenant creation operation for a service provider. The results for a given operation can only be retrieved once. Caller requires the TENANTS:ADD permission from a service provider role.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe UUID of the create tenant operation whose results are to be fetched.

Return type

CreateTenantResult

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

get_create_tenant_async_status_using_get

CreateTenantAsyncStatus get_create_tenant_async_status_using_get(id)

Get the status of an asynchronous tenant creation operation

Get the status of a tenant creation operation for a service provider. Caller requires the TENANTS:VIEW permission from a service provider role.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe UUID of the create tenant operation whose status is be fetched.

Return type

CreateTenantAsyncStatus

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

get_entitlement_usage_info_using_post

UsageInfoPage get_entitlement_usage_info_using_post(search_parms)

Lists a page of entitlement usage information

Returns tenant usage information for the provided search parameters. Caller requires the TENANTS:VIEW permission. The following searchByAttributes are supported:

  • startTime: a mandatory String value representing an ISO-8601 date in UTC time (e.g., 2018-08-04T18:15:30). Allowed operators are: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL.
  • endTime: a String value representing an ISO-8601 date in UTC time (e.g., 2018-08-04T18:15:30). Allowed operators are: GREATER_THAN, GREATER_THAN_OR_EQUAL, LESS_THAN, LESS_THAN_OR_EQUAL.
  • tenantId: The UUID of the tenant. Allowed operators are: EQUALS.
  • isTrial: true or false. Allowed operator: EQUALS.
  • usageType: the type of entitlement: USERS, AUTHENTICATIONS, IDPROOFING, ISSUANCE. Allowed operator: EQUALS.

The orderByAttribute supports these attribute names: startTime.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
search_parmsSearchParms

Return type

UsageInfoPage

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

get_sp_identity_provider_using_get

SpIdentityProvider get_sp_identity_provider_using_get(id)

Get Tenant Identity Provider and Service Provider OIDC Application for Tenant Management.

Get Tenant Identity Provider and Service Provider OIDC Application for Tenant Management. Caller requires the SPIDENTITYPROVIDERS:VIEW permission.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe UUID of the tenant to be obtained.

Return type

SpIdentityProvider

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

get_tenant_entitlement_using_get

Entitlement get_tenant_entitlement_using_get(tenantid, type)

Get an entitlement

Get the specified entitlement for a tenant. Caller requires the SPENTITLEMENTS:VIEW permission from a service provider role.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
tenantidstrThe UUID of the tenant whose entitlement is to be fetched.
typestrThe type of entitlement (only USERS is supported).

Return type

Entitlement

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

get_tenant_entitlements_using_get

List[Entitlement] get_tenant_entitlements_using_get(tenantid)

Get entitlements for tenant

Get all entitlements for the specified tenant of the current service provider. Caller requires the SPENTITLEMENTS:VIEW permission from a service provider role.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
tenantidstrThe UUID of the tenant whose entitlements are to be fetched.

Return type

List[Entitlement]

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

get_tenant_using_get

Tenant get_tenant_using_get(id)

Get a tenant

Get the specified tenant for a service provider. Caller requires the TENANTS:VIEW permission from a service provider role.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe UUID of the tenant to be fetched.

Return type

Tenant

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

get_tenants_page_using_post

TenantsPage get_tenants_page_using_post(search_parms)

Lists a page of tenants

Returns tenants for the provided search parameters. Caller requires the TENANTS:VIEW permission. The following searchByAttributes are supported:

  • hostname: a String up to 100 characters. Allowed operators are: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH.
  • companyName: a String up to 100 characters. Allowed operators are: EQUALS, NOT_EQUALS, CONTAINS, NOT_CONTAINS, STARTS_WITH, ENDS_WITH.
  • contractMode: PRODUCTION, TRIAL, UNKNOWN. Allowed operator: EQUALS.
  • locked: true or false. Allowed operator: EQUALS.
  • serviceProvider: true or false. Allowed operator: EQUALS.
  • authenticationAccount: true or false. Allowed operator: EQUALS.
  • issuanceAccount: true or false. Allowed operator: EQUALS.
  • spIdp: true or false. Allowed operator: EQUALS.

The orderByAttribute supports these attribute names: hostname, companyName, contractMode, locked, serviceProvider, authenticationAccount, issuanceAccount, spIdp.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
search_parmsSearchParms

Return type

TenantsPage

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

lock_tenant_using_put

lock_tenant_using_put(id)

Lock a tenant

Lock the specified tenant for a service provider. Caller requires the TENANTS:EDIT permission from a service provider role.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe UUID of the tenant to be locked.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

remove_tenant_using_delete

remove_tenant_using_delete(id)

Delete a tenant

Delete the specified tenant for a service provider. Caller requires the TENANTS:REMOVE permission from a service provider role.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe UUID of the tenant to be removed.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

set_sp_identity_provider_using_put

SpIdentityProvider set_sp_identity_provider_using_put(id, sp_identity_provider_parms)

Set Tenant Identity Provider and Service Provider OIDC Application for Tenant Management

Set Tenant Identity Provider and Service Provider OIDC Application for Tenant Management. Caller requires the SPIDENTITYPROVIDERS:EDIT permission.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe UUID of the tenant to be updated.
sp_identity_provider_parmsSpIdentityProviderParms

Return type

SpIdentityProvider

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

set_tenant_entitlement_using_put

set_tenant_entitlement_using_put(tenantid, entitlement_parms)

Set an entitlement

Set the entitlement for the specified tenant. Caller requires the SPENTITLEMENTS:EDIT permission from a service provider role.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
tenantidstrThe UUID of the tenant whose entitlement is to be set.
entitlement_parmsEntitlementParms

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-

unlock_tenant_using_put

unlock_tenant_using_put(id)

Unlock a tenant

Unlock the specified tenant for a service provider. Caller requires the TENANTS:EDIT permission from a service provider role.

Example

  • Api Key Authentication (AdminAPIAuthentication):

Parameters

NameTypeDescriptionNotes
idstrThe UUID of the tenant to be unlocked.

Return type

void (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successful-
400Bad Request-
401Access denied-
403Forbidden-
404Not Found-
409Conflict-