1. Packages
  2. Sysdig Provider
  3. API Docs
  4. SecureOrganization
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

sysdig.SecureOrganization

Explore with Pulumi AI

sysdig logo
sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sysdig from "@pulumi/sysdig";
    
    const sampleSecureCloudAuthAccount = new sysdig.SecureCloudAuthAccount("sampleSecureCloudAuthAccount", {
        providerId: "google_cloud_project_id",
        providerType: "PROVIDER_GCP",
        enabled: true,
    });
    const sampleSecureOrganization = new sysdig.SecureOrganization("sampleSecureOrganization", {managementAccountId: sampleSecureCloudAuthAccount.secureCloudAuthAccountId});
    
    import pulumi
    import pulumi_sysdig as sysdig
    
    sample_secure_cloud_auth_account = sysdig.SecureCloudAuthAccount("sampleSecureCloudAuthAccount",
        provider_id="google_cloud_project_id",
        provider_type="PROVIDER_GCP",
        enabled=True)
    sample_secure_organization = sysdig.SecureOrganization("sampleSecureOrganization", management_account_id=sample_secure_cloud_auth_account.secure_cloud_auth_account_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		sampleSecureCloudAuthAccount, err := sysdig.NewSecureCloudAuthAccount(ctx, "sampleSecureCloudAuthAccount", &sysdig.SecureCloudAuthAccountArgs{
    			ProviderId:   pulumi.String("google_cloud_project_id"),
    			ProviderType: pulumi.String("PROVIDER_GCP"),
    			Enabled:      pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = sysdig.NewSecureOrganization(ctx, "sampleSecureOrganization", &sysdig.SecureOrganizationArgs{
    			ManagementAccountId: sampleSecureCloudAuthAccount.SecureCloudAuthAccountId,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sysdig = Pulumi.Sysdig;
    
    return await Deployment.RunAsync(() => 
    {
        var sampleSecureCloudAuthAccount = new Sysdig.SecureCloudAuthAccount("sampleSecureCloudAuthAccount", new()
        {
            ProviderId = "google_cloud_project_id",
            ProviderType = "PROVIDER_GCP",
            Enabled = true,
        });
    
        var sampleSecureOrganization = new Sysdig.SecureOrganization("sampleSecureOrganization", new()
        {
            ManagementAccountId = sampleSecureCloudAuthAccount.SecureCloudAuthAccountId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sysdig.SecureCloudAuthAccount;
    import com.pulumi.sysdig.SecureCloudAuthAccountArgs;
    import com.pulumi.sysdig.SecureOrganization;
    import com.pulumi.sysdig.SecureOrganizationArgs;
    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) {
            var sampleSecureCloudAuthAccount = new SecureCloudAuthAccount("sampleSecureCloudAuthAccount", SecureCloudAuthAccountArgs.builder()
                .providerId("google_cloud_project_id")
                .providerType("PROVIDER_GCP")
                .enabled("true")
                .build());
    
            var sampleSecureOrganization = new SecureOrganization("sampleSecureOrganization", SecureOrganizationArgs.builder()
                .managementAccountId(sampleSecureCloudAuthAccount.secureCloudAuthAccountId())
                .build());
    
        }
    }
    
    resources:
      sampleSecureCloudAuthAccount:
        type: sysdig:SecureCloudAuthAccount
        properties:
          providerId: google_cloud_project_id
          providerType: PROVIDER_GCP
          enabled: 'true'
      sampleSecureOrganization:
        type: sysdig:SecureOrganization
        properties:
          managementAccountId: ${sampleSecureCloudAuthAccount.secureCloudAuthAccountId}
    

    Create SecureOrganization Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SecureOrganization(name: string, args: SecureOrganizationArgs, opts?: CustomResourceOptions);
    @overload
    def SecureOrganization(resource_name: str,
                           args: SecureOrganizationArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecureOrganization(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           management_account_id: Optional[str] = None,
                           automatic_onboarding: Optional[bool] = None,
                           excluded_cloud_accounts: Optional[Sequence[str]] = None,
                           excluded_organizational_groups: Optional[Sequence[str]] = None,
                           included_cloud_accounts: Optional[Sequence[str]] = None,
                           included_organizational_groups: Optional[Sequence[str]] = None,
                           organization_root_id: Optional[str] = None,
                           organizational_unit_ids: Optional[Sequence[str]] = None,
                           secure_organization_id: Optional[str] = None,
                           timeouts: Optional[SecureOrganizationTimeoutsArgs] = None)
    func NewSecureOrganization(ctx *Context, name string, args SecureOrganizationArgs, opts ...ResourceOption) (*SecureOrganization, error)
    public SecureOrganization(string name, SecureOrganizationArgs args, CustomResourceOptions? opts = null)
    public SecureOrganization(String name, SecureOrganizationArgs args)
    public SecureOrganization(String name, SecureOrganizationArgs args, CustomResourceOptions options)
    
    type: sysdig:SecureOrganization
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SecureOrganizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecureOrganizationArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecureOrganizationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecureOrganizationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecureOrganizationArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var secureOrganizationResource = new Sysdig.SecureOrganization("secureOrganizationResource", new()
    {
        ManagementAccountId = "string",
        AutomaticOnboarding = false,
        ExcludedCloudAccounts = new[]
        {
            "string",
        },
        ExcludedOrganizationalGroups = new[]
        {
            "string",
        },
        IncludedCloudAccounts = new[]
        {
            "string",
        },
        IncludedOrganizationalGroups = new[]
        {
            "string",
        },
        OrganizationRootId = "string",
        OrganizationalUnitIds = new[]
        {
            "string",
        },
        SecureOrganizationId = "string",
        Timeouts = new Sysdig.Inputs.SecureOrganizationTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := sysdig.NewSecureOrganization(ctx, "secureOrganizationResource", &sysdig.SecureOrganizationArgs{
    	ManagementAccountId: pulumi.String("string"),
    	AutomaticOnboarding: pulumi.Bool(false),
    	ExcludedCloudAccounts: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ExcludedOrganizationalGroups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IncludedCloudAccounts: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	IncludedOrganizationalGroups: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	OrganizationRootId: pulumi.String("string"),
    	OrganizationalUnitIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	SecureOrganizationId: pulumi.String("string"),
    	Timeouts: &sysdig.SecureOrganizationTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var secureOrganizationResource = new SecureOrganization("secureOrganizationResource", SecureOrganizationArgs.builder()
        .managementAccountId("string")
        .automaticOnboarding(false)
        .excludedCloudAccounts("string")
        .excludedOrganizationalGroups("string")
        .includedCloudAccounts("string")
        .includedOrganizationalGroups("string")
        .organizationRootId("string")
        .organizationalUnitIds("string")
        .secureOrganizationId("string")
        .timeouts(SecureOrganizationTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    secure_organization_resource = sysdig.SecureOrganization("secureOrganizationResource",
        management_account_id="string",
        automatic_onboarding=False,
        excluded_cloud_accounts=["string"],
        excluded_organizational_groups=["string"],
        included_cloud_accounts=["string"],
        included_organizational_groups=["string"],
        organization_root_id="string",
        organizational_unit_ids=["string"],
        secure_organization_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const secureOrganizationResource = new sysdig.SecureOrganization("secureOrganizationResource", {
        managementAccountId: "string",
        automaticOnboarding: false,
        excludedCloudAccounts: ["string"],
        excludedOrganizationalGroups: ["string"],
        includedCloudAccounts: ["string"],
        includedOrganizationalGroups: ["string"],
        organizationRootId: "string",
        organizationalUnitIds: ["string"],
        secureOrganizationId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: sysdig:SecureOrganization
    properties:
        automaticOnboarding: false
        excludedCloudAccounts:
            - string
        excludedOrganizationalGroups:
            - string
        includedCloudAccounts:
            - string
        includedOrganizationalGroups:
            - string
        managementAccountId: string
        organizationRootId: string
        organizationalUnitIds:
            - string
        secureOrganizationId: string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

    SecureOrganization Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SecureOrganization resource accepts the following input properties:

    ManagementAccountId string
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    AutomaticOnboarding bool
    Whether or not accounts in organization are to be detected automatically.
    ExcludedCloudAccounts List<string>
    List of cloud accounts to exclude during onboarding.
    ExcludedOrganizationalGroups List<string>
    List of organizational groups to exclude during onboarding.
    IncludedCloudAccounts List<string>
    List of cloud accounts to include during onboarding.
    IncludedOrganizationalGroups List<string>
    List of organizational groups to include during onboarding.
    OrganizationRootId string
    Organization's root id if available, else organization/tenant id.
    OrganizationalUnitIds List<string>
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    SecureOrganizationId string
    Timeouts SecureOrganizationTimeouts
    ManagementAccountId string
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    AutomaticOnboarding bool
    Whether or not accounts in organization are to be detected automatically.
    ExcludedCloudAccounts []string
    List of cloud accounts to exclude during onboarding.
    ExcludedOrganizationalGroups []string
    List of organizational groups to exclude during onboarding.
    IncludedCloudAccounts []string
    List of cloud accounts to include during onboarding.
    IncludedOrganizationalGroups []string
    List of organizational groups to include during onboarding.
    OrganizationRootId string
    Organization's root id if available, else organization/tenant id.
    OrganizationalUnitIds []string
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    SecureOrganizationId string
    Timeouts SecureOrganizationTimeoutsArgs
    managementAccountId String
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    automaticOnboarding Boolean
    Whether or not accounts in organization are to be detected automatically.
    excludedCloudAccounts List<String>
    List of cloud accounts to exclude during onboarding.
    excludedOrganizationalGroups List<String>
    List of organizational groups to exclude during onboarding.
    includedCloudAccounts List<String>
    List of cloud accounts to include during onboarding.
    includedOrganizationalGroups List<String>
    List of organizational groups to include during onboarding.
    organizationRootId String
    Organization's root id if available, else organization/tenant id.
    organizationalUnitIds List<String>
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    secureOrganizationId String
    timeouts SecureOrganizationTimeouts
    managementAccountId string
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    automaticOnboarding boolean
    Whether or not accounts in organization are to be detected automatically.
    excludedCloudAccounts string[]
    List of cloud accounts to exclude during onboarding.
    excludedOrganizationalGroups string[]
    List of organizational groups to exclude during onboarding.
    includedCloudAccounts string[]
    List of cloud accounts to include during onboarding.
    includedOrganizationalGroups string[]
    List of organizational groups to include during onboarding.
    organizationRootId string
    Organization's root id if available, else organization/tenant id.
    organizationalUnitIds string[]
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    secureOrganizationId string
    timeouts SecureOrganizationTimeouts
    management_account_id str
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    automatic_onboarding bool
    Whether or not accounts in organization are to be detected automatically.
    excluded_cloud_accounts Sequence[str]
    List of cloud accounts to exclude during onboarding.
    excluded_organizational_groups Sequence[str]
    List of organizational groups to exclude during onboarding.
    included_cloud_accounts Sequence[str]
    List of cloud accounts to include during onboarding.
    included_organizational_groups Sequence[str]
    List of organizational groups to include during onboarding.
    organization_root_id str
    Organization's root id if available, else organization/tenant id.
    organizational_unit_ids Sequence[str]
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    secure_organization_id str
    timeouts SecureOrganizationTimeoutsArgs
    managementAccountId String
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    automaticOnboarding Boolean
    Whether or not accounts in organization are to be detected automatically.
    excludedCloudAccounts List<String>
    List of cloud accounts to exclude during onboarding.
    excludedOrganizationalGroups List<String>
    List of organizational groups to exclude during onboarding.
    includedCloudAccounts List<String>
    List of cloud accounts to include during onboarding.
    includedOrganizationalGroups List<String>
    List of organizational groups to include during onboarding.
    organizationRootId String
    Organization's root id if available, else organization/tenant id.
    organizationalUnitIds List<String>
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    secureOrganizationId String
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecureOrganization resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SecureOrganization Resource

    Get an existing SecureOrganization resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SecureOrganizationState, opts?: CustomResourceOptions): SecureOrganization
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            automatic_onboarding: Optional[bool] = None,
            excluded_cloud_accounts: Optional[Sequence[str]] = None,
            excluded_organizational_groups: Optional[Sequence[str]] = None,
            included_cloud_accounts: Optional[Sequence[str]] = None,
            included_organizational_groups: Optional[Sequence[str]] = None,
            management_account_id: Optional[str] = None,
            organization_root_id: Optional[str] = None,
            organizational_unit_ids: Optional[Sequence[str]] = None,
            secure_organization_id: Optional[str] = None,
            timeouts: Optional[SecureOrganizationTimeoutsArgs] = None) -> SecureOrganization
    func GetSecureOrganization(ctx *Context, name string, id IDInput, state *SecureOrganizationState, opts ...ResourceOption) (*SecureOrganization, error)
    public static SecureOrganization Get(string name, Input<string> id, SecureOrganizationState? state, CustomResourceOptions? opts = null)
    public static SecureOrganization get(String name, Output<String> id, SecureOrganizationState state, CustomResourceOptions options)
    resources:  _:    type: sysdig:SecureOrganization    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AutomaticOnboarding bool
    Whether or not accounts in organization are to be detected automatically.
    ExcludedCloudAccounts List<string>
    List of cloud accounts to exclude during onboarding.
    ExcludedOrganizationalGroups List<string>
    List of organizational groups to exclude during onboarding.
    IncludedCloudAccounts List<string>
    List of cloud accounts to include during onboarding.
    IncludedOrganizationalGroups List<string>
    List of organizational groups to include during onboarding.
    ManagementAccountId string
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    OrganizationRootId string
    Organization's root id if available, else organization/tenant id.
    OrganizationalUnitIds List<string>
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    SecureOrganizationId string
    Timeouts SecureOrganizationTimeouts
    AutomaticOnboarding bool
    Whether or not accounts in organization are to be detected automatically.
    ExcludedCloudAccounts []string
    List of cloud accounts to exclude during onboarding.
    ExcludedOrganizationalGroups []string
    List of organizational groups to exclude during onboarding.
    IncludedCloudAccounts []string
    List of cloud accounts to include during onboarding.
    IncludedOrganizationalGroups []string
    List of organizational groups to include during onboarding.
    ManagementAccountId string
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    OrganizationRootId string
    Organization's root id if available, else organization/tenant id.
    OrganizationalUnitIds []string
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    SecureOrganizationId string
    Timeouts SecureOrganizationTimeoutsArgs
    automaticOnboarding Boolean
    Whether or not accounts in organization are to be detected automatically.
    excludedCloudAccounts List<String>
    List of cloud accounts to exclude during onboarding.
    excludedOrganizationalGroups List<String>
    List of organizational groups to exclude during onboarding.
    includedCloudAccounts List<String>
    List of cloud accounts to include during onboarding.
    includedOrganizationalGroups List<String>
    List of organizational groups to include during onboarding.
    managementAccountId String
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    organizationRootId String
    Organization's root id if available, else organization/tenant id.
    organizationalUnitIds List<String>
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    secureOrganizationId String
    timeouts SecureOrganizationTimeouts
    automaticOnboarding boolean
    Whether or not accounts in organization are to be detected automatically.
    excludedCloudAccounts string[]
    List of cloud accounts to exclude during onboarding.
    excludedOrganizationalGroups string[]
    List of organizational groups to exclude during onboarding.
    includedCloudAccounts string[]
    List of cloud accounts to include during onboarding.
    includedOrganizationalGroups string[]
    List of organizational groups to include during onboarding.
    managementAccountId string
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    organizationRootId string
    Organization's root id if available, else organization/tenant id.
    organizationalUnitIds string[]
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    secureOrganizationId string
    timeouts SecureOrganizationTimeouts
    automatic_onboarding bool
    Whether or not accounts in organization are to be detected automatically.
    excluded_cloud_accounts Sequence[str]
    List of cloud accounts to exclude during onboarding.
    excluded_organizational_groups Sequence[str]
    List of organizational groups to exclude during onboarding.
    included_cloud_accounts Sequence[str]
    List of cloud accounts to include during onboarding.
    included_organizational_groups Sequence[str]
    List of organizational groups to include during onboarding.
    management_account_id str
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    organization_root_id str
    Organization's root id if available, else organization/tenant id.
    organizational_unit_ids Sequence[str]
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    secure_organization_id str
    timeouts SecureOrganizationTimeoutsArgs
    automaticOnboarding Boolean
    Whether or not accounts in organization are to be detected automatically.
    excludedCloudAccounts List<String>
    List of cloud accounts to exclude during onboarding.
    excludedOrganizationalGroups List<String>
    List of organizational groups to exclude during onboarding.
    includedCloudAccounts List<String>
    List of cloud accounts to include during onboarding.
    includedOrganizationalGroups List<String>
    List of organizational groups to include during onboarding.
    managementAccountId String
    Cloud Account created using resource sysdig_secure_cloud_auth_account.
    organizationRootId String
    Organization's root id if available, else organization/tenant id.
    organizationalUnitIds List<String>
    List of organizational unit identifiers from which to onboard. If empty, the entire organization is onboarded.
    secureOrganizationId String
    timeouts Property Map

    Supporting Types

    SecureOrganizationTimeouts, SecureOrganizationTimeoutsArgs

    Create string
    Delete string
    Read string
    Update string
    Create string
    Delete string
    Read string
    Update string
    create String
    delete String
    read String
    update String
    create string
    delete string
    read string
    update string
    create str
    delete str
    read str
    update str
    create String
    delete String
    read String
    update String

    Package Details

    Repository
    sysdig sysdiglabs/terraform-provider-sysdig
    License
    Notes
    This Pulumi package is based on the sysdig Terraform Provider.
    sysdig logo
    sysdig 1.56.0 published on Wednesday, Apr 30, 2025 by sysdiglabs