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",
});
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:
- Client
Secret string - The secret (auth key, token, etc.) used to authenticate with the provider.
- Posture
Provider string - The type of posture integration data provider.
- Client
Id string - Unique identifier for your client.
- Cloud
Id string - Identifies which of the provider's clouds to integrate with.
- Tenant
Id string - The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
- Client
Secret string - The secret (auth key, token, etc.) used to authenticate with the provider.
- Posture
Provider string - The type of posture integration data provider.
- Client
Id string - Unique identifier for your client.
- Cloud
Id string - Identifies which of the provider's clouds to integrate with.
- Tenant
Id string - The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
- client
Secret String - The secret (auth key, token, etc.) used to authenticate with the provider.
- posture
Provider String - The type of posture integration data provider.
- client
Id String - Unique identifier for your client.
- cloud
Id String - Identifies which of the provider's clouds to integrate with.
- tenant
Id String - The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
- client
Secret string - The secret (auth key, token, etc.) used to authenticate with the provider.
- posture
Provider string - The type of posture integration data provider.
- client
Id string - Unique identifier for your client.
- cloud
Id string - Identifies which of the provider's clouds to integrate with.
- tenant
Id 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.
- client
Secret String - The secret (auth key, token, etc.) used to authenticate with the provider.
- posture
Provider String - The type of posture integration data provider.
- client
Id String - Unique identifier for your client.
- cloud
Id String - Identifies which of the provider's clouds to integrate with.
- tenant
Id 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.
- Client
Id string - Unique identifier for your client.
- Client
Secret string - The secret (auth key, token, etc.) used to authenticate with the provider.
- Cloud
Id string - Identifies which of the provider's clouds to integrate with.
- Posture
Provider string - The type of posture integration data provider.
- Tenant
Id string - The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
- Client
Id string - Unique identifier for your client.
- Client
Secret string - The secret (auth key, token, etc.) used to authenticate with the provider.
- Cloud
Id string - Identifies which of the provider's clouds to integrate with.
- Posture
Provider string - The type of posture integration data provider.
- Tenant
Id string - The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
- client
Id String - Unique identifier for your client.
- client
Secret String - The secret (auth key, token, etc.) used to authenticate with the provider.
- cloud
Id String - Identifies which of the provider's clouds to integrate with.
- posture
Provider String - The type of posture integration data provider.
- tenant
Id String - The Microsoft Intune directory (tenant) ID. For other providers, this is left blank.
- client
Id string - Unique identifier for your client.
- client
Secret string - The secret (auth key, token, etc.) used to authenticate with the provider.
- cloud
Id string - Identifies which of the provider's clouds to integrate with.
- posture
Provider string - The type of posture integration data provider.
- tenant
Id 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.
- client
Id String - Unique identifier for your client.
- client
Secret String - The secret (auth key, token, etc.) used to authenticate with the provider.
- cloud
Id String - Identifies which of the provider's clouds to integrate with.
- posture
Provider String - The type of posture integration data provider.
- tenant
Id 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.