Expand description
Manages a Cloud Router interface. For more information see the official documentation and API.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let foobar = router_interface::create(
"foobar",
RouterInterfaceArgs::builder()
.ip_range("169.254.1.1/30")
.name("interface-1")
.region("us-central1")
.router("router-1")
.vpn_tunnel("tunnel-1")
.build_struct(),
);
}
§Import
Router interfaces can be imported using the project
(optional), region
, router
, and name
, e.g.
-
{{project_id}}/{{region}}/{{router}}/{{name}}
-
{{region}}/{{router}}/{{name}}
When using the pulumi import
command, router interfaces can be imported using one of the formats above. For example:
$ pulumi import gcp:compute/routerInterface:RouterInterface default {{project_id}}/{{region}}/{{router}}/{{name}}
$ pulumi import gcp:compute/routerInterface:RouterInterface default {{region}}/{{router}}/{{name}}
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments