UIPlugin
API response for a plugin instance (tenantId and internal fields omitted)
Properties
| Name | Type | Description | Notes |
|---|---|---|---|
| plugin_instance_id | str | Unique identifier of the plugin instance | [required] |
| alias | str | Tenant-unique alias for the plugin instance, normalized to lowercase | [required] |
| name | map[string]str | Localized string keyed by locale code. At least one non-empty locale entry is required on create/update. Conventionally includes en. | [required] |
| description | map[string]str | Localized string keyed by locale code. At least one non-empty locale entry is required on create/update. Conventionally includes en. | [required] |
| api_scopes | []str | OAuth scopes the plugin requests at registration | [required] |
| content_security_policies | map[string]List[str] | Map of directive name to allowlist values. Used for CSP, Permissions-Policy, and iframe-allow on create/update. Only platform allowlisted directives/keywords are accepted (see UMS validators). | [required] |
| permission_policy | map[string]List[str] | Map of directive name to allowlist values. Used for CSP, Permissions-Policy, and iframe-allow on create/update. Only platform allowlisted directives/keywords are accepted (see UMS validators). | [required] |
| iframe_allow | map[string]List[str] | Map of directive name to allowlist values. Used for CSP, Permissions-Policy, and iframe-allow on create/update. Only platform allowlisted directives/keywords are accepted (see UMS validators). | [required] |
| iframe_sandbox | []str | Opt-in iframe sandbox grants, de-duplicated and sorted. Empty when the plugin has none, including instances created before this field existed. | [required] |
| active_asset_bundle_id | str | Currently active asset bundle, or null/omitted if none uploaded yet | [optional] |
| slots | []PluginSlot | [required] | |
| state | PluginInstanceState | [required] | |
| created | datetime | ISO 8601 creation timestamp | [required] |
| modified | datetime | ISO 8601 last-modified timestamp | [required] |
| } |
Example
from sailpoint.ui_plugins.models.ui_plugin import UIPlugin
ui_plugin = UIPlugin(
plugin_instance_id='2c918086-7b5f-4b3e-8a1c-2d3e4f5a6b7c',
alias='my-custom-plugin',
name={"en":"Example text","fr":"Texte d'exemple"},
description={"en":"Example text","fr":"Texte d'exemple"},
api_scopes=["idn:account:read"],
content_security_policies={"default-src":["'self'"]},
permission_policy={"default-src":["'self'"]},
iframe_allow={"default-src":["'self'"]},
iframe_sandbox=["allow-modals","allow-popups"],
active_asset_bundle_id='',
slots=[
sailpoint.ui_plugins.models.plugin_slot.Plugin Slot(
slot_id = 'full-page',
required_capabilities = ["ORG_ADMIN"],
restrict_to_users = ["2c9180867b5f4b3e8a1c2d3e4f5a6b7c"], )
],
state='ENABLED',
created='2024-08-16T14:16:58.389Z',
modified='2024-08-16T14:16:58.389Z'
)