cloudflare.DevicePostureIntegration
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
using System.Collections.Generic;
using System.Linq;
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:
- 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
.- Configs
List<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
.- Configs
[]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
.- configs
List<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
.- configs
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
.- configs
Sequence[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
.- 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 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.
- Account
Id string The account identifier to target for the resource.
- Configs
List<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
.
- Account
Id string The account identifier to target for the resource.
- Configs
[]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
.
- account
Id String The account identifier to target for the resource.
- configs
List<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
.
- account
Id string The account identifier to target for the resource.
- configs
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
.
- account_
id str The account identifier to target for the resource.
- configs
Sequence[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
.
- 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
.
Supporting Types
DevicePostureIntegrationConfig, DevicePostureIntegrationConfigArgs
- 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.
- 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.
- 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.
- 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.
- 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.
- 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/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.