1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustDevicePostureIntegration
Cloudflare v5.49.1 published on Tuesday, Feb 18, 2025 by Pulumi

cloudflare.ZeroTrustDevicePostureIntegration

Explore with Pulumi AI

Provides a Cloudflare Device Posture Integration resource. Device posture integrations configure third-party data providers for device posture rules.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const example = new cloudflare.ZeroTrustDevicePostureIntegration("example", {
    accountId: "f037e56e89293a057740de681ac9abbe",
    name: "Device posture integration",
    type: "workspace_one",
    interval: "24h",
    configs: [{
        apiUrl: "https://example.com/api",
        authUrl: "https://example.com/connect/token",
        clientId: "client-id",
        clientSecret: "client-secret",
    }],
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example = cloudflare.ZeroTrustDevicePostureIntegration("example",
    account_id="f037e56e89293a057740de681ac9abbe",
    name="Device posture integration",
    type="workspace_one",
    interval="24h",
    configs=[{
        "api_url": "https://example.com/api",
        "auth_url": "https://example.com/connect/token",
        "client_id": "client-id",
        "client_secret": "client-secret",
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.NewZeroTrustDevicePostureIntegration(ctx, "example", &cloudflare.ZeroTrustDevicePostureIntegrationArgs{
			AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
			Name:      pulumi.String("Device posture integration"),
			Type:      pulumi.String("workspace_one"),
			Interval:  pulumi.String("24h"),
			Configs: cloudflare.ZeroTrustDevicePostureIntegrationConfigArray{
				&cloudflare.ZeroTrustDevicePostureIntegrationConfigArgs{
					ApiUrl:       pulumi.String("https://example.com/api"),
					AuthUrl:      pulumi.String("https://example.com/connect/token"),
					ClientId:     pulumi.String("client-id"),
					ClientSecret: pulumi.String("client-secret"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var example = new Cloudflare.ZeroTrustDevicePostureIntegration("example", new()
    {
        AccountId = "f037e56e89293a057740de681ac9abbe",
        Name = "Device posture integration",
        Type = "workspace_one",
        Interval = "24h",
        Configs = new[]
        {
            new Cloudflare.Inputs.ZeroTrustDevicePostureIntegrationConfigArgs
            {
                ApiUrl = "https://example.com/api",
                AuthUrl = "https://example.com/connect/token",
                ClientId = "client-id",
                ClientSecret = "client-secret",
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustDevicePostureIntegration;
import com.pulumi.cloudflare.ZeroTrustDevicePostureIntegrationArgs;
import com.pulumi.cloudflare.inputs.ZeroTrustDevicePostureIntegrationConfigArgs;
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 example = new ZeroTrustDevicePostureIntegration("example", ZeroTrustDevicePostureIntegrationArgs.builder()
            .accountId("f037e56e89293a057740de681ac9abbe")
            .name("Device posture integration")
            .type("workspace_one")
            .interval("24h")
            .configs(ZeroTrustDevicePostureIntegrationConfigArgs.builder()
                .apiUrl("https://example.com/api")
                .authUrl("https://example.com/connect/token")
                .clientId("client-id")
                .clientSecret("client-secret")
                .build())
            .build());

    }
}
Copy
resources:
  example:
    type: cloudflare:ZeroTrustDevicePostureIntegration
    properties:
      accountId: f037e56e89293a057740de681ac9abbe
      name: Device posture integration
      type: workspace_one
      interval: 24h
      configs:
        - apiUrl: https://example.com/api
          authUrl: https://example.com/connect/token
          clientId: client-id
          clientSecret: client-secret
Copy

Create ZeroTrustDevicePostureIntegration Resource

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

Constructor syntax

new ZeroTrustDevicePostureIntegration(name: string, args: ZeroTrustDevicePostureIntegrationArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustDevicePostureIntegration(resource_name: str,
                                      args: ZeroTrustDevicePostureIntegrationArgs,
                                      opts: Optional[ResourceOptions] = None)

@overload
def ZeroTrustDevicePostureIntegration(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      account_id: Optional[str] = None,
                                      name: Optional[str] = None,
                                      type: Optional[str] = None,
                                      configs: Optional[Sequence[ZeroTrustDevicePostureIntegrationConfigArgs]] = None,
                                      identifier: Optional[str] = None,
                                      interval: Optional[str] = None)
func NewZeroTrustDevicePostureIntegration(ctx *Context, name string, args ZeroTrustDevicePostureIntegrationArgs, opts ...ResourceOption) (*ZeroTrustDevicePostureIntegration, error)
public ZeroTrustDevicePostureIntegration(string name, ZeroTrustDevicePostureIntegrationArgs args, CustomResourceOptions? opts = null)
public ZeroTrustDevicePostureIntegration(String name, ZeroTrustDevicePostureIntegrationArgs args)
public ZeroTrustDevicePostureIntegration(String name, ZeroTrustDevicePostureIntegrationArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustDevicePostureIntegration
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. ZeroTrustDevicePostureIntegrationArgs
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. ZeroTrustDevicePostureIntegrationArgs
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. ZeroTrustDevicePostureIntegrationArgs
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. ZeroTrustDevicePostureIntegrationArgs
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. ZeroTrustDevicePostureIntegrationArgs
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 zeroTrustDevicePostureIntegrationResource = new Cloudflare.ZeroTrustDevicePostureIntegration("zeroTrustDevicePostureIntegrationResource", new()
{
    AccountId = "string",
    Name = "string",
    Type = "string",
    Configs = new[]
    {
        new Cloudflare.Inputs.ZeroTrustDevicePostureIntegrationConfigArgs
        {
            AccessClientId = "string",
            AccessClientSecret = "string",
            ApiUrl = "string",
            AuthUrl = "string",
            ClientId = "string",
            ClientKey = "string",
            ClientSecret = "string",
            CustomerId = "string",
        },
    },
    Identifier = "string",
    Interval = "string",
});
Copy
example, err := cloudflare.NewZeroTrustDevicePostureIntegration(ctx, "zeroTrustDevicePostureIntegrationResource", &cloudflare.ZeroTrustDevicePostureIntegrationArgs{
	AccountId: pulumi.String("string"),
	Name:      pulumi.String("string"),
	Type:      pulumi.String("string"),
	Configs: cloudflare.ZeroTrustDevicePostureIntegrationConfigArray{
		&cloudflare.ZeroTrustDevicePostureIntegrationConfigArgs{
			AccessClientId:     pulumi.String("string"),
			AccessClientSecret: pulumi.String("string"),
			ApiUrl:             pulumi.String("string"),
			AuthUrl:            pulumi.String("string"),
			ClientId:           pulumi.String("string"),
			ClientKey:          pulumi.String("string"),
			ClientSecret:       pulumi.String("string"),
			CustomerId:         pulumi.String("string"),
		},
	},
	Identifier: pulumi.String("string"),
	Interval:   pulumi.String("string"),
})
Copy
var zeroTrustDevicePostureIntegrationResource = new ZeroTrustDevicePostureIntegration("zeroTrustDevicePostureIntegrationResource", ZeroTrustDevicePostureIntegrationArgs.builder()
    .accountId("string")
    .name("string")
    .type("string")
    .configs(ZeroTrustDevicePostureIntegrationConfigArgs.builder()
        .accessClientId("string")
        .accessClientSecret("string")
        .apiUrl("string")
        .authUrl("string")
        .clientId("string")
        .clientKey("string")
        .clientSecret("string")
        .customerId("string")
        .build())
    .identifier("string")
    .interval("string")
    .build());
Copy
zero_trust_device_posture_integration_resource = cloudflare.ZeroTrustDevicePostureIntegration("zeroTrustDevicePostureIntegrationResource",
    account_id="string",
    name="string",
    type="string",
    configs=[{
        "access_client_id": "string",
        "access_client_secret": "string",
        "api_url": "string",
        "auth_url": "string",
        "client_id": "string",
        "client_key": "string",
        "client_secret": "string",
        "customer_id": "string",
    }],
    identifier="string",
    interval="string")
Copy
const zeroTrustDevicePostureIntegrationResource = new cloudflare.ZeroTrustDevicePostureIntegration("zeroTrustDevicePostureIntegrationResource", {
    accountId: "string",
    name: "string",
    type: "string",
    configs: [{
        accessClientId: "string",
        accessClientSecret: "string",
        apiUrl: "string",
        authUrl: "string",
        clientId: "string",
        clientKey: "string",
        clientSecret: "string",
        customerId: "string",
    }],
    identifier: "string",
    interval: "string",
});
Copy
type: cloudflare:ZeroTrustDevicePostureIntegration
properties:
    accountId: string
    configs:
        - accessClientId: string
          accessClientSecret: string
          apiUrl: string
          authUrl: string
          clientId: string
          clientKey: string
          clientSecret: string
          customerId: string
    identifier: string
    interval: string
    name: string
    type: string
Copy

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

AccountId This property is required. string
The account identifier to target for the resource.
Name This property is required. string
Name of the device posture integration.
Type This property is required. string
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
Configs List<ZeroTrustDevicePostureIntegrationConfig>
The device posture integration's connection authorization parameters.
Identifier string
Interval string
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
AccountId This property is required. string
The account identifier to target for the resource.
Name This property is required. string
Name of the device posture integration.
Type This property is required. string
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
Configs []ZeroTrustDevicePostureIntegrationConfigArgs
The device posture integration's connection authorization parameters.
Identifier string
Interval string
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
accountId This property is required. String
The account identifier to target for the resource.
name This property is required. String
Name of the device posture integration.
type This property is required. String
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
configs List<ZeroTrustDevicePostureIntegrationConfig>
The device posture integration's connection authorization parameters.
identifier String
interval String
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
accountId This property is required. string
The account identifier to target for the resource.
name This property is required. string
Name of the device posture integration.
type This property is required. string
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
configs ZeroTrustDevicePostureIntegrationConfig[]
The device posture integration's connection authorization parameters.
identifier string
interval string
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
account_id This property is required. str
The account identifier to target for the resource.
name This property is required. str
Name of the device posture integration.
type This property is required. str
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
configs Sequence[ZeroTrustDevicePostureIntegrationConfigArgs]
The device posture integration's connection authorization parameters.
identifier str
interval str
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
accountId This property is required. String
The account identifier to target for the resource.
name This property is required. String
Name of the device posture integration.
type This property is required. String
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
configs List<Property Map>
The device posture integration's connection authorization parameters.
identifier String
interval String
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.

Outputs

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

Get an existing ZeroTrustDevicePostureIntegration 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?: ZeroTrustDevicePostureIntegrationState, opts?: CustomResourceOptions): ZeroTrustDevicePostureIntegration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        configs: Optional[Sequence[ZeroTrustDevicePostureIntegrationConfigArgs]] = None,
        identifier: Optional[str] = None,
        interval: Optional[str] = None,
        name: Optional[str] = None,
        type: Optional[str] = None) -> ZeroTrustDevicePostureIntegration
func GetZeroTrustDevicePostureIntegration(ctx *Context, name string, id IDInput, state *ZeroTrustDevicePostureIntegrationState, opts ...ResourceOption) (*ZeroTrustDevicePostureIntegration, error)
public static ZeroTrustDevicePostureIntegration Get(string name, Input<string> id, ZeroTrustDevicePostureIntegrationState? state, CustomResourceOptions? opts = null)
public static ZeroTrustDevicePostureIntegration get(String name, Output<String> id, ZeroTrustDevicePostureIntegrationState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:ZeroTrustDevicePostureIntegration    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:
AccountId string
The account identifier to target for the resource.
Configs List<ZeroTrustDevicePostureIntegrationConfig>
The device posture integration's connection authorization parameters.
Identifier string
Interval string
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
Name string
Name of the device posture integration.
Type string
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
AccountId string
The account identifier to target for the resource.
Configs []ZeroTrustDevicePostureIntegrationConfigArgs
The device posture integration's connection authorization parameters.
Identifier string
Interval string
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
Name string
Name of the device posture integration.
Type string
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
accountId String
The account identifier to target for the resource.
configs List<ZeroTrustDevicePostureIntegrationConfig>
The device posture integration's connection authorization parameters.
identifier String
interval String
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
name String
Name of the device posture integration.
type String
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
accountId string
The account identifier to target for the resource.
configs ZeroTrustDevicePostureIntegrationConfig[]
The device posture integration's connection authorization parameters.
identifier string
interval string
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
name string
Name of the device posture integration.
type string
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
account_id str
The account identifier to target for the resource.
configs Sequence[ZeroTrustDevicePostureIntegrationConfigArgs]
The device posture integration's connection authorization parameters.
identifier str
interval str
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
name str
Name of the device posture integration.
type str
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.
accountId String
The account identifier to target for the resource.
configs List<Property Map>
The device posture integration's connection authorization parameters.
identifier String
interval String
Indicates the frequency with which to poll the third-party API. Must be in the format 1h or 30m.
name String
Name of the device posture integration.
type String
The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune, kolide, sentinelone_s2s, tanium_s2s, custom_s2s.

Supporting Types

ZeroTrustDevicePostureIntegrationConfig
, ZeroTrustDevicePostureIntegrationConfigArgs

AccessClientId string
The Access client ID to be used as the Cf-Access-Client-ID header when making a request to the api_url.
AccessClientSecret string
The Access client secret to be used as the Cf-Access-Client-Secret header when making a request to the api_url.
ApiUrl string
The third-party API's URL.
AuthUrl string
The third-party authorization API URL.
ClientId string
The client identifier for authenticating API calls.
ClientKey string
The client key for authenticating API calls.
ClientSecret string
The client secret for authenticating API calls.
CustomerId string
The customer identifier for authenticating API calls.
AccessClientId string
The Access client ID to be used as the Cf-Access-Client-ID header when making a request to the api_url.
AccessClientSecret string
The Access client secret to be used as the Cf-Access-Client-Secret header when making a request to the api_url.
ApiUrl string
The third-party API's URL.
AuthUrl string
The third-party authorization API URL.
ClientId string
The client identifier for authenticating API calls.
ClientKey string
The client key for authenticating API calls.
ClientSecret string
The client secret for authenticating API calls.
CustomerId string
The customer identifier for authenticating API calls.
accessClientId String
The Access client ID to be used as the Cf-Access-Client-ID header when making a request to the api_url.
accessClientSecret String
The Access client secret to be used as the Cf-Access-Client-Secret header when making a request to the api_url.
apiUrl String
The third-party API's URL.
authUrl String
The third-party authorization API URL.
clientId String
The client identifier for authenticating API calls.
clientKey String
The client key for authenticating API calls.
clientSecret String
The client secret for authenticating API calls.
customerId String
The customer identifier for authenticating API calls.
accessClientId string
The Access client ID to be used as the Cf-Access-Client-ID header when making a request to the api_url.
accessClientSecret string
The Access client secret to be used as the Cf-Access-Client-Secret header when making a request to the api_url.
apiUrl string
The third-party API's URL.
authUrl string
The third-party authorization API URL.
clientId string
The client identifier for authenticating API calls.
clientKey string
The client key for authenticating API calls.
clientSecret string
The client secret for authenticating API calls.
customerId string
The customer identifier for authenticating API calls.
access_client_id str
The Access client ID to be used as the Cf-Access-Client-ID header when making a request to the api_url.
access_client_secret str
The Access client secret to be used as the Cf-Access-Client-Secret header when making a request to the api_url.
api_url str
The third-party API's URL.
auth_url str
The third-party authorization API URL.
client_id str
The client identifier for authenticating API calls.
client_key str
The client key for authenticating API calls.
client_secret str
The client secret for authenticating API calls.
customer_id str
The customer identifier for authenticating API calls.
accessClientId String
The Access client ID to be used as the Cf-Access-Client-ID header when making a request to the api_url.
accessClientSecret String
The Access client secret to be used as the Cf-Access-Client-Secret header when making a request to the api_url.
apiUrl String
The third-party API's URL.
authUrl String
The third-party authorization API URL.
clientId String
The client identifier for authenticating API calls.
clientKey String
The client key for authenticating API calls.
clientSecret String
The client secret for authenticating API calls.
customerId String
The customer identifier for authenticating API calls.

Import

$ pulumi import cloudflare:index/zeroTrustDevicePostureIntegration:ZeroTrustDevicePostureIntegration example <account_id>/<device_posture_integration_id>
Copy

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

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.