Skip to main content
Cloud has the newest features. Some may not be in a release yet; the newest release is Identity & Access Management 7.3.0.

Export API

Download OpenAPI (YAML)Version 1.0

Base URL: https://localhost:8090

This API exports Resources as combined YAML in JSON responses.

Download the OpenAPI definition (YAML)

Security schemes​

OAuth2: oauth2

clientCredentials flow, token URL /oauth2/token

1 scopes
ScopeDescription
systemFull system access

Export​

Export all declared resources as a combined YAML document.

Export resources as JSON​

POST /export

Exports the requested resources and returns a JSON response containing the combined YAML export content and the generated .env file content.

Scopes: system

Request body (required): application/json

Schema: ExportRequest

19 properties
NameTypeRequiredDescription
applicationsarray of string

IDs of applications to export, or ["*"] for all.

connectionsarray of string

IDs of connections (identity providers and notification senders) to export, or ["*"] for all.

userTypesarray of string

IDs of user types to export, or ["*"] for all.

agentTypesarray of string

IDs of agent types to export, or ["*"] for all.

organizationUnitsarray of string

IDs of organization units to export, or ["*"] for all.

projectsarray of string

IDs of projects to export, or ["*"] for all. Only a Control Plane serves projects.

usersarray of string

IDs of users to export, or ["*"] for all.

groupsarray of string

IDs of groups to export, or ["*"] for all.

resourceServersarray of string

IDs of resource servers to export, or ["*"] for all.

authorizationDetailTypesarray of string

IDs of RFC 9396 authorization details types to export, or ["*"] for all.

rolesarray of string

IDs of roles to export, or ["*"] for all.

flowsarray of string

IDs of flows to export, or ["*"] for all.

translationsarray of string

IDs of translations to export, or ["*"] for all.

layoutsarray of string

IDs of layouts to export, or ["*"] for all.

themesarray of string

IDs of themes to export, or ["*"] for all.

credentialConfigurationsarray of string

IDs of OpenID4VCI credential configurations to export, or ["*"] for all.

presentationDefinitionsarray of string

IDs of OpenID4VP presentation definitions to export, or ["*"] for all.

notificationTemplatesarray of string

IDs of notification templates to export, or ["*"] for all.

optionsExportOptions

Configuration options that control export behavior.

Responses

CodeDescriptionSchema
200

Combined YAML and environment variable export

JSONExportResponse
400

Bad request

Error
401

Unauthorized - missing or invalid authentication token

Error
500

Internal server error

Error

Schemas​

ExportRequest​

Type: object

Specifies which resources to export. Each field accepts a list of resource IDs, or ["*"] to export all resources of that type.

19 properties
NameTypeRequiredDescription
applicationsarray of string

IDs of applications to export, or ["*"] for all.

connectionsarray of string

IDs of connections (identity providers and notification senders) to export, or ["*"] for all.

userTypesarray of string

IDs of user types to export, or ["*"] for all.

agentTypesarray of string

IDs of agent types to export, or ["*"] for all.

organizationUnitsarray of string

IDs of organization units to export, or ["*"] for all.

projectsarray of string

IDs of projects to export, or ["*"] for all. Only a Control Plane serves projects.

usersarray of string

IDs of users to export, or ["*"] for all.

groupsarray of string

IDs of groups to export, or ["*"] for all.

resourceServersarray of string

IDs of resource servers to export, or ["*"] for all.

authorizationDetailTypesarray of string

IDs of RFC 9396 authorization details types to export, or ["*"] for all.

rolesarray of string

IDs of roles to export, or ["*"] for all.

flowsarray of string

IDs of flows to export, or ["*"] for all.

translationsarray of string

IDs of translations to export, or ["*"] for all.

layoutsarray of string

IDs of layouts to export, or ["*"] for all.

themesarray of string

IDs of themes to export, or ["*"] for all.

credentialConfigurationsarray of string

IDs of OpenID4VCI credential configurations to export, or ["*"] for all.

presentationDefinitionsarray of string

IDs of OpenID4VP presentation definitions to export, or ["*"] for all.

notificationTemplatesarray of string

IDs of notification templates to export, or ["*"] for all.

optionsExportOptions

Configuration options that control export behavior.

ExportOptions​

Type: object

Configuration options that control export behavior.

5 properties
NameTypeRequiredDescription
includeMetadataboolean

When true, includes metadata such as creation dates and IDs.

Default: false

includeDependenciesboolean

When true, automatically exports related dependent resources.

Default: false

formatstring

Output format for individual resource files. Only yaml is currently supported.

Allowed values: yaml. Default: yaml

folderStructureFolderStructureOptions

Controls how exported files are organized within the output.

paginationPaginationOptions

Pagination settings for bulk exports.

FolderStructureOptions​

Type: object

Controls how exported files are organized within the output.

3 properties
NameTypeRequiredDescription
groupByTypeboolean

When true, creates a separate sub-folder for each resource type.

Default: false

customStructureobject

Maps resource types to custom folder paths.

fileNamingPatternstring

Pattern for naming exported files. Supports ${name}, ${id}, and ${type} placeholders.

PaginationOptions​

Type: object

Pagination settings for bulk exports.

2 properties
NameTypeRequiredDescription
pageinteger

Page number (1-based).

limitinteger

Maximum number of resources per page.

ExportResponse​

Type: object

Legacy internal export model with individual files and summary. Public JSON endpoints return JSONExportResponse.

6 properties
NameTypeRequiredDescription
filesarray of ExportFileYes

List of exported resource files.

envFileEnvironmentFile

Generated environment file metadata and content. Present when template variables are detected in exported resources, otherwise omitted (or null in internal JSON serialization paths).

envFile.fileNamestringYes

Always .env.

envFile.contentstringYes

Key=value pairs, one per line, with empty values. Variable names correspond directly to uppercase template parameter names.

envFile.sizeinteger (int64)

File size in bytes.

summaryExportSummary

Metadata about the export operation. totalFiles and totalSizeBytes include the .env file when it is generated.

JSONExportResponse​

Type: object

JSON response returned by the export endpoints. The resources field contains the full combined YAML export and environment_variables contains the generated .env file content.

2 properties
NameTypeRequiredDescription
resourcesstringYes

Combined YAML content for all exported resources.

environment_variablesstringYes

Generated .env file content. Empty when no template variables are present.

ExportFile​

Type: object

A single exported resource file.

6 properties
NameTypeRequiredDescription
fileNamestringYes

Name of the file, including extension.

contentstringYes

File content as a UTF-8 string.

folderPathstring

Relative path within the export archive where this file is placed. Empty for files at the root.

resourceTypestring

The resource type this file represents.

resourceIdstring

ID of the exported resource.

sizeinteger (int64)

File size in bytes.

EnvironmentFile​

Type: object

A generated .env file whose variable names are derived from the uppercase template variable names (e.g. {{.CLIENT_SECRET}}, {{- range .REDIRECT_URIS}}) found in the exported resource files. The content is returned in JSONExportResponse.environment_variables when template variables are detected, and is empty otherwise.

3 properties
NameTypeRequiredDescription
fileNamestringYes

Always .env.

contentstringYes

Key=value pairs, one per line, with empty values. Variable names correspond directly to uppercase template parameter names.

sizeinteger (int64)

File size in bytes.

ExportSummary​

Type: object

Metadata about the export operation. totalFiles and totalSizeBytes include the .env file when it is generated.

6 properties
NameTypeRequiredDescription
totalFilesinteger

Total number of files in the export, including the .env file when present.

totalSizeBytesinteger (int64)

Combined size of all exported files in bytes, including the .env file when present.

exportedAtstring (date-time)

ISO 8601 timestamp of when the export was performed.

resourceTypesobject

Map of resource type to the count of exported resources.

errorsarray of ExportError

Non-fatal errors encountered during export. Resources that produced an error are excluded from the output files.

paginationPaginationInfo

Pagination metadata included in the export summary.

ExportError​

Type: object

A non-fatal error that occurred while exporting a specific resource.

4 properties
NameTypeRequiredDescription
resourceTypestring
resourceIdstring
errorstring
codestring

PaginationInfo​

Type: object

Pagination metadata included in the export summary.

4 properties
NameTypeRequiredDescription
pageinteger
limitinteger
totalPagesinteger
hasMoreboolean

Error​

Type: object

Standard error response.

3 properties
NameTypeRequiredDescription
codestringYes

Error code. Codes follow the EXP-XXXX convention.

messageI18nMessageYes

Internationalized message with translation key and default value.

descriptionI18nMessage

Internationalized message with translation key and default value.

I18nMessage​

Type: object

Internationalized message with translation key and default value.

2 properties
NameTypeRequiredDescription
keystringYes

Translation key for fetching localized message.

defaultValuestringYes

Default message in English (fallback).

Was this page helpful?