cpln.getOrg
Use this data source to access details about the current 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
superusersgroup. - 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-emailcontact delivery type isEmail.
auth_config
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, orcritical. - 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
tcpis 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
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),
};
import pulumi
import pulumi_cpln as cpln
org = cpln.get_org()
pulumi.export("orgSummary", {
"name": org.name,
"cplnId": org.cpln_id,
"accountId": org.account_id,
"sessionTimeoutSec": org.session_timeout_seconds,
"observability": org.observability,
})
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-cpln/sdk/go/cpln"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
org, err := cpln.LookupOrg(ctx, &cpln.LookupOrgArgs{}, nil)
if err != nil {
return err
}
ctx.Export("orgSummary", pulumi.Map{
"name": org.Name,
"cplnId": org.CplnId,
"accountId": org.AccountId,
"sessionTimeoutSec": org.SessionTimeoutSeconds,
"observability": org.Observability,
})
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cpln = Pulumi.Cpln;
return await Deployment.RunAsync(() =>
{
var org = Cpln.GetOrg.Invoke();
return new Dictionary<string, object?>
{
["orgSummary"] =
{
{ "name", org.Apply(getOrgResult => getOrgResult.Name) },
{ "cplnId", org.Apply(getOrgResult => getOrgResult.CplnId) },
{ "accountId", org.Apply(getOrgResult => getOrgResult.AccountId) },
{ "sessionTimeoutSec", org.Apply(getOrgResult => getOrgResult.SessionTimeoutSeconds) },
{ "observability", org.Apply(getOrgResult => getOrgResult.Observability) },
},
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cpln.CplnFunctions;
import com.pulumi.cpln.inputs.GetOrgArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var org = CplnFunctions.getOrg(GetOrgArgs.builder()
.build());
ctx.export("orgSummary", Map.ofEntries(
Map.entry("name", org.name()),
Map.entry("cplnId", org.cplnId()),
Map.entry("accountId", org.accountId()),
Map.entry("sessionTimeoutSec", org.sessionTimeoutSeconds()),
Map.entry("observability", org.observability())
));
}
}
variables:
org:
fn::invoke:
function: cpln:getOrg
arguments: {}
outputs:
orgSummary:
name: ${org.name}
cplnId: ${org.cplnId}
accountId: ${org.accountId}
sessionTimeoutSec: ${org.sessionTimeoutSeconds}
observability: ${org.observability}
Using getOrg
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getOrg(args: GetOrgArgs, opts?: InvokeOptions): Promise<GetOrgResult>
function getOrgOutput(args: GetOrgOutputArgs, opts?: InvokeOptions): Output<GetOrgResult>def get_org(auth_config: Optional[GetOrgAuthConfig] = None,
observability: Optional[GetOrgObservability] = None,
security: Optional[GetOrgSecurity] = None,
opts: Optional[InvokeOptions] = None) -> GetOrgResult
def get_org_output(auth_config: Optional[pulumi.Input[GetOrgAuthConfigArgs]] = None,
observability: Optional[pulumi.Input[GetOrgObservabilityArgs]] = None,
security: Optional[pulumi.Input[GetOrgSecurityArgs]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrgResult]func LookupOrg(ctx *Context, args *LookupOrgArgs, opts ...InvokeOption) (*LookupOrgResult, error)
func LookupOrgOutput(ctx *Context, args *LookupOrgOutputArgs, opts ...InvokeOption) LookupOrgResultOutput> Note: This function is named LookupOrg in the Go SDK.
public static class GetOrg
{
public static Task<GetOrgResult> InvokeAsync(GetOrgArgs args, InvokeOptions? opts = null)
public static Output<GetOrgResult> Invoke(GetOrgInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOrgResult> getOrg(GetOrgArgs args, InvokeOptions options)
public static Output<GetOrgResult> getOrg(GetOrgArgs args, InvokeOptions options)
fn::invoke:
function: cpln:index/getOrg:getOrg
arguments:
# arguments dictionaryThe following arguments are supported:
getOrg Result
The following output properties are available:
- Account
Id string - Cpln
Id string - Description string
- Id string
- Invitees List<string>
- Name string
- Self
Link string - Session
Timeout intSeconds - Statuses
List<Pulumiverse.
Cpln. Outputs. Get Org Status> - Dictionary<string, string>
- Auth
Config Pulumiverse.Cpln. Outputs. Get Org Auth Config - Observability
Pulumiverse.
Cpln. Outputs. Get Org Observability - Security
Pulumiverse.
Cpln. Outputs. Get Org Security
- Account
Id string - Cpln
Id string - Description string
- Id string
- Invitees []string
- Name string
- Self
Link string - Session
Timeout intSeconds - Statuses
[]Get
Org Status - map[string]string
- Auth
Config GetOrg Auth Config - Observability
Get
Org Observability - Security
Get
Org Security
- account
Id String - cpln
Id String - description String
- id String
- invitees List<String>
- name String
- self
Link String - session
Timeout IntegerSeconds - statuses
List<Get
Org Status> - Map<String,String>
- auth
Config GetOrg Auth Config - observability
Get
Org Observability - security
Get
Org Security
- account
Id string - cpln
Id string - description string
- id string
- invitees string[]
- name string
- self
Link string - session
Timeout numberSeconds - statuses
Get
Org Status[] - {[key: string]: string}
- auth
Config GetOrg Auth Config - observability
Get
Org Observability - security
Get
Org Security
- account_
id str - cpln_
id str - description str
- id str
- invitees Sequence[str]
- name str
- self_
link str - session_
timeout_ intseconds - statuses
Sequence[Get
Org Status] - Mapping[str, str]
- auth_
config GetOrg Auth Config - observability
Get
Org Observability - security
Get
Org Security
- account
Id String - cpln
Id String - description String
- id String
- invitees List<String>
- name String
- self
Link String - session
Timeout NumberSeconds - statuses List<Property Map>
- Map<String>
- auth
Config Property Map - observability Property Map
- security Property Map
Supporting Types
GetOrgAuthConfig
- Domain
Auto List<string>Members - List of domains which will auto-provision users when authenticating using SAML.
- Saml
Only bool - Enforce SAML only authentication.
- Domain
Auto []stringMembers - List of domains which will auto-provision users when authenticating using SAML.
- Saml
Only bool - Enforce SAML only authentication.
- domain
Auto List<String>Members - List of domains which will auto-provision users when authenticating using SAML.
- saml
Only Boolean - Enforce SAML only authentication.
- domain
Auto string[]Members - List of domains which will auto-provision users when authenticating using SAML.
- saml
Only boolean - Enforce SAML only authentication.
- domain_
auto_ Sequence[str]members - List of domains which will auto-provision users when authenticating using SAML.
- saml_
only bool - Enforce SAML only authentication.
- domain
Auto List<String>Members - List of domains which will auto-provision users when authenticating using SAML.
- saml
Only Boolean - Enforce SAML only authentication.
GetOrgObservability
- Default
Alert List<string>Emails - These emails are configured as alert recipients in Grafana when the 'grafana-default-email' contact delivery type is 'Email'.
- Logs
Retention intDays - Log retention days. Default: 30
- Metrics
Retention intDays - Metrics retention days. Default: 30
- Traces
Retention intDays - Traces retention days. Default: 30
- Default
Alert []stringEmails - These emails are configured as alert recipients in Grafana when the 'grafana-default-email' contact delivery type is 'Email'.
- Logs
Retention intDays - Log retention days. Default: 30
- Metrics
Retention intDays - Metrics retention days. Default: 30
- Traces
Retention intDays - Traces retention days. Default: 30
- default
Alert List<String>Emails - These emails are configured as alert recipients in Grafana when the 'grafana-default-email' contact delivery type is 'Email'.
- logs
Retention IntegerDays - Log retention days. Default: 30
- metrics
Retention IntegerDays - Metrics retention days. Default: 30
- traces
Retention IntegerDays - Traces retention days. Default: 30
- default
Alert string[]Emails - These emails are configured as alert recipients in Grafana when the 'grafana-default-email' contact delivery type is 'Email'.
- logs
Retention numberDays - Log retention days. Default: 30
- metrics
Retention numberDays - Metrics retention days. Default: 30
- traces
Retention numberDays - Traces retention days. Default: 30
- default_
alert_ Sequence[str]emails - These emails are configured as alert recipients in Grafana when the 'grafana-default-email' contact delivery type is 'Email'.
- logs_
retention_ intdays - Log retention days. Default: 30
- metrics_
retention_ intdays - Metrics retention days. Default: 30
- traces_
retention_ intdays - Traces retention days. Default: 30
- default
Alert List<String>Emails - These emails are configured as alert recipients in Grafana when the 'grafana-default-email' contact delivery type is 'Email'.
- logs
Retention NumberDays - Log retention days. Default: 30
- metrics
Retention NumberDays - Metrics retention days. Default: 30
- traces
Retention NumberDays - Traces retention days. Default: 30
GetOrgSecurity
GetOrgSecurityThreatDetection
- Enabled bool
- Indicates whether threat detection should be forwarded or not.
- Minimum
Severity string - Any threats with this severity and more severe will be sent. Others will be ignored. Valid values:
warning,error, orcritical. - Syslog
Pulumiverse.
Cpln. Inputs. Get Org Security Threat Detection Syslog - Configuration for syslog forwarding.
- Enabled bool
- Indicates whether threat detection should be forwarded or not.
- Minimum
Severity string - Any threats with this severity and more severe will be sent. Others will be ignored. Valid values:
warning,error, orcritical. - Syslog
Get
Org Security Threat Detection Syslog - Configuration for syslog forwarding.
- enabled Boolean
- Indicates whether threat detection should be forwarded or not.
- minimum
Severity String - Any threats with this severity and more severe will be sent. Others will be ignored. Valid values:
warning,error, orcritical. - syslog
Get
Org Security Threat Detection Syslog - Configuration for syslog forwarding.
- enabled boolean
- Indicates whether threat detection should be forwarded or not.
- minimum
Severity string - Any threats with this severity and more severe will be sent. Others will be ignored. Valid values:
warning,error, orcritical. - syslog
Get
Org Security Threat Detection Syslog - Configuration for syslog forwarding.
- enabled bool
- Indicates whether threat detection should be forwarded or not.
- minimum_
severity str - Any threats with this severity and more severe will be sent. Others will be ignored. Valid values:
warning,error, orcritical. - syslog
Get
Org Security Threat Detection Syslog - Configuration for syslog forwarding.
- enabled Boolean
- Indicates whether threat detection should be forwarded or not.
- minimum
Severity String - Any threats with this severity and more severe will be sent. Others will be ignored. Valid values:
warning,error, orcritical. - syslog Property Map
- Configuration for syslog forwarding.
GetOrgSecurityThreatDetectionSyslog
GetOrgStatus
- Account
Link string - The link of the account the org belongs to.
- Active bool
- Indicates whether the org is active or not.
- Endpoint
Prefix string
- Account
Link string - The link of the account the org belongs to.
- Active bool
- Indicates whether the org is active or not.
- Endpoint
Prefix string
- 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
- 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
- account_
link str - The link of the account the org belongs to.
- active bool
- Indicates whether the org is active or not.
- endpoint_
prefix str
- 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
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cplnTerraform Provider.
