1. Packages
  2. Tailscale Provider
  3. API Docs
  4. PostureIntegration
Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi

tailscale.PostureIntegration

Explore with Pulumi AI

tailscale logo
Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi

    The posture_integration resource allows you to manage integrations with device posture data providers. See https://tailscale.com/kb/1288/device-posture for more information.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tailscale from "@pulumi/tailscale";
    
    const samplePostureIntegration = new tailscale.PostureIntegration("sample_posture_integration", {
        postureProvider: "falcon",
        cloudId: "us-1",
        clientId: "clientid1",
        clientSecret: "test-secret1",
    });
    
    import pulumi
    import pulumi_tailscale as tailscale
    
    sample_posture_integration = tailscale.PostureIntegration("sample_posture_integration",
        posture_provider="falcon",
        cloud_id="us-1",
        client_id="clientid1",
        client_secret="test-secret1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-tailscale/sdk/go/tailscale"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tailscale.NewPostureIntegration(ctx, "sample_posture_integration", &tailscale.PostureIntegrationArgs{
    			PostureProvider: pulumi.String("falcon"),
    			CloudId:         pulumi.String("us-1"),
    			ClientId:        pulumi.String("clientid1"),
    			ClientSecret:    pulumi.String("test-secret1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tailscale = Pulumi.Tailscale;
    
    return await Deployment.RunAsync(() => 
    {
        var samplePostureIntegration = new Tailscale.PostureIntegration("sample_posture_integration", new()
        {
            PostureProvider = "falcon",
            CloudId = "us-1",
            ClientId = "clientid1",
            ClientSecret = "test-secret1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tailscale.PostureIntegration;
    import com.pulumi.tailscale.PostureIntegrationArgs;
    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 samplePostureIntegration = new PostureIntegration("samplePostureIntegration", PostureIntegrationArgs.builder()
                .postureProvider("falcon")
                .cloudId("us-1")
                .clientId("clientid1")
                .clientSecret("test-secret1")
                .build());
    
        }
    }
    
    resources:
      samplePostureIntegration:
        type: tailscale:PostureIntegration
        name: sample_posture_integration
        properties:
          postureProvider: falcon
          cloudId: us-1
          clientId: clientid1
          clientSecret: test-secret1
    

    Create PostureIntegration Resource

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

    Constructor syntax

    new PostureIntegration(name: string, args: PostureIntegrationArgs, opts?: CustomResourceOptions);
    @overload
    def PostureIntegration(resource_name: str,
                           args: PostureIntegrationArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def PostureIntegration(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           client_secret: Optional[str] = None,
                           posture_provider: Optional[str] = None,
                           client_id: Optional[str] = None,
                           cloud_id: Optional[str] = None,
                           tenant_id: Optional[str] = None)
    func NewPostureIntegration(ctx *Context, name string, args PostureIntegrationArgs, opts ...ResourceOption) (*PostureIntegration, error)
    public PostureIntegration(string name, PostureIntegrationArgs args, CustomResourceOptions? opts = null)
    public PostureIntegration(String name, PostureIntegrationArgs args)
    public PostureIntegration(String name, PostureIntegrationArgs args, CustomResourceOptions options)
    
    type: tailscale:PostureIntegration
    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 PostureIntegrationArgs
    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 PostureIntegrationArgs
    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 PostureIntegrationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PostureIntegrationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PostureIntegrationArgs
    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 postureIntegrationResource = new Tailscale.PostureIntegration("postureIntegrationResource", new()
    {
        ClientSecret = "string",
        PostureProvider = "string",
        ClientId = "string",
        CloudId = "string",
        TenantId = "string",
    });
    
    example, err := tailscale.NewPostureIntegration(ctx, "postureIntegrationResource", &tailscale.PostureIntegrationArgs{
    	ClientSecret:    pulumi.String("string"),
    	PostureProvider: pulumi.String("string"),
    	ClientId:        pulumi.String("string"),
    	CloudId:         pulumi.String("string"),
    	TenantId:        pulumi.String("string"),
    })
    
    var postureIntegrationResource = new PostureIntegration("postureIntegrationResource", PostureIntegrationArgs.builder()
        .clientSecret("string")
        .postureProvider("string")
        .clientId("string")
        .cloudId("string")
        .tenantId("string")
        .build());
    
    posture_integration_resource = tailscale.PostureIntegration("postureIntegrationResource",
        client_secret="string",
        posture_provider="string",
        client_id="string",
        cloud_id="string",
        tenant_id="string")
    
    const postureIntegrationResource = new tailscale.PostureIntegration("postureIntegrationResource", {
        clientSecret: "string",
        postureProvider: "string",
        clientId: "string",
        cloudId: "string",
        tenantId: "string",
    });
    
    type: tailscale:PostureIntegration
    properties:
        clientId: string
        clientSecret: string
        cloudId: string
        postureProvider: string
        tenantId: string
    

    PostureIntegration 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 PostureIntegration resource accepts the following input properties:

    ClientSecret string
    The secret (auth key, token, etc.) used to authenticate with the provider.
    PostureProvider string
    The type of posture integration data provider.
    ClientId string
    Unique identifier for your client.
    CloudId string
    Identifies which of the provider's clouds to integrate with.
    TenantId string
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    ClientSecret string
    The secret (auth key, token, etc.) used to authenticate with the provider.
    PostureProvider string
    The type of posture integration data provider.
    ClientId string
    Unique identifier for your client.
    CloudId string
    Identifies which of the provider's clouds to integrate with.
    TenantId string
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    clientSecret String
    The secret (auth key, token, etc.) used to authenticate with the provider.
    postureProvider String
    The type of posture integration data provider.
    clientId String
    Unique identifier for your client.
    cloudId String
    Identifies which of the provider's clouds to integrate with.
    tenantId String
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    clientSecret string
    The secret (auth key, token, etc.) used to authenticate with the provider.
    postureProvider string
    The type of posture integration data provider.
    clientId string
    Unique identifier for your client.
    cloudId string
    Identifies which of the provider's clouds to integrate with.
    tenantId string
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    client_secret str
    The secret (auth key, token, etc.) used to authenticate with the provider.
    posture_provider str
    The type of posture integration data provider.
    client_id str
    Unique identifier for your client.
    cloud_id str
    Identifies which of the provider's clouds to integrate with.
    tenant_id str
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    clientSecret String
    The secret (auth key, token, etc.) used to authenticate with the provider.
    postureProvider String
    The type of posture integration data provider.
    clientId String
    Unique identifier for your client.
    cloudId String
    Identifies which of the provider's clouds to integrate with.
    tenantId String
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PostureIntegration 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 PostureIntegration Resource

    Get an existing PostureIntegration 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?: PostureIntegrationState, opts?: CustomResourceOptions): PostureIntegration
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            client_id: Optional[str] = None,
            client_secret: Optional[str] = None,
            cloud_id: Optional[str] = None,
            posture_provider: Optional[str] = None,
            tenant_id: Optional[str] = None) -> PostureIntegration
    func GetPostureIntegration(ctx *Context, name string, id IDInput, state *PostureIntegrationState, opts ...ResourceOption) (*PostureIntegration, error)
    public static PostureIntegration Get(string name, Input<string> id, PostureIntegrationState? state, CustomResourceOptions? opts = null)
    public static PostureIntegration get(String name, Output<String> id, PostureIntegrationState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    ClientId string
    Unique identifier for your client.
    ClientSecret string
    The secret (auth key, token, etc.) used to authenticate with the provider.
    CloudId string
    Identifies which of the provider's clouds to integrate with.
    PostureProvider string
    The type of posture integration data provider.
    TenantId string
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    ClientId string
    Unique identifier for your client.
    ClientSecret string
    The secret (auth key, token, etc.) used to authenticate with the provider.
    CloudId string
    Identifies which of the provider's clouds to integrate with.
    PostureProvider string
    The type of posture integration data provider.
    TenantId string
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    clientId String
    Unique identifier for your client.
    clientSecret String
    The secret (auth key, token, etc.) used to authenticate with the provider.
    cloudId String
    Identifies which of the provider's clouds to integrate with.
    postureProvider String
    The type of posture integration data provider.
    tenantId String
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    clientId string
    Unique identifier for your client.
    clientSecret string
    The secret (auth key, token, etc.) used to authenticate with the provider.
    cloudId string
    Identifies which of the provider's clouds to integrate with.
    postureProvider string
    The type of posture integration data provider.
    tenantId string
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    client_id str
    Unique identifier for your client.
    client_secret str
    The secret (auth key, token, etc.) used to authenticate with the provider.
    cloud_id str
    Identifies which of the provider's clouds to integrate with.
    posture_provider str
    The type of posture integration data provider.
    tenant_id str
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
    clientId String
    Unique identifier for your client.
    clientSecret String
    The secret (auth key, token, etc.) used to authenticate with the provider.
    cloudId String
    Identifies which of the provider's clouds to integrate with.
    postureProvider String
    The type of posture integration data provider.
    tenantId String
    The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.

    Import

    Posture integration can be imported using the posture integration id, e.g.,

    $ pulumi import tailscale:index/postureIntegration:PostureIntegration sample_posture_integration 123456789
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tailscale pulumi/pulumi-tailscale
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the tailscale Terraform Provider.
    tailscale logo
    Tailscale v0.17.4 published on Thursday, Oct 24, 2024 by Pulumi