cloudflare.ZeroTrustNetworkHostnameRoute
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustNetworkHostnameRoute = new cloudflare.ZeroTrustNetworkHostnameRoute("example_zero_trust_network_hostname_route", {
accountId: "699d98642c564d2e855e9661899b7252",
comment: "example comment",
hostname: "office-1.local",
tunnelId: "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_network_hostname_route = cloudflare.ZeroTrustNetworkHostnameRoute("example_zero_trust_network_hostname_route",
account_id="699d98642c564d2e855e9661899b7252",
comment="example comment",
hostname="office-1.local",
tunnel_id="f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
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.NewZeroTrustNetworkHostnameRoute(ctx, "example_zero_trust_network_hostname_route", &cloudflare.ZeroTrustNetworkHostnameRouteArgs{
AccountId: pulumi.String("699d98642c564d2e855e9661899b7252"),
Comment: pulumi.String("example comment"),
Hostname: pulumi.String("office-1.local"),
TunnelId: pulumi.String("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415"),
})
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 exampleZeroTrustNetworkHostnameRoute = new Cloudflare.ZeroTrustNetworkHostnameRoute("example_zero_trust_network_hostname_route", new()
{
AccountId = "699d98642c564d2e855e9661899b7252",
Comment = "example comment",
Hostname = "office-1.local",
TunnelId = "f70ff985-a4ef-4643-bbbc-4a0ed4fc8415",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustNetworkHostnameRoute;
import com.pulumi.cloudflare.ZeroTrustNetworkHostnameRouteArgs;
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 exampleZeroTrustNetworkHostnameRoute = new ZeroTrustNetworkHostnameRoute("exampleZeroTrustNetworkHostnameRoute", ZeroTrustNetworkHostnameRouteArgs.builder()
.accountId("699d98642c564d2e855e9661899b7252")
.comment("example comment")
.hostname("office-1.local")
.tunnelId("f70ff985-a4ef-4643-bbbc-4a0ed4fc8415")
.build());
}
}
resources:
exampleZeroTrustNetworkHostnameRoute:
type: cloudflare:ZeroTrustNetworkHostnameRoute
name: example_zero_trust_network_hostname_route
properties:
accountId: 699d98642c564d2e855e9661899b7252
comment: example comment
hostname: office-1.local
tunnelId: f70ff985-a4ef-4643-bbbc-4a0ed4fc8415
Create ZeroTrustNetworkHostnameRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustNetworkHostnameRoute(name: string, args: ZeroTrustNetworkHostnameRouteArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustNetworkHostnameRoute(resource_name: str,
args: ZeroTrustNetworkHostnameRouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustNetworkHostnameRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
comment: Optional[str] = None,
hostname: Optional[str] = None,
tunnel_id: Optional[str] = None)
func NewZeroTrustNetworkHostnameRoute(ctx *Context, name string, args ZeroTrustNetworkHostnameRouteArgs, opts ...ResourceOption) (*ZeroTrustNetworkHostnameRoute, error)
public ZeroTrustNetworkHostnameRoute(string name, ZeroTrustNetworkHostnameRouteArgs args, CustomResourceOptions? opts = null)
public ZeroTrustNetworkHostnameRoute(String name, ZeroTrustNetworkHostnameRouteArgs args)
public ZeroTrustNetworkHostnameRoute(String name, ZeroTrustNetworkHostnameRouteArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustNetworkHostnameRoute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ZeroTrustNetworkHostnameRouteArgs
- 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 ZeroTrustNetworkHostnameRouteArgs
- 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 ZeroTrustNetworkHostnameRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustNetworkHostnameRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustNetworkHostnameRouteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var zeroTrustNetworkHostnameRouteResource = new Cloudflare.ZeroTrustNetworkHostnameRoute("zeroTrustNetworkHostnameRouteResource", new()
{
AccountId = "string",
Comment = "string",
Hostname = "string",
TunnelId = "string",
});
example, err := cloudflare.NewZeroTrustNetworkHostnameRoute(ctx, "zeroTrustNetworkHostnameRouteResource", &cloudflare.ZeroTrustNetworkHostnameRouteArgs{
AccountId: pulumi.String("string"),
Comment: pulumi.String("string"),
Hostname: pulumi.String("string"),
TunnelId: pulumi.String("string"),
})
var zeroTrustNetworkHostnameRouteResource = new ZeroTrustNetworkHostnameRoute("zeroTrustNetworkHostnameRouteResource", ZeroTrustNetworkHostnameRouteArgs.builder()
.accountId("string")
.comment("string")
.hostname("string")
.tunnelId("string")
.build());
zero_trust_network_hostname_route_resource = cloudflare.ZeroTrustNetworkHostnameRoute("zeroTrustNetworkHostnameRouteResource",
account_id="string",
comment="string",
hostname="string",
tunnel_id="string")
const zeroTrustNetworkHostnameRouteResource = new cloudflare.ZeroTrustNetworkHostnameRoute("zeroTrustNetworkHostnameRouteResource", {
accountId: "string",
comment: "string",
hostname: "string",
tunnelId: "string",
});
type: cloudflare:ZeroTrustNetworkHostnameRoute
properties:
accountId: string
comment: string
hostname: string
tunnelId: string
ZeroTrustNetworkHostnameRoute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ZeroTrustNetworkHostnameRoute resource accepts the following input properties:
- account_
id str - Cloudflare account ID
- comment str
- An optional description of the hostname route.
- hostname str
- The hostname of the route.
- tunnel_
id str - UUID of the tunnel.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustNetworkHostnameRoute resource produces the following output properties:
- Created
At string - Timestamp of when the resource was created.
- Deleted
At string - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - Id string
- The provider-assigned unique ID for this managed resource.
- Tunnel
Name string - A user-friendly name for a tunnel.
- Created
At string - Timestamp of when the resource was created.
- Deleted
At string - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - Id string
- The provider-assigned unique ID for this managed resource.
- Tunnel
Name string - A user-friendly name for a tunnel.
- created
At String - Timestamp of when the resource was created.
- deleted
At String - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - id String
- The provider-assigned unique ID for this managed resource.
- tunnel
Name String - A user-friendly name for a tunnel.
- created
At string - Timestamp of when the resource was created.
- deleted
At string - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - id string
- The provider-assigned unique ID for this managed resource.
- tunnel
Name string - A user-friendly name for a tunnel.
- created_
at str - Timestamp of when the resource was created.
- deleted_
at str - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - id str
- The provider-assigned unique ID for this managed resource.
- tunnel_
name str - A user-friendly name for a tunnel.
- created
At String - Timestamp of when the resource was created.
- deleted
At String - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - id String
- The provider-assigned unique ID for this managed resource.
- tunnel
Name String - A user-friendly name for a tunnel.
Look up Existing ZeroTrustNetworkHostnameRoute Resource
Get an existing ZeroTrustNetworkHostnameRoute 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?: ZeroTrustNetworkHostnameRouteState, opts?: CustomResourceOptions): ZeroTrustNetworkHostnameRoute
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
comment: Optional[str] = None,
created_at: Optional[str] = None,
deleted_at: Optional[str] = None,
hostname: Optional[str] = None,
tunnel_id: Optional[str] = None,
tunnel_name: Optional[str] = None) -> ZeroTrustNetworkHostnameRoute
func GetZeroTrustNetworkHostnameRoute(ctx *Context, name string, id IDInput, state *ZeroTrustNetworkHostnameRouteState, opts ...ResourceOption) (*ZeroTrustNetworkHostnameRoute, error)
public static ZeroTrustNetworkHostnameRoute Get(string name, Input<string> id, ZeroTrustNetworkHostnameRouteState? state, CustomResourceOptions? opts = null)
public static ZeroTrustNetworkHostnameRoute get(String name, Output<String> id, ZeroTrustNetworkHostnameRouteState state, CustomResourceOptions options)
resources: _: type: cloudflare:ZeroTrustNetworkHostnameRoute get: id: ${id}
- 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 - Cloudflare account ID
- Comment string
- An optional description of the hostname route.
- Created
At string - Timestamp of when the resource was created.
- Deleted
At string - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - Hostname string
- The hostname of the route.
- Tunnel
Id string - UUID of the tunnel.
- Tunnel
Name string - A user-friendly name for a tunnel.
- Account
Id string - Cloudflare account ID
- Comment string
- An optional description of the hostname route.
- Created
At string - Timestamp of when the resource was created.
- Deleted
At string - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - Hostname string
- The hostname of the route.
- Tunnel
Id string - UUID of the tunnel.
- Tunnel
Name string - A user-friendly name for a tunnel.
- account
Id String - Cloudflare account ID
- comment String
- An optional description of the hostname route.
- created
At String - Timestamp of when the resource was created.
- deleted
At String - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - hostname String
- The hostname of the route.
- tunnel
Id String - UUID of the tunnel.
- tunnel
Name String - A user-friendly name for a tunnel.
- account
Id string - Cloudflare account ID
- comment string
- An optional description of the hostname route.
- created
At string - Timestamp of when the resource was created.
- deleted
At string - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - hostname string
- The hostname of the route.
- tunnel
Id string - UUID of the tunnel.
- tunnel
Name string - A user-friendly name for a tunnel.
- account_
id str - Cloudflare account ID
- comment str
- An optional description of the hostname route.
- created_
at str - Timestamp of when the resource was created.
- deleted_
at str - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - hostname str
- The hostname of the route.
- tunnel_
id str - UUID of the tunnel.
- tunnel_
name str - A user-friendly name for a tunnel.
- account
Id String - Cloudflare account ID
- comment String
- An optional description of the hostname route.
- created
At String - Timestamp of when the resource was created.
- deleted
At String - Timestamp of when the resource was deleted. If
null
, the resource has not been deleted. - hostname String
- The hostname of the route.
- tunnel
Id String - UUID of the tunnel.
- tunnel
Name String - A user-friendly name for a tunnel.
Import
$ pulumi import cloudflare:index/zeroTrustNetworkHostnameRoute:ZeroTrustNetworkHostnameRoute example '<account_id>/<hostname_route_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.