cloudflare.DeviceManagedNetworks
Provides a Cloudflare Device Managed Network resource. Device managed networks allow for building location-aware device settings policies.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var managedNetworks = new Cloudflare.DeviceManagedNetworks("managedNetworks", new()
{
AccountId = "f037e56e89293a057740de681ac9abbe",
Config = new Cloudflare.Inputs.DeviceManagedNetworksConfigArgs
{
Sha256 = "b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c",
TlsSockaddr = "foobar:1234",
},
Name = "managed-network-1",
Type = "tls",
});
});
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.NewDeviceManagedNetworks(ctx, "managedNetworks", &cloudflare.DeviceManagedNetworksArgs{
AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
Config: &cloudflare.DeviceManagedNetworksConfigArgs{
Sha256: pulumi.String("b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c"),
TlsSockaddr: pulumi.String("foobar:1234"),
},
Name: pulumi.String("managed-network-1"),
Type: pulumi.String("tls"),
})
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.DeviceManagedNetworks;
import com.pulumi.cloudflare.DeviceManagedNetworksArgs;
import com.pulumi.cloudflare.inputs.DeviceManagedNetworksConfigArgs;
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 managedNetworks = new DeviceManagedNetworks("managedNetworks", DeviceManagedNetworksArgs.builder()
.accountId("f037e56e89293a057740de681ac9abbe")
.config(DeviceManagedNetworksConfigArgs.builder()
.sha256("b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c")
.tlsSockaddr("foobar:1234")
.build())
.name("managed-network-1")
.type("tls")
.build());
}
}
import pulumi
import pulumi_cloudflare as cloudflare
managed_networks = cloudflare.DeviceManagedNetworks("managedNetworks",
account_id="f037e56e89293a057740de681ac9abbe",
config=cloudflare.DeviceManagedNetworksConfigArgs(
sha256="b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c",
tls_sockaddr="foobar:1234",
),
name="managed-network-1",
type="tls")
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const managedNetworks = new cloudflare.DeviceManagedNetworks("managedNetworks", {
accountId: "f037e56e89293a057740de681ac9abbe",
config: {
sha256: "b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c",
tlsSockaddr: "foobar:1234",
},
name: "managed-network-1",
type: "tls",
});
resources:
managedNetworks:
type: cloudflare:DeviceManagedNetworks
properties:
accountId: f037e56e89293a057740de681ac9abbe
config:
sha256: b5bb9d8014a0f9b1d61e21e796d78dccdf1352f23cd32812f4850b878ae4944c
tlsSockaddr: foobar:1234
name: managed-network-1
type: tls
Create DeviceManagedNetworks Resource
new DeviceManagedNetworks(name: string, args: DeviceManagedNetworksArgs, opts?: CustomResourceOptions);
@overload
def DeviceManagedNetworks(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
config: Optional[DeviceManagedNetworksConfigArgs] = None,
name: Optional[str] = None,
type: Optional[str] = None)
@overload
def DeviceManagedNetworks(resource_name: str,
args: DeviceManagedNetworksArgs,
opts: Optional[ResourceOptions] = None)
func NewDeviceManagedNetworks(ctx *Context, name string, args DeviceManagedNetworksArgs, opts ...ResourceOption) (*DeviceManagedNetworks, error)
public DeviceManagedNetworks(string name, DeviceManagedNetworksArgs args, CustomResourceOptions? opts = null)
public DeviceManagedNetworks(String name, DeviceManagedNetworksArgs args)
public DeviceManagedNetworks(String name, DeviceManagedNetworksArgs args, CustomResourceOptions options)
type: cloudflare:DeviceManagedNetworks
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeviceManagedNetworksArgs
- 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 DeviceManagedNetworksArgs
- 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 DeviceManagedNetworksArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DeviceManagedNetworksArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DeviceManagedNetworksArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
DeviceManagedNetworks 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 DeviceManagedNetworks resource accepts the following input properties:
- Account
Id string The account identifier to target for the resource.
- Config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- Name string
The name of the Device Managed Network. Must be unique.
- Type string
The type of Device Managed Network. Available values:
tls
.
- Account
Id string The account identifier to target for the resource.
- Config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- Name string
The name of the Device Managed Network. Must be unique.
- Type string
The type of Device Managed Network. Available values:
tls
.
- account
Id String The account identifier to target for the resource.
- config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- name String
The name of the Device Managed Network. Must be unique.
- type String
The type of Device Managed Network. Available values:
tls
.
- account
Id string The account identifier to target for the resource.
- config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- name string
The name of the Device Managed Network. Must be unique.
- type string
The type of Device Managed Network. Available values:
tls
.
- account_
id str The account identifier to target for the resource.
- config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- name str
The name of the Device Managed Network. Must be unique.
- type str
The type of Device Managed Network. Available values:
tls
.
- account
Id String The account identifier to target for the resource.
- config Property Map
The configuration containing information for the WARP client to detect the managed network.
- name String
The name of the Device Managed Network. Must be unique.
- type String
The type of Device Managed Network. Available values:
tls
.
Outputs
All input properties are implicitly available as output properties. Additionally, the DeviceManagedNetworks 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 DeviceManagedNetworks Resource
Get an existing DeviceManagedNetworks 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?: DeviceManagedNetworksState, opts?: CustomResourceOptions): DeviceManagedNetworks
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
config: Optional[DeviceManagedNetworksConfigArgs] = None,
name: Optional[str] = None,
type: Optional[str] = None) -> DeviceManagedNetworks
func GetDeviceManagedNetworks(ctx *Context, name string, id IDInput, state *DeviceManagedNetworksState, opts ...ResourceOption) (*DeviceManagedNetworks, error)
public static DeviceManagedNetworks Get(string name, Input<string> id, DeviceManagedNetworksState? state, CustomResourceOptions? opts = null)
public static DeviceManagedNetworks get(String name, Output<String> id, DeviceManagedNetworksState 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.
- Config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- Name string
The name of the Device Managed Network. Must be unique.
- Type string
The type of Device Managed Network. Available values:
tls
.
- Account
Id string The account identifier to target for the resource.
- Config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- Name string
The name of the Device Managed Network. Must be unique.
- Type string
The type of Device Managed Network. Available values:
tls
.
- account
Id String The account identifier to target for the resource.
- config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- name String
The name of the Device Managed Network. Must be unique.
- type String
The type of Device Managed Network. Available values:
tls
.
- account
Id string The account identifier to target for the resource.
- config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- name string
The name of the Device Managed Network. Must be unique.
- type string
The type of Device Managed Network. Available values:
tls
.
- account_
id str The account identifier to target for the resource.
- config
Device
Managed Networks Config Args The configuration containing information for the WARP client to detect the managed network.
- name str
The name of the Device Managed Network. Must be unique.
- type str
The type of Device Managed Network. Available values:
tls
.
- account
Id String The account identifier to target for the resource.
- config Property Map
The configuration containing information for the WARP client to detect the managed network.
- name String
The name of the Device Managed Network. Must be unique.
- type String
The type of Device Managed Network. Available values:
tls
.
Supporting Types
DeviceManagedNetworksConfig
- Sha256 string
The SHA-256 hash of the TLS certificate presented by the host found at tls_sockaddr. If absent, regular certificate verification (trusted roots, valid timestamp, etc) will be used to validate the certificate.
- Tls
Sockaddr string A network address of the form "host:port" that the WARP client will use to detect the presence of a TLS host.
- Sha256 string
The SHA-256 hash of the TLS certificate presented by the host found at tls_sockaddr. If absent, regular certificate verification (trusted roots, valid timestamp, etc) will be used to validate the certificate.
- Tls
Sockaddr string A network address of the form "host:port" that the WARP client will use to detect the presence of a TLS host.
- sha256 String
The SHA-256 hash of the TLS certificate presented by the host found at tls_sockaddr. If absent, regular certificate verification (trusted roots, valid timestamp, etc) will be used to validate the certificate.
- tls
Sockaddr String A network address of the form "host:port" that the WARP client will use to detect the presence of a TLS host.
- sha256 string
The SHA-256 hash of the TLS certificate presented by the host found at tls_sockaddr. If absent, regular certificate verification (trusted roots, valid timestamp, etc) will be used to validate the certificate.
- tls
Sockaddr string A network address of the form "host:port" that the WARP client will use to detect the presence of a TLS host.
- sha256 str
The SHA-256 hash of the TLS certificate presented by the host found at tls_sockaddr. If absent, regular certificate verification (trusted roots, valid timestamp, etc) will be used to validate the certificate.
- tls_
sockaddr str A network address of the form "host:port" that the WARP client will use to detect the presence of a TLS host.
- sha256 String
The SHA-256 hash of the TLS certificate presented by the host found at tls_sockaddr. If absent, regular certificate verification (trusted roots, valid timestamp, etc) will be used to validate the certificate.
- tls
Sockaddr String A network address of the form "host:port" that the WARP client will use to detect the presence of a TLS host.
Import
$ pulumi import cloudflare:index/deviceManagedNetworks:DeviceManagedNetworks example <account_id>/<device_managed_networks_id>
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
cloudflare
Terraform Provider.