Cloudflare v5.33.1 published on Wednesday, Jun 26, 2024 by Pulumi
cloudflare.getDevicePostureRules
Explore with Pulumi AI
Use this data source to lookup a list of Device Posture Rule
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const example = cloudflare.getDevicePostureRules({
accountId: "f037e56e89293a057740de681ac9abbe",
name: "check for /dev/random",
type: "file",
});
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.get_device_posture_rules(account_id="f037e56e89293a057740de681ac9abbe",
name="check for /dev/random",
type="file")
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.GetDevicePostureRules(ctx, &cloudflare.GetDevicePostureRulesArgs{
AccountId: "f037e56e89293a057740de681ac9abbe",
Name: pulumi.StringRef("check for /dev/random"),
Type: pulumi.StringRef("file"),
}, nil)
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 = Cloudflare.GetDevicePostureRules.Invoke(new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Name = "check for /dev/random",
Type = "file",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetDevicePostureRulesArgs;
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) {
final var example = CloudflareFunctions.getDevicePostureRules(GetDevicePostureRulesArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.name("check for /dev/random")
.type("file")
.build());
}
}
variables:
example:
fn::invoke:
Function: cloudflare:getDevicePostureRules
Arguments:
accountId: f037e56e89293a057740de681ac9abbe
name: check for /dev/random
type: file
Using getDevicePostureRules
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDevicePostureRules(args: GetDevicePostureRulesArgs, opts?: InvokeOptions): Promise<GetDevicePostureRulesResult>
function getDevicePostureRulesOutput(args: GetDevicePostureRulesOutputArgs, opts?: InvokeOptions): Output<GetDevicePostureRulesResult>
def get_device_posture_rules(account_id: Optional[str] = None,
name: Optional[str] = None,
type: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDevicePostureRulesResult
def get_device_posture_rules_output(account_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDevicePostureRulesResult]
func GetDevicePostureRules(ctx *Context, args *GetDevicePostureRulesArgs, opts ...InvokeOption) (*GetDevicePostureRulesResult, error)
func GetDevicePostureRulesOutput(ctx *Context, args *GetDevicePostureRulesOutputArgs, opts ...InvokeOption) GetDevicePostureRulesResultOutput
> Note: This function is named GetDevicePostureRules
in the Go SDK.
public static class GetDevicePostureRules
{
public static Task<GetDevicePostureRulesResult> InvokeAsync(GetDevicePostureRulesArgs args, InvokeOptions? opts = null)
public static Output<GetDevicePostureRulesResult> Invoke(GetDevicePostureRulesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDevicePostureRulesResult> getDevicePostureRules(GetDevicePostureRulesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: cloudflare:index/getDevicePostureRules:getDevicePostureRules
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Id string - The account identifier to target for the resource.
- Name string
- Name of the Device Posture Rule.
- Type string
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- Account
Id string - The account identifier to target for the resource.
- Name string
- Name of the Device Posture Rule.
- Type string
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- account
Id String - The account identifier to target for the resource.
- name String
- Name of the Device Posture Rule.
- type String
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- account
Id string - The account identifier to target for the resource.
- name string
- Name of the Device Posture Rule.
- type string
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- account_
id str - The account identifier to target for the resource.
- name str
- Name of the Device Posture Rule.
- type str
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- account
Id String - The account identifier to target for the resource.
- name String
- Name of the Device Posture Rule.
- type String
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
getDevicePostureRules Result
The following output properties are available:
- Account
Id string - The account identifier to target for the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
List<Get
Device Posture Rules Rule> - A list of matching Device Posture Rules.
- Name string
- Name of the Device Posture Rule.
- Type string
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- Account
Id string - The account identifier to target for the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Rules
[]Get
Device Posture Rules Rule - A list of matching Device Posture Rules.
- Name string
- Name of the Device Posture Rule.
- Type string
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- account
Id String - The account identifier to target for the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- rules
List<Get
Device Posture Rules Rule> - A list of matching Device Posture Rules.
- name String
- Name of the Device Posture Rule.
- type String
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- account
Id string - The account identifier to target for the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- rules
Get
Device Posture Rules Rule[] - A list of matching Device Posture Rules.
- name string
- Name of the Device Posture Rule.
- type string
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- account_
id str - The account identifier to target for the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- rules
Sequence[Get
Device Posture Rules Rule] - A list of matching Device Posture Rules.
- name str
- Name of the Device Posture Rule.
- type str
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
- account
Id String - The account identifier to target for the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- rules List<Property Map>
- A list of matching Device Posture Rules.
- name String
- Name of the Device Posture Rule.
- type String
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
.
Supporting Types
GetDevicePostureRulesRule
- Id string
- ID of the Device Posture Rule.
- Type string
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
- Description string
- Expiration string
- Expire posture results after the specified amount of time. Must be in the format
1h
or30m
. Valid units areh
andm
. - Name string
- Name of the device posture rule.
- Schedule string
- Tells the client when to run the device posture check. Must be in the format
1h
or30m
. Valid units areh
andm
.
- Id string
- ID of the Device Posture Rule.
- Type string
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
- Description string
- Expiration string
- Expire posture results after the specified amount of time. Must be in the format
1h
or30m
. Valid units areh
andm
. - Name string
- Name of the device posture rule.
- Schedule string
- Tells the client when to run the device posture check. Must be in the format
1h
or30m
. Valid units areh
andm
.
- id String
- ID of the Device Posture Rule.
- type String
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
- description String
- expiration String
- Expire posture results after the specified amount of time. Must be in the format
1h
or30m
. Valid units areh
andm
. - name String
- Name of the device posture rule.
- schedule String
- Tells the client when to run the device posture check. Must be in the format
1h
or30m
. Valid units areh
andm
.
- id string
- ID of the Device Posture Rule.
- type string
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
- description string
- expiration string
- Expire posture results after the specified amount of time. Must be in the format
1h
or30m
. Valid units areh
andm
. - name string
- Name of the device posture rule.
- schedule string
- Tells the client when to run the device posture check. Must be in the format
1h
or30m
. Valid units areh
andm
.
- id str
- ID of the Device Posture Rule.
- type str
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
- description str
- expiration str
- Expire posture results after the specified amount of time. Must be in the format
1h
or30m
. Valid units areh
andm
. - name str
- Name of the device posture rule.
- schedule str
- Tells the client when to run the device posture check. Must be in the format
1h
or30m
. Valid units areh
andm
.
- id String
- ID of the Device Posture Rule.
- type String
- The device posture rule type. Available values:
serial_number
,file
,application
,gateway
,warp
,domain_joined
,os_version
,disk_encryption
,firewall
,client_certificate
,workspace_one
,unique_client_id
,crowdstrike_s2s
,sentinelone
,kolide
,tanium_s2s
,intune
,sentinelone_s2s
- description String
- expiration String
- Expire posture results after the specified amount of time. Must be in the format
1h
or30m
. Valid units areh
andm
. - name String
- Name of the device posture rule.
- schedule String
- Tells the client when to run the device posture check. Must be in the format
1h
or30m
. Valid units areh
andm
.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.