get Device Posture Rules
suspend fun getDevicePostureRules(argument: GetDevicePostureRulesPlainArgs): GetDevicePostureRulesResult
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",
});Content copied to clipboard
import pulumi
import pulumi_cloudflare as cloudflare
example = cloudflare.get_device_posture_rules(account_id="f037e56e89293a057740de681ac9abbe",
name="check for /dev/random",
type="file")Content copied to clipboard
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",
});
});Content copied to clipboard
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
})
}Content copied to clipboard
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());
}
}Content copied to clipboard
variables:
example:
fn::invoke:
Function: cloudflare:getDevicePostureRules
Arguments:
accountId: f037e56e89293a057740de681ac9abbe
name: check for /dev/random
type: fileContent copied to clipboard
Return
A collection of values returned by getDevicePostureRules.
Parameters
argument
A collection of arguments for invoking getDevicePostureRules.
suspend fun getDevicePostureRules(accountId: String, name: String? = null, type: String? = null): GetDevicePostureRulesResult
Return
A collection of values returned by getDevicePostureRules.
Parameters
account Id
The account identifier to target for the resource.
name
Name of the Device Posture Rule.
type
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.
See also
suspend fun getDevicePostureRules(argument: suspend GetDevicePostureRulesPlainArgsBuilder.() -> Unit): GetDevicePostureRulesResult
Return
A collection of values returned by getDevicePostureRules.
Parameters
argument
Builder for com.pulumi.cloudflare.kotlin.inputs.GetDevicePostureRulesPlainArgs.