import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Data source to retrieve a specific Auth0 organization by `organizationId` or `name`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // An Auth0 Organization loaded using its name. * const some_organization_by_name = auth0.getOrganization({ * name: "my-org", * }); * // An Auth0 Organization loaded using its ID. * const some_organization_by_id = auth0.getOrganization({ * organizationId: "org_abcdefghkijklmnopqrstuvwxyz0123456789", * }); * ``` */ export declare function getOrganization(args?: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getOrganization. */ export interface GetOrganizationArgs { /** * The name of the organization. If not provided, `organizationId` must be set. For performance, it is advised to use the `organizationId` as a lookup if possible. */ name?: string; /** * The ID of the organization. If not provided, `name` must be set. */ organizationId?: string; /** * Whether to skip organization client grants. Setting this to `true` will skip API call to /api/v2/organizations/{id}/client-grants. */ skipClientGrants?: boolean; /** * Whether to skip organization connections. Setting this to `true` will skip paginated API calls to /api/v2/organizations/{id}/connections. */ skipConnections?: boolean; /** * Whether to skip organization members. Setting this to `true` will skip paginated API calls to /api/v2/organizations/{id}/members. */ skipMembers?: boolean; } /** * A collection of values returned by getOrganization. */ export interface GetOrganizationResult { /** * Defines how to style the login pages. */ readonly brandings: outputs.GetOrganizationBranding[]; /** * Client Grant ID(s) that are associated to the organization. Skips populating if `skipClientGrants` is `true`. */ readonly clientGrants: string[]; /** * Connections enabled for this organization. Skips populating if `skipConnections` is `true`. */ readonly connections: outputs.GetOrganizationConnection[]; /** * Friendly name of this organization. */ readonly displayName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Controls whether this organization's app entitlement is active, determining whether members of this organization can access applications associated with it (EA only). This is distinct from `auth0.ClientGrant`'s `organizationUsage` attribute, which controls whether organizations can be used with client credentials exchanges for a given client grant. */ readonly isAppEntitlementActive: boolean; /** * User ID(s) that are members of the organization. Skips populating if `skipMembers` is `true`. */ readonly members: string[]; /** * Metadata associated with the organization. Maximum of 10 metadata properties allowed. */ readonly metadata: { [key: string]: string; }; /** * The name of the organization. If not provided, `organizationId` must be set. For performance, it is advised to use the `organizationId` as a lookup if possible. */ readonly name?: string; /** * The ID of the organization. If not provided, `name` must be set. */ readonly organizationId?: string; /** * Whether to skip organization client grants. Setting this to `true` will skip API call to /api/v2/organizations/{id}/client-grants. */ readonly skipClientGrants?: boolean; /** * Whether to skip organization connections. Setting this to `true` will skip paginated API calls to /api/v2/organizations/{id}/connections. */ readonly skipConnections?: boolean; /** * Whether to skip organization members. Setting this to `true` will skip paginated API calls to /api/v2/organizations/{id}/members. */ readonly skipMembers?: boolean; /** * Controls whether this organization can be used in user flows with third-party clients. Available values are `allow` or `block`. Defaults to `block`. */ readonly thirdPartyClientAccess: string; /** * The token quota configuration. */ readonly tokenQuotas: outputs.GetOrganizationTokenQuota[]; } /** * Data source to retrieve a specific Auth0 organization by `organizationId` or `name`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as auth0 from "@pulumi/auth0"; * * // An Auth0 Organization loaded using its name. * const some_organization_by_name = auth0.getOrganization({ * name: "my-org", * }); * // An Auth0 Organization loaded using its ID. * const some_organization_by_id = auth0.getOrganization({ * organizationId: "org_abcdefghkijklmnopqrstuvwxyz0123456789", * }); * ``` */ export declare function getOrganizationOutput(args?: GetOrganizationOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getOrganization. */ export interface GetOrganizationOutputArgs { /** * The name of the organization. If not provided, `organizationId` must be set. For performance, it is advised to use the `organizationId` as a lookup if possible. */ name?: pulumi.Input; /** * The ID of the organization. If not provided, `name` must be set. */ organizationId?: pulumi.Input; /** * Whether to skip organization client grants. Setting this to `true` will skip API call to /api/v2/organizations/{id}/client-grants. */ skipClientGrants?: pulumi.Input; /** * Whether to skip organization connections. Setting this to `true` will skip paginated API calls to /api/v2/organizations/{id}/connections. */ skipConnections?: pulumi.Input; /** * Whether to skip organization members. Setting this to `true` will skip paginated API calls to /api/v2/organizations/{id}/members. */ skipMembers?: pulumi.Input; } //# sourceMappingURL=getOrganization.d.ts.map