Control Plane v0.0.60 published on Thursday, Jul 3, 2025 by pulumiverse
cpln.getOrg
Explore with Pulumi AI
Output the ID and name of the current org.
Outputs
The following attributes are exported:
- cpln_id (String) The ID, in GUID format, of the org.
- name (String) The name of org.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cpln from "@pulumiverse/cpln";
const org = cpln.getOrg({});
export const orgId = org.then(org => org.id);
export const orgName = org.then(org => org.name);
import pulumi
import pulumi_cpln as cpln
org = cpln.get_org()
pulumi.export("orgId", org.id)
pulumi.export("orgName", org.name)
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("orgId", org.Id)
ctx.Export("orgName", org.Name)
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?>
{
["orgId"] = org.Apply(getOrgResult => getOrgResult.Id),
["orgName"] = org.Apply(getOrgResult => getOrgResult.Name),
};
});
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("orgId", org.id());
ctx.export("orgName", org.name());
}
}
variables:
org:
fn::invoke:
function: cpln:getOrg
arguments: {}
outputs:
orgId: ${org.id}
orgName: ${org.name}
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 dictionary
The 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.
- Account
Link string - The link of the account the org belongs to.
- Active bool
- Indicates whether the org is active or not.
- account
Link String - The link of the account the org belongs to.
- active Boolean
- Indicates whether the org is active or not.
- account
Link string - The link of the account the org belongs to.
- active boolean
- Indicates whether the org is active or not.
- account_
link str - The link of the account the org belongs to.
- active bool
- Indicates whether the org is active or not.
- account
Link String - The link of the account the org belongs to.
- active Boolean
- Indicates whether the org is active or not.
Package Details
- Repository
- cpln pulumiverse/pulumi-cpln
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cpln
Terraform Provider.