ibm.IsSubnetPublicGatewayAttachment
Explore with Pulumi AI
Create, update, or delete a public gateway attachment for a VPC subnet. Public gateways enable a VPC subnet and all the instances that are connected to the subnet to connect to the internet. For more information, see use a Public Gateway for external connectivity of a subnet.
Note:
VPC infrastructure services are a regional specific based endpoint, by default targets to us-south
. Please make sure to target right region in the provider block as shown in the provider.tf
file, if VPC service is created in region other than us-south
.
provider.tf
import * as pulumi from "@pulumi/pulumi";
import pulumi
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
}
}
{}
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const exampleIsVpc = new ibm.IsVpc("exampleIsVpc", {});
const exampleIsSubnet = new ibm.IsSubnet("exampleIsSubnet", {
vpc: exampleIsVpc.isVpcId,
zone: "eu-gb-1",
totalIpv4AddressCount: 16,
});
const exampleIsPublicGateway = new ibm.IsPublicGateway("exampleIsPublicGateway", {
vpc: exampleIsVpc.isVpcId,
zone: "eu-gb-1",
});
const exampleIsSubnetPublicGatewayAttachment = new ibm.IsSubnetPublicGatewayAttachment("exampleIsSubnetPublicGatewayAttachment", {
subnet: exampleIsSubnet.isSubnetId,
publicGateway: exampleIsPublicGateway.isPublicGatewayId,
});
import pulumi
import pulumi_ibm as ibm
example_is_vpc = ibm.IsVpc("exampleIsVpc")
example_is_subnet = ibm.IsSubnet("exampleIsSubnet",
vpc=example_is_vpc.is_vpc_id,
zone="eu-gb-1",
total_ipv4_address_count=16)
example_is_public_gateway = ibm.IsPublicGateway("exampleIsPublicGateway",
vpc=example_is_vpc.is_vpc_id,
zone="eu-gb-1")
example_is_subnet_public_gateway_attachment = ibm.IsSubnetPublicGatewayAttachment("exampleIsSubnetPublicGatewayAttachment",
subnet=example_is_subnet.is_subnet_id,
public_gateway=example_is_public_gateway.is_public_gateway_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleIsVpc, err := ibm.NewIsVpc(ctx, "exampleIsVpc", nil)
if err != nil {
return err
}
exampleIsSubnet, err := ibm.NewIsSubnet(ctx, "exampleIsSubnet", &ibm.IsSubnetArgs{
Vpc: exampleIsVpc.IsVpcId,
Zone: pulumi.String("eu-gb-1"),
TotalIpv4AddressCount: pulumi.Float64(16),
})
if err != nil {
return err
}
exampleIsPublicGateway, err := ibm.NewIsPublicGateway(ctx, "exampleIsPublicGateway", &ibm.IsPublicGatewayArgs{
Vpc: exampleIsVpc.IsVpcId,
Zone: pulumi.String("eu-gb-1"),
})
if err != nil {
return err
}
_, err = ibm.NewIsSubnetPublicGatewayAttachment(ctx, "exampleIsSubnetPublicGatewayAttachment", &ibm.IsSubnetPublicGatewayAttachmentArgs{
Subnet: exampleIsSubnet.IsSubnetId,
PublicGateway: exampleIsPublicGateway.IsPublicGatewayId,
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var exampleIsVpc = new Ibm.IsVpc("exampleIsVpc");
var exampleIsSubnet = new Ibm.IsSubnet("exampleIsSubnet", new()
{
Vpc = exampleIsVpc.IsVpcId,
Zone = "eu-gb-1",
TotalIpv4AddressCount = 16,
});
var exampleIsPublicGateway = new Ibm.IsPublicGateway("exampleIsPublicGateway", new()
{
Vpc = exampleIsVpc.IsVpcId,
Zone = "eu-gb-1",
});
var exampleIsSubnetPublicGatewayAttachment = new Ibm.IsSubnetPublicGatewayAttachment("exampleIsSubnetPublicGatewayAttachment", new()
{
Subnet = exampleIsSubnet.IsSubnetId,
PublicGateway = exampleIsPublicGateway.IsPublicGatewayId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IsVpc;
import com.pulumi.ibm.IsSubnet;
import com.pulumi.ibm.IsSubnetArgs;
import com.pulumi.ibm.IsPublicGateway;
import com.pulumi.ibm.IsPublicGatewayArgs;
import com.pulumi.ibm.IsSubnetPublicGatewayAttachment;
import com.pulumi.ibm.IsSubnetPublicGatewayAttachmentArgs;
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 exampleIsVpc = new IsVpc("exampleIsVpc");
var exampleIsSubnet = new IsSubnet("exampleIsSubnet", IsSubnetArgs.builder()
.vpc(exampleIsVpc.isVpcId())
.zone("eu-gb-1")
.totalIpv4AddressCount(16)
.build());
var exampleIsPublicGateway = new IsPublicGateway("exampleIsPublicGateway", IsPublicGatewayArgs.builder()
.vpc(exampleIsVpc.isVpcId())
.zone("eu-gb-1")
.build());
var exampleIsSubnetPublicGatewayAttachment = new IsSubnetPublicGatewayAttachment("exampleIsSubnetPublicGatewayAttachment", IsSubnetPublicGatewayAttachmentArgs.builder()
.subnet(exampleIsSubnet.isSubnetId())
.publicGateway(exampleIsPublicGateway.isPublicGatewayId())
.build());
}
}
resources:
exampleIsVpc:
type: ibm:IsVpc
exampleIsSubnet:
type: ibm:IsSubnet
properties:
vpc: ${exampleIsVpc.isVpcId}
zone: eu-gb-1
totalIpv4AddressCount: 16
exampleIsPublicGateway:
type: ibm:IsPublicGateway
properties:
vpc: ${exampleIsVpc.isVpcId}
zone: eu-gb-1
exampleIsSubnetPublicGatewayAttachment:
type: ibm:IsSubnetPublicGatewayAttachment
properties:
subnet: ${exampleIsSubnet.isSubnetId}
publicGateway: ${exampleIsPublicGateway.isPublicGatewayId}
Create IsSubnetPublicGatewayAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IsSubnetPublicGatewayAttachment(name: string, args: IsSubnetPublicGatewayAttachmentArgs, opts?: CustomResourceOptions);
@overload
def IsSubnetPublicGatewayAttachment(resource_name: str,
args: IsSubnetPublicGatewayAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IsSubnetPublicGatewayAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
public_gateway: Optional[str] = None,
subnet: Optional[str] = None,
is_subnet_public_gateway_attachment_id: Optional[str] = None,
timeouts: Optional[IsSubnetPublicGatewayAttachmentTimeoutsArgs] = None)
func NewIsSubnetPublicGatewayAttachment(ctx *Context, name string, args IsSubnetPublicGatewayAttachmentArgs, opts ...ResourceOption) (*IsSubnetPublicGatewayAttachment, error)
public IsSubnetPublicGatewayAttachment(string name, IsSubnetPublicGatewayAttachmentArgs args, CustomResourceOptions? opts = null)
public IsSubnetPublicGatewayAttachment(String name, IsSubnetPublicGatewayAttachmentArgs args)
public IsSubnetPublicGatewayAttachment(String name, IsSubnetPublicGatewayAttachmentArgs args, CustomResourceOptions options)
type: ibm:IsSubnetPublicGatewayAttachment
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 IsSubnetPublicGatewayAttachmentArgs
- 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 IsSubnetPublicGatewayAttachmentArgs
- 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 IsSubnetPublicGatewayAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IsSubnetPublicGatewayAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IsSubnetPublicGatewayAttachmentArgs
- 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 isSubnetPublicGatewayAttachmentResource = new Ibm.IsSubnetPublicGatewayAttachment("isSubnetPublicGatewayAttachmentResource", new()
{
PublicGateway = "string",
Subnet = "string",
IsSubnetPublicGatewayAttachmentId = "string",
Timeouts = new Ibm.Inputs.IsSubnetPublicGatewayAttachmentTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := ibm.NewIsSubnetPublicGatewayAttachment(ctx, "isSubnetPublicGatewayAttachmentResource", &ibm.IsSubnetPublicGatewayAttachmentArgs{
PublicGateway: pulumi.String("string"),
Subnet: pulumi.String("string"),
IsSubnetPublicGatewayAttachmentId: pulumi.String("string"),
Timeouts: &ibm.IsSubnetPublicGatewayAttachmentTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var isSubnetPublicGatewayAttachmentResource = new IsSubnetPublicGatewayAttachment("isSubnetPublicGatewayAttachmentResource", IsSubnetPublicGatewayAttachmentArgs.builder()
.publicGateway("string")
.subnet("string")
.isSubnetPublicGatewayAttachmentId("string")
.timeouts(IsSubnetPublicGatewayAttachmentTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
is_subnet_public_gateway_attachment_resource = ibm.IsSubnetPublicGatewayAttachment("isSubnetPublicGatewayAttachmentResource",
public_gateway="string",
subnet="string",
is_subnet_public_gateway_attachment_id="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const isSubnetPublicGatewayAttachmentResource = new ibm.IsSubnetPublicGatewayAttachment("isSubnetPublicGatewayAttachmentResource", {
publicGateway: "string",
subnet: "string",
isSubnetPublicGatewayAttachmentId: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: ibm:IsSubnetPublicGatewayAttachment
properties:
isSubnetPublicGatewayAttachmentId: string
publicGateway: string
subnet: string
timeouts:
create: string
delete: string
update: string
IsSubnetPublicGatewayAttachment 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 IsSubnetPublicGatewayAttachment resource accepts the following input properties:
- Public
Gateway string - The public gateway identifier.
- Subnet string
- The subnet identifier.
- Is
Subnet stringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- Timeouts
Is
Subnet Public Gateway Attachment Timeouts
- Public
Gateway string - The public gateway identifier.
- Subnet string
- The subnet identifier.
- Is
Subnet stringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- Timeouts
Is
Subnet Public Gateway Attachment Timeouts Args
- public
Gateway String - The public gateway identifier.
- subnet String
- The subnet identifier.
- is
Subnet StringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- timeouts
Is
Subnet Public Gateway Attachment Timeouts
- public
Gateway string - The public gateway identifier.
- subnet string
- The subnet identifier.
- is
Subnet stringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- timeouts
Is
Subnet Public Gateway Attachment Timeouts
- public_
gateway str - The public gateway identifier.
- subnet str
- The subnet identifier.
- is_
subnet_ strpublic_ gateway_ attachment_ id - (String) The unique identifier of the subnet.
- timeouts
Is
Subnet Public Gateway Attachment Timeouts Args
- public
Gateway String - The public gateway identifier.
- subnet String
- The subnet identifier.
- is
Subnet StringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the IsSubnetPublicGatewayAttachment resource produces the following output properties:
- Crn string
- (String) The CRN for this public gateway.
- Floating
Ip Dictionary<string, string> - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (String) The user-defined name for this public gateway.
- Resource
Group string - (String) The resource group identifier for this public gateway.
- Resource
Group stringName - (String) The name for the resource group for this public gateway.
- Resource
Type string - (String) The resource type for this public gateway.
- Status string
- (String) The status of this public gateway.
- Vpc string
- (String) The identifier of the VPC this public gateway serves.
- Zone string
- (String) The zone this public gateway resides in.
- Crn string
- (String) The CRN for this public gateway.
- Floating
Ip map[string]string - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- (String) The user-defined name for this public gateway.
- Resource
Group string - (String) The resource group identifier for this public gateway.
- Resource
Group stringName - (String) The name for the resource group for this public gateway.
- Resource
Type string - (String) The resource type for this public gateway.
- Status string
- (String) The status of this public gateway.
- Vpc string
- (String) The identifier of the VPC this public gateway serves.
- Zone string
- (String) The zone this public gateway resides in.
- crn String
- (String) The CRN for this public gateway.
- floating
Ip Map<String,String> - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - id String
- The provider-assigned unique ID for this managed resource.
- name String
- (String) The user-defined name for this public gateway.
- resource
Group String - (String) The resource group identifier for this public gateway.
- resource
Group StringName - (String) The name for the resource group for this public gateway.
- resource
Type String - (String) The resource type for this public gateway.
- status String
- (String) The status of this public gateway.
- vpc String
- (String) The identifier of the VPC this public gateway serves.
- zone String
- (String) The zone this public gateway resides in.
- crn string
- (String) The CRN for this public gateway.
- floating
Ip {[key: string]: string} - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - id string
- The provider-assigned unique ID for this managed resource.
- name string
- (String) The user-defined name for this public gateway.
- resource
Group string - (String) The resource group identifier for this public gateway.
- resource
Group stringName - (String) The name for the resource group for this public gateway.
- resource
Type string - (String) The resource type for this public gateway.
- status string
- (String) The status of this public gateway.
- vpc string
- (String) The identifier of the VPC this public gateway serves.
- zone string
- (String) The zone this public gateway resides in.
- crn str
- (String) The CRN for this public gateway.
- floating_
ip Mapping[str, str] - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - id str
- The provider-assigned unique ID for this managed resource.
- name str
- (String) The user-defined name for this public gateway.
- resource_
group str - (String) The resource group identifier for this public gateway.
- resource_
group_ strname - (String) The name for the resource group for this public gateway.
- resource_
type str - (String) The resource type for this public gateway.
- status str
- (String) The status of this public gateway.
- vpc str
- (String) The identifier of the VPC this public gateway serves.
- zone str
- (String) The zone this public gateway resides in.
- crn String
- (String) The CRN for this public gateway.
- floating
Ip Map<String> - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - id String
- The provider-assigned unique ID for this managed resource.
- name String
- (String) The user-defined name for this public gateway.
- resource
Group String - (String) The resource group identifier for this public gateway.
- resource
Group StringName - (String) The name for the resource group for this public gateway.
- resource
Type String - (String) The resource type for this public gateway.
- status String
- (String) The status of this public gateway.
- vpc String
- (String) The identifier of the VPC this public gateway serves.
- zone String
- (String) The zone this public gateway resides in.
Look up Existing IsSubnetPublicGatewayAttachment Resource
Get an existing IsSubnetPublicGatewayAttachment 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?: IsSubnetPublicGatewayAttachmentState, opts?: CustomResourceOptions): IsSubnetPublicGatewayAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
crn: Optional[str] = None,
floating_ip: Optional[Mapping[str, str]] = None,
is_subnet_public_gateway_attachment_id: Optional[str] = None,
name: Optional[str] = None,
public_gateway: Optional[str] = None,
resource_group: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_type: Optional[str] = None,
status: Optional[str] = None,
subnet: Optional[str] = None,
timeouts: Optional[IsSubnetPublicGatewayAttachmentTimeoutsArgs] = None,
vpc: Optional[str] = None,
zone: Optional[str] = None) -> IsSubnetPublicGatewayAttachment
func GetIsSubnetPublicGatewayAttachment(ctx *Context, name string, id IDInput, state *IsSubnetPublicGatewayAttachmentState, opts ...ResourceOption) (*IsSubnetPublicGatewayAttachment, error)
public static IsSubnetPublicGatewayAttachment Get(string name, Input<string> id, IsSubnetPublicGatewayAttachmentState? state, CustomResourceOptions? opts = null)
public static IsSubnetPublicGatewayAttachment get(String name, Output<String> id, IsSubnetPublicGatewayAttachmentState state, CustomResourceOptions options)
resources: _: type: ibm:IsSubnetPublicGatewayAttachment 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.
- Crn string
- (String) The CRN for this public gateway.
- Floating
Ip Dictionary<string, string> - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - Is
Subnet stringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- Name string
- (String) The user-defined name for this public gateway.
- Public
Gateway string - The public gateway identifier.
- Resource
Group string - (String) The resource group identifier for this public gateway.
- Resource
Group stringName - (String) The name for the resource group for this public gateway.
- Resource
Type string - (String) The resource type for this public gateway.
- Status string
- (String) The status of this public gateway.
- Subnet string
- The subnet identifier.
- Timeouts
Is
Subnet Public Gateway Attachment Timeouts - Vpc string
- (String) The identifier of the VPC this public gateway serves.
- Zone string
- (String) The zone this public gateway resides in.
- Crn string
- (String) The CRN for this public gateway.
- Floating
Ip map[string]string - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - Is
Subnet stringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- Name string
- (String) The user-defined name for this public gateway.
- Public
Gateway string - The public gateway identifier.
- Resource
Group string - (String) The resource group identifier for this public gateway.
- Resource
Group stringName - (String) The name for the resource group for this public gateway.
- Resource
Type string - (String) The resource type for this public gateway.
- Status string
- (String) The status of this public gateway.
- Subnet string
- The subnet identifier.
- Timeouts
Is
Subnet Public Gateway Attachment Timeouts Args - Vpc string
- (String) The identifier of the VPC this public gateway serves.
- Zone string
- (String) The zone this public gateway resides in.
- crn String
- (String) The CRN for this public gateway.
- floating
Ip Map<String,String> - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - is
Subnet StringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- name String
- (String) The user-defined name for this public gateway.
- public
Gateway String - The public gateway identifier.
- resource
Group String - (String) The resource group identifier for this public gateway.
- resource
Group StringName - (String) The name for the resource group for this public gateway.
- resource
Type String - (String) The resource type for this public gateway.
- status String
- (String) The status of this public gateway.
- subnet String
- The subnet identifier.
- timeouts
Is
Subnet Public Gateway Attachment Timeouts - vpc String
- (String) The identifier of the VPC this public gateway serves.
- zone String
- (String) The zone this public gateway resides in.
- crn string
- (String) The CRN for this public gateway.
- floating
Ip {[key: string]: string} - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - is
Subnet stringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- name string
- (String) The user-defined name for this public gateway.
- public
Gateway string - The public gateway identifier.
- resource
Group string - (String) The resource group identifier for this public gateway.
- resource
Group stringName - (String) The name for the resource group for this public gateway.
- resource
Type string - (String) The resource type for this public gateway.
- status string
- (String) The status of this public gateway.
- subnet string
- The subnet identifier.
- timeouts
Is
Subnet Public Gateway Attachment Timeouts - vpc string
- (String) The identifier of the VPC this public gateway serves.
- zone string
- (String) The zone this public gateway resides in.
- crn str
- (String) The CRN for this public gateway.
- floating_
ip Mapping[str, str] - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - is_
subnet_ strpublic_ gateway_ attachment_ id - (String) The unique identifier of the subnet.
- name str
- (String) The user-defined name for this public gateway.
- public_
gateway str - The public gateway identifier.
- resource_
group str - (String) The resource group identifier for this public gateway.
- resource_
group_ strname - (String) The name for the resource group for this public gateway.
- resource_
type str - (String) The resource type for this public gateway.
- status str
- (String) The status of this public gateway.
- subnet str
- The subnet identifier.
- timeouts
Is
Subnet Public Gateway Attachment Timeouts Args - vpc str
- (String) The identifier of the VPC this public gateway serves.
- zone str
- (String) The zone this public gateway resides in.
- crn String
- (String) The CRN for this public gateway.
- floating
Ip Map<String> - (List) The floating IP bound to this public gateway.
Nested scheme for
floating_ip
: - is
Subnet StringPublic Gateway Attachment Id - (String) The unique identifier of the subnet.
- name String
- (String) The user-defined name for this public gateway.
- public
Gateway String - The public gateway identifier.
- resource
Group String - (String) The resource group identifier for this public gateway.
- resource
Group StringName - (String) The name for the resource group for this public gateway.
- resource
Type String - (String) The resource type for this public gateway.
- status String
- (String) The status of this public gateway.
- subnet String
- The subnet identifier.
- timeouts Property Map
- vpc String
- (String) The identifier of the VPC this public gateway serves.
- zone String
- (String) The zone this public gateway resides in.
Supporting Types
IsSubnetPublicGatewayAttachmentTimeouts, IsSubnetPublicGatewayAttachmentTimeoutsArgs
Import
The ibm_is_subnet_public_gateway_attachment
resource can be imported by using the subnet ID.
Syntax
$ pulumi import ibm:index/isSubnetPublicGatewayAttachment:IsSubnetPublicGatewayAttachment example <subnet_ID>
Example
$ pulumi import ibm:index/isSubnetPublicGatewayAttachment:IsSubnetPublicGatewayAttachment example d7bec597-4726-451f-8a63-1111e6f19c32c
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.