import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Use this data source to access details about the current [org](https://docs.controlplane.com/reference/org) targeted by the provider configuration. * * ## Outputs * * The following attributes are exported: * * - **id** (String) The unique identifier for this org. * - **cpln_id** (String) The ID, in GUID format, of the org. * - **name** (String) The name of org. * - **description** (String) Description of the org. * - **tags** (Map of String) Key-value map of resource tags. * - **self_link** (String) Full link to this resource. Can be referenced by other resources. * - **observability** (Block List, Max: 1) (see below). * - **account_id** (String) The associated account ID that was used when creating the org. * - **invitees** (Set of String) Email addresses that received invitations to join the org and were assigned to the `superusers` group. * - **session_timeout_seconds** (Int) The idle time (in seconds) after which the console UI signs out the user. Default: `900`. * - **auth_config** (Block List, Max: 1) (see below). * - **security** (Block List, Max: 1) (see below). * - **status** (List of Object) (see below). * * * * ### `observability` * * The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default. * * Read-Only: * * - **logs_retention_days** (Number) Log retention days. Default: `30`. * - **metrics_retention_days** (Number) Metrics retention days. Default: `30`. * - **traces_retention_days** (Number) Traces retention days. Default: `30`. * - **default_alert_emails** (Set of String) These emails are configured as alert recipients in Grafana when the `grafana-default-email` contact delivery type is `Email`. * * * * ### `authConfig` * * Configuration settings related to authentication within the org. * * Read-Only: * * - **domain_auto_members** (Set of String) List of domains that auto-provision users when authenticating using SAML. * - **saml_only** (Boolean) Enforces SAML-only authentication. * * * * ### `security` * * Read-Only: * * - **threat_detection** (Block List, Max: 1) (see below). * * * * ### `security.threat_detection` * * Read-Only: * * - **enabled** (Boolean) Indicates whether threat detection information is forwarded. * - **minimum_severity** (String) Any threats with this severity and more severe are sent. Others are ignored. Valid values: `warning`, `error`, or `critical`. * - **syslog** (Block List, Max: 1) (see below). * * * * ### `security.threat_detection.syslog` * * Read-Only: * * - **port** (Number) The port to send syslog messages to. * - **transport** (String) The transport-layer protocol used for syslog messages. If `tcp` is chosen, messages are sent with TLS. Default: `tcp`. * - **host** (String) The hostname to send syslog messages to. * * * * ### `status` * * Status of the org. * * Read-Only: * * - **account_link** (String) The link of the account the org belongs to. * - **active** (Boolean) Indicates whether the org is active or not. * - **endpoint_prefix** (String) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cpln from "@pulumiverse/cpln"; * * const org = cpln.getOrg({}); * export const orgSummary = { * name: org.then(org => org.name), * cplnId: org.then(org => org.cplnId), * accountId: org.then(org => org.accountId), * sessionTimeoutSec: org.then(org => org.sessionTimeoutSeconds), * observability: org.then(org => org.observability), * }; * ``` */ export declare function getOrg(args?: GetOrgArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getOrg. */ export interface GetOrgArgs { authConfig?: inputs.GetOrgAuthConfig; observability?: inputs.GetOrgObservability; security?: inputs.GetOrgSecurity; } /** * A collection of values returned by getOrg. */ export interface GetOrgResult { readonly accountId: string; readonly authConfig?: outputs.GetOrgAuthConfig; readonly cplnId: string; readonly description: string; readonly id: string; readonly invitees: string[]; readonly name: string; readonly observability?: outputs.GetOrgObservability; readonly security?: outputs.GetOrgSecurity; readonly selfLink: string; readonly sessionTimeoutSeconds: number; readonly statuses: outputs.GetOrgStatus[]; readonly tags: { [key: string]: string; }; } /** * Use this data source to access details about the current [org](https://docs.controlplane.com/reference/org) targeted by the provider configuration. * * ## Outputs * * The following attributes are exported: * * - **id** (String) The unique identifier for this org. * - **cpln_id** (String) The ID, in GUID format, of the org. * - **name** (String) The name of org. * - **description** (String) Description of the org. * - **tags** (Map of String) Key-value map of resource tags. * - **self_link** (String) Full link to this resource. Can be referenced by other resources. * - **observability** (Block List, Max: 1) (see below). * - **account_id** (String) The associated account ID that was used when creating the org. * - **invitees** (Set of String) Email addresses that received invitations to join the org and were assigned to the `superusers` group. * - **session_timeout_seconds** (Int) The idle time (in seconds) after which the console UI signs out the user. Default: `900`. * - **auth_config** (Block List, Max: 1) (see below). * - **security** (Block List, Max: 1) (see below). * - **status** (List of Object) (see below). * * * * ### `observability` * * The retention period (in days) for logs, metrics, and traces. Charges apply for storage beyond the 30 day default. * * Read-Only: * * - **logs_retention_days** (Number) Log retention days. Default: `30`. * - **metrics_retention_days** (Number) Metrics retention days. Default: `30`. * - **traces_retention_days** (Number) Traces retention days. Default: `30`. * - **default_alert_emails** (Set of String) These emails are configured as alert recipients in Grafana when the `grafana-default-email` contact delivery type is `Email`. * * * * ### `authConfig` * * Configuration settings related to authentication within the org. * * Read-Only: * * - **domain_auto_members** (Set of String) List of domains that auto-provision users when authenticating using SAML. * - **saml_only** (Boolean) Enforces SAML-only authentication. * * * * ### `security` * * Read-Only: * * - **threat_detection** (Block List, Max: 1) (see below). * * * * ### `security.threat_detection` * * Read-Only: * * - **enabled** (Boolean) Indicates whether threat detection information is forwarded. * - **minimum_severity** (String) Any threats with this severity and more severe are sent. Others are ignored. Valid values: `warning`, `error`, or `critical`. * - **syslog** (Block List, Max: 1) (see below). * * * * ### `security.threat_detection.syslog` * * Read-Only: * * - **port** (Number) The port to send syslog messages to. * - **transport** (String) The transport-layer protocol used for syslog messages. If `tcp` is chosen, messages are sent with TLS. Default: `tcp`. * - **host** (String) The hostname to send syslog messages to. * * * * ### `status` * * Status of the org. * * Read-Only: * * - **account_link** (String) The link of the account the org belongs to. * - **active** (Boolean) Indicates whether the org is active or not. * - **endpoint_prefix** (String) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cpln from "@pulumiverse/cpln"; * * const org = cpln.getOrg({}); * export const orgSummary = { * name: org.then(org => org.name), * cplnId: org.then(org => org.cplnId), * accountId: org.then(org => org.accountId), * sessionTimeoutSec: org.then(org => org.sessionTimeoutSeconds), * observability: org.then(org => org.observability), * }; * ``` */ export declare function getOrgOutput(args?: GetOrgOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getOrg. */ export interface GetOrgOutputArgs { authConfig?: pulumi.Input; observability?: pulumi.Input; security?: pulumi.Input; }