CORS API
The CORS API Definition (version 1.0.0).
Download the OpenAPI definition (YAML)
Security schemes
BasicAuth: HTTP basic
OAuth2: oauth2
authorizationCode flow, token URL https://localhost:9443/oauth2/token, authorization URL https://localhost:9443/oauth2/authorize
CORS origins
Retrieve the CORS origins
GET /cors/origins
This API provides the capability to retrieve the list of the allowed CORS origins for the tenant.
Scope(Permission) required: internal_cors_origins_view
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | CORSOriginsGetResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Application associations
Retrieve the Applications associated with a CORS origin by ID
GET /cors/origins/{cors-origin-id}/applications
This API provides the capability to retrieve the Applications associated with a CORS origin by ID.
Scope(Permission) required: internal_cors_origins_view
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
cors-origin-id | path | string | Yes | ID of a CORS origin |
Responses
| Code | Description | Schema |
|---|---|---|
200 | Successful Response | CORSOriginApplicationsGetResponse |
400 | Bad Request | Error |
401 | Unauthorized | |
403 | Forbidden | |
404 | Not Found | Error |
500 | Server Error | Error |
Schemas
Error
Type: object
4 properties
| Name | Type | Required | Description |
|---|---|---|---|
code | string | ||
message | string | ||
description | string | ||
traceId | string |
CORSOriginsGetResponse
Type: array of CORSOriginObject
CORSOriginObject
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | The CORS resource ID. | |
url | string | Yes | The CORS origin. |
CORSOriginApplicationsGetResponse
Type: array of CORSApplicationObject
CORSApplicationObject
Type: object
2 properties
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The application resource ID. Default: |
name | string | Yes | The application name. Default: |
Was this page helpful?