cloudflare.DevicePostureIntegration

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

Example Usage

using System.Collections.Generic;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

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

});
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.NewDevicePostureIntegration(ctx, "example", &cloudflare.DevicePostureIntegrationArgs{
			AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
			Configs: cloudflare.DevicePostureIntegrationConfigArray{
				&cloudflare.DevicePostureIntegrationConfigArgs{
					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"),
				},
			},
			Interval: pulumi.String("24h"),
			Name:     pulumi.String("Device posture integration"),
			Type:     pulumi.String("workspace_one"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

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

    }
}
import pulumi
import pulumi_cloudflare as cloudflare

example = cloudflare.DevicePostureIntegration("example",
    account_id="f037e56e89293a057740de681ac9abbe",
    configs=[cloudflare.DevicePostureIntegrationConfigArgs(
        api_url="https://example.com/api",
        auth_url="https://example.com/connect/token",
        client_id="client-id",
        client_secret="client-secret",
    )],
    interval="24h",
    name="Device posture integration",
    type="workspace_one")
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

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

Create DevicePostureIntegration Resource

new DevicePostureIntegration(name: string, args: DevicePostureIntegrationArgs, opts?: CustomResourceOptions);
@overload
def DevicePostureIntegration(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             account_id: Optional[str] = None,
                             configs: Optional[Sequence[DevicePostureIntegrationConfigArgs]] = None,
                             identifier: Optional[str] = None,
                             interval: Optional[str] = None,
                             name: Optional[str] = None,
                             type: Optional[str] = None)
@overload
def DevicePostureIntegration(resource_name: str,
                             args: DevicePostureIntegrationArgs,
                             opts: Optional[ResourceOptions] = None)
func NewDevicePostureIntegration(ctx *Context, name string, args DevicePostureIntegrationArgs, opts ...ResourceOption) (*DevicePostureIntegration, error)
public DevicePostureIntegration(string name, DevicePostureIntegrationArgs args, CustomResourceOptions? opts = null)
public DevicePostureIntegration(String name, DevicePostureIntegrationArgs args)
public DevicePostureIntegration(String name, DevicePostureIntegrationArgs args, CustomResourceOptions options)
type: cloudflare:DevicePostureIntegration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DevicePostureIntegrationArgs
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 DevicePostureIntegrationArgs
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 DevicePostureIntegrationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DevicePostureIntegrationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DevicePostureIntegrationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DevicePostureIntegration Resource Properties

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

Inputs

The DevicePostureIntegration resource accepts the following input properties:

AccountId string

The account identifier to target for the resource.

Name string

Name of the device posture integration.

Type string

The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune.

Configs List<DevicePostureIntegrationConfigArgs>

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 string

The account identifier to target for the resource.

Name string

Name of the device posture integration.

Type string

The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune.

Configs []DevicePostureIntegrationConfigArgs

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 String

The account identifier to target for the resource.

name String

Name of the device posture integration.

type String

The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune.

configs List<DevicePostureIntegrationConfigArgs>

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 string

The account identifier to target for the resource.

name string

Name of the device posture integration.

type string

The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune.

configs DevicePostureIntegrationConfigArgs[]

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 str

The account identifier to target for the resource.

name str

Name of the device posture integration.

type str

The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune.

configs Sequence[DevicePostureIntegrationConfigArgs]

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 String

The account identifier to target for the resource.

name String

Name of the device posture integration.

type String

The device posture integration type. Available values: workspace_one, uptycs, crowdstrike_s2s, intune.

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 DevicePostureIntegration 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 DevicePostureIntegration Resource

Get an existing DevicePostureIntegration 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?: DevicePostureIntegrationState, opts?: CustomResourceOptions): DevicePostureIntegration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        configs: Optional[Sequence[DevicePostureIntegrationConfigArgs]] = None,
        identifier: Optional[str] = None,
        interval: Optional[str] = None,
        name: Optional[str] = None,
        type: Optional[str] = None) -> DevicePostureIntegration
func GetDevicePostureIntegration(ctx *Context, name string, id IDInput, state *DevicePostureIntegrationState, opts ...ResourceOption) (*DevicePostureIntegration, error)
public static DevicePostureIntegration Get(string name, Input<string> id, DevicePostureIntegrationState? state, CustomResourceOptions? opts = null)
public static DevicePostureIntegration get(String name, Output<String> id, DevicePostureIntegrationState 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:
AccountId string

The account identifier to target for the resource.

Configs List<DevicePostureIntegrationConfigArgs>

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.

AccountId string

The account identifier to target for the resource.

Configs []DevicePostureIntegrationConfigArgs

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.

accountId String

The account identifier to target for the resource.

configs List<DevicePostureIntegrationConfigArgs>

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.

accountId string

The account identifier to target for the resource.

configs DevicePostureIntegrationConfigArgs[]

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.

account_id str

The account identifier to target for the resource.

configs Sequence[DevicePostureIntegrationConfigArgs]

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.

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.

Supporting Types

DevicePostureIntegrationConfig

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.

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.

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.

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.

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.

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/devicePostureIntegration:DevicePostureIntegration example <account_id>/<device_posture_integration_id>

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes

This Pulumi package is based on the cloudflare Terraform Provider.