1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getZeroTrustDeviceIpProfile
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Accepted Permissions

    • Zero Trust Read
    • Zero Trust Write

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustDeviceIpProfile = cloudflare.getZeroTrustDeviceIpProfile({
        accountId: "account_id",
        profileId: "profile_id",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_device_ip_profile = cloudflare.get_zero_trust_device_ip_profile(account_id="account_id",
        profile_id="profile_id")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetZeroTrustDeviceIpProfile(ctx, &cloudflare.LookupZeroTrustDeviceIpProfileArgs{
    			AccountId: pulumi.StringRef("account_id"),
    			ProfileId: pulumi.StringRef("profile_id"),
    		}, 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 exampleZeroTrustDeviceIpProfile = Cloudflare.Index.GetZeroTrustDeviceIpProfile.Invoke(new()
        {
            AccountId = "account_id",
            ProfileId = "profile_id",
        });
    
    });
    
    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.GetZeroTrustDeviceIpProfileArgs;
    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 exampleZeroTrustDeviceIpProfile = CloudflareFunctions.getZeroTrustDeviceIpProfile(GetZeroTrustDeviceIpProfileArgs.builder()
                .accountId("account_id")
                .profileId("profile_id")
                .build());
    
        }
    }
    
    variables:
      exampleZeroTrustDeviceIpProfile:
        fn::invoke:
          function: cloudflare:getZeroTrustDeviceIpProfile
          arguments:
            accountId: account_id
            profileId: profile_id
    

    Using getZeroTrustDeviceIpProfile

    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 getZeroTrustDeviceIpProfile(args: GetZeroTrustDeviceIpProfileArgs, opts?: InvokeOptions): Promise<GetZeroTrustDeviceIpProfileResult>
    function getZeroTrustDeviceIpProfileOutput(args: GetZeroTrustDeviceIpProfileOutputArgs, opts?: InvokeOptions): Output<GetZeroTrustDeviceIpProfileResult>
    def get_zero_trust_device_ip_profile(account_id: Optional[str] = None,
                                         filter: Optional[GetZeroTrustDeviceIpProfileFilter] = None,
                                         profile_id: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetZeroTrustDeviceIpProfileResult
    def get_zero_trust_device_ip_profile_output(account_id: Optional[pulumi.Input[str]] = None,
                                         filter: Optional[pulumi.Input[GetZeroTrustDeviceIpProfileFilterArgs]] = None,
                                         profile_id: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetZeroTrustDeviceIpProfileResult]
    func LookupZeroTrustDeviceIpProfile(ctx *Context, args *LookupZeroTrustDeviceIpProfileArgs, opts ...InvokeOption) (*LookupZeroTrustDeviceIpProfileResult, error)
    func LookupZeroTrustDeviceIpProfileOutput(ctx *Context, args *LookupZeroTrustDeviceIpProfileOutputArgs, opts ...InvokeOption) LookupZeroTrustDeviceIpProfileResultOutput

    > Note: This function is named LookupZeroTrustDeviceIpProfile in the Go SDK.

    public static class GetZeroTrustDeviceIpProfile 
    {
        public static Task<GetZeroTrustDeviceIpProfileResult> InvokeAsync(GetZeroTrustDeviceIpProfileArgs args, InvokeOptions? opts = null)
        public static Output<GetZeroTrustDeviceIpProfileResult> Invoke(GetZeroTrustDeviceIpProfileInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZeroTrustDeviceIpProfileResult> getZeroTrustDeviceIpProfile(GetZeroTrustDeviceIpProfileArgs args, InvokeOptions options)
    public static Output<GetZeroTrustDeviceIpProfileResult> getZeroTrustDeviceIpProfile(GetZeroTrustDeviceIpProfileArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getZeroTrustDeviceIpProfile:getZeroTrustDeviceIpProfile
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getZeroTrustDeviceIpProfile Result

    The following output properties are available:

    CreatedAt string
    The RFC3339Nano timestamp when the Device IP profile was created.
    Description string
    An optional description of the Device IP profile.
    Enabled bool
    Whether the Device IP profile is enabled.
    Id string
    The ID of this resource.
    Match string
    The wirefilter expression to match registrations. Available values: "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.saml_attributes".
    Name string
    A user-friendly name for the Device IP profile.
    Precedence int
    The precedence of the Device IP profile. Lower values indicate higher precedence. Device IP profile will be evaluated in ascending order of this field.
    SubnetId string
    The ID of the Subnet.
    UpdatedAt string
    The RFC3339Nano timestamp when the Device IP profile was last updated.
    AccountId string
    Filter GetZeroTrustDeviceIpProfileFilter
    ProfileId string
    CreatedAt string
    The RFC3339Nano timestamp when the Device IP profile was created.
    Description string
    An optional description of the Device IP profile.
    Enabled bool
    Whether the Device IP profile is enabled.
    Id string
    The ID of this resource.
    Match string
    The wirefilter expression to match registrations. Available values: "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.saml_attributes".
    Name string
    A user-friendly name for the Device IP profile.
    Precedence int
    The precedence of the Device IP profile. Lower values indicate higher precedence. Device IP profile will be evaluated in ascending order of this field.
    SubnetId string
    The ID of the Subnet.
    UpdatedAt string
    The RFC3339Nano timestamp when the Device IP profile was last updated.
    AccountId string
    Filter GetZeroTrustDeviceIpProfileFilter
    ProfileId string
    createdAt String
    The RFC3339Nano timestamp when the Device IP profile was created.
    description String
    An optional description of the Device IP profile.
    enabled Boolean
    Whether the Device IP profile is enabled.
    id String
    The ID of this resource.
    match String
    The wirefilter expression to match registrations. Available values: "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.saml_attributes".
    name String
    A user-friendly name for the Device IP profile.
    precedence Integer
    The precedence of the Device IP profile. Lower values indicate higher precedence. Device IP profile will be evaluated in ascending order of this field.
    subnetId String
    The ID of the Subnet.
    updatedAt String
    The RFC3339Nano timestamp when the Device IP profile was last updated.
    accountId String
    filter GetZeroTrustDeviceIpProfileFilter
    profileId String
    createdAt string
    The RFC3339Nano timestamp when the Device IP profile was created.
    description string
    An optional description of the Device IP profile.
    enabled boolean
    Whether the Device IP profile is enabled.
    id string
    The ID of this resource.
    match string
    The wirefilter expression to match registrations. Available values: "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.saml_attributes".
    name string
    A user-friendly name for the Device IP profile.
    precedence number
    The precedence of the Device IP profile. Lower values indicate higher precedence. Device IP profile will be evaluated in ascending order of this field.
    subnetId string
    The ID of the Subnet.
    updatedAt string
    The RFC3339Nano timestamp when the Device IP profile was last updated.
    accountId string
    filter GetZeroTrustDeviceIpProfileFilter
    profileId string
    created_at str
    The RFC3339Nano timestamp when the Device IP profile was created.
    description str
    An optional description of the Device IP profile.
    enabled bool
    Whether the Device IP profile is enabled.
    id str
    The ID of this resource.
    match str
    The wirefilter expression to match registrations. Available values: "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.saml_attributes".
    name str
    A user-friendly name for the Device IP profile.
    precedence int
    The precedence of the Device IP profile. Lower values indicate higher precedence. Device IP profile will be evaluated in ascending order of this field.
    subnet_id str
    The ID of the Subnet.
    updated_at str
    The RFC3339Nano timestamp when the Device IP profile was last updated.
    account_id str
    filter GetZeroTrustDeviceIpProfileFilter
    profile_id str
    createdAt String
    The RFC3339Nano timestamp when the Device IP profile was created.
    description String
    An optional description of the Device IP profile.
    enabled Boolean
    Whether the Device IP profile is enabled.
    id String
    The ID of this resource.
    match String
    The wirefilter expression to match registrations. Available values: "identity.name", "identity.email", "identity.groups.id", "identity.groups.name", "identity.groups.email", "identity.saml_attributes".
    name String
    A user-friendly name for the Device IP profile.
    precedence Number
    The precedence of the Device IP profile. Lower values indicate higher precedence. Device IP profile will be evaluated in ascending order of this field.
    subnetId String
    The ID of the Subnet.
    updatedAt String
    The RFC3339Nano timestamp when the Device IP profile was last updated.
    accountId String
    filter Property Map
    profileId String

    Supporting Types

    GetZeroTrustDeviceIpProfileFilter

    PerPage int
    The number of IP profiles to return per page.
    PerPage int
    The number of IP profiles to return per page.
    perPage Integer
    The number of IP profiles to return per page.
    perPage number
    The number of IP profiles to return per page.
    per_page int
    The number of IP profiles to return per page.
    perPage Number
    The number of IP profiles to return per page.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.