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",
}],
});
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",
}])
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
})
}
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",
},
},
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args ZeroTrustDevicePostureIntegrationArgs
- 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 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 string
- The unique name of the resource.
- args ZeroTrustDevicePostureIntegrationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustDevicePostureIntegrationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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:
- Account
Id 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
,kolide
,sentinelone_s2s
,tanium_s2s
,custom_s2s
. - Configs
List<Zero
Trust Device Posture Integration Config> - 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
or30m
.
- Account
Id 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
,kolide
,sentinelone_s2s
,tanium_s2s
,custom_s2s
. - Configs
[]Zero
Trust Device Posture Integration Config Args - 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
or30m
.
- account
Id 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
,kolide
,sentinelone_s2s
,tanium_s2s
,custom_s2s
. - configs
List<Zero
Trust Device Posture Integration Config> - 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
or30m
.
- account
Id 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
,kolide
,sentinelone_s2s
,tanium_s2s
,custom_s2s
. - configs
Zero
Trust Device Posture Integration Config[] - 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
or30m
.
- 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
,kolide
,sentinelone_s2s
,tanium_s2s
,custom_s2s
. - configs
Sequence[Zero
Trust Device Posture Integration Config Args] - 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
or30m
.
- account
Id 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
,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
or30m
.
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)
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.
- Account
Id string - The account identifier to target for the resource.
- Configs
List<Zero
Trust Device Posture Integration Config> - 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
or30m
. - 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 string - The account identifier to target for the resource.
- Configs
[]Zero
Trust Device Posture Integration Config Args - 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
or30m
. - 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 String - The account identifier to target for the resource.
- configs
List<Zero
Trust Device Posture Integration Config> - 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
or30m
. - 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 string - The account identifier to target for the resource.
- configs
Zero
Trust Device Posture Integration Config[] - 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
or30m
. - 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[Zero
Trust Device Posture Integration Config Args] - 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
or30m
. - 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
.
- account
Id 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
or30m
. - 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
- Access
Client stringId - The Access client ID to be used as the
Cf-Access-Client-ID
header when making a request to theapi_url
. - Access
Client stringSecret - The Access client secret to be used as the
Cf-Access-Client-Secret
header when making a request to theapi_url
. - Api
Url string - The third-party API's URL.
- Auth
Url string - The third-party authorization API URL.
- Client
Id string - The client identifier for authenticating API calls.
- Client
Key string - The client key for authenticating API calls.
- Client
Secret string - The client secret for authenticating API calls.
- Customer
Id string - The customer identifier for authenticating API calls.
- Access
Client stringId - The Access client ID to be used as the
Cf-Access-Client-ID
header when making a request to theapi_url
. - Access
Client stringSecret - The Access client secret to be used as the
Cf-Access-Client-Secret
header when making a request to theapi_url
. - Api
Url string - The third-party API's URL.
- Auth
Url string - The third-party authorization API URL.
- Client
Id string - The client identifier for authenticating API calls.
- Client
Key string - The client key for authenticating API calls.
- Client
Secret string - The client secret for authenticating API calls.
- Customer
Id string - The customer identifier for authenticating API calls.
- access
Client StringId - The Access client ID to be used as the
Cf-Access-Client-ID
header when making a request to theapi_url
. - access
Client StringSecret - The Access client secret to be used as the
Cf-Access-Client-Secret
header when making a request to theapi_url
. - api
Url String - The third-party API's URL.
- auth
Url String - The third-party authorization API URL.
- client
Id String - The client identifier for authenticating API calls.
- client
Key String - The client key for authenticating API calls.
- client
Secret String - The client secret for authenticating API calls.
- customer
Id String - The customer identifier for authenticating API calls.
- access
Client stringId - The Access client ID to be used as the
Cf-Access-Client-ID
header when making a request to theapi_url
. - access
Client stringSecret - The Access client secret to be used as the
Cf-Access-Client-Secret
header when making a request to theapi_url
. - api
Url string - The third-party API's URL.
- auth
Url string - The third-party authorization API URL.
- client
Id string - The client identifier for authenticating API calls.
- client
Key string - The client key for authenticating API calls.
- client
Secret string - The client secret for authenticating API calls.
- customer
Id string - The customer identifier for authenticating API calls.
- access_
client_ strid - The Access client ID to be used as the
Cf-Access-Client-ID
header when making a request to theapi_url
. - access_
client_ strsecret - The Access client secret to be used as the
Cf-Access-Client-Secret
header when making a request to theapi_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.
- access
Client StringId - The Access client ID to be used as the
Cf-Access-Client-ID
header when making a request to theapi_url
. - access
Client StringSecret - The Access client secret to be used as the
Cf-Access-Client-Secret
header when making a request to theapi_url
. - api
Url String - The third-party API's URL.
- auth
Url String - The third-party authorization API URL.
- client
Id String - The client identifier for authenticating API calls.
- client
Key String - The client key for authenticating API calls.
- client
Secret String - The client secret for authenticating API calls.
- customer
Id String - The customer identifier for authenticating API calls.
Import
$ pulumi import cloudflare:index/zeroTrustDevicePostureIntegration:ZeroTrustDevicePostureIntegration example <account_id>/<device_posture_integration_id>
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.