1. Packages
  2. Tailscale Provider
  3. API Docs
  4. PostureIntegration
Tailscale v0.19.0 published on Thursday, Apr 10, 2025 by Pulumi

tailscale.PostureIntegration

Explore with Pulumi AI

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  samplePostureIntegration:
    type: tailscale:PostureIntegration
    name: sample_posture_integration
    properties:
      postureProvider: falcon
      cloudId: us-1
      clientId: clientid1
      clientSecret: test-secret1
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. PostureIntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. PostureIntegrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. PostureIntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
var postureIntegrationResource = new PostureIntegration("postureIntegrationResource", PostureIntegrationArgs.builder()
    .clientSecret("string")
    .postureProvider("string")
    .clientId("string")
    .cloudId("string")
    .tenantId("string")
    .build());
Copy
posture_integration_resource = tailscale.PostureIntegration("postureIntegrationResource",
    client_secret="string",
    posture_provider="string",
    client_id="string",
    cloud_id="string",
    tenant_id="string")
Copy
const postureIntegrationResource = new tailscale.PostureIntegration("postureIntegrationResource", {
    clientSecret: "string",
    postureProvider: "string",
    clientId: "string",
    cloudId: "string",
    tenantId: "string",
});
Copy
type: tailscale:PostureIntegration
properties:
    clientId: string
    clientSecret: string
    cloudId: string
    postureProvider: string
    tenantId: string
Copy

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 This property is required. string
The secret (auth key, token, etc.) used to authenticate with the provider.
PostureProvider
This property is required.
Changes to this property will trigger replacement.
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 This property is required. string
The secret (auth key, token, etc.) used to authenticate with the provider.
PostureProvider
This property is required.
Changes to this property will trigger replacement.
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 This property is required. String
The secret (auth key, token, etc.) used to authenticate with the provider.
postureProvider
This property is required.
Changes to this property will trigger replacement.
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 This property is required. string
The secret (auth key, token, etc.) used to authenticate with the provider.
postureProvider
This property is required.
Changes to this property will trigger replacement.
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 This property is required. str
The secret (auth key, token, etc.) used to authenticate with the provider.
posture_provider
This property is required.
Changes to this property will trigger replacement.
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 This property is required. String
The secret (auth key, token, etc.) used to authenticate with the provider.
postureProvider
This property is required.
Changes to this property will trigger replacement.
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)
resources:  _:    type: tailscale:PostureIntegration    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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
Copy

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.