1. Packages
  2. Ibm Provider
  3. API Docs
  4. IsSubnetPublicGatewayAttachment
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

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";
Copy
import pulumi
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;

return await Deployment.RunAsync(() => 
{
});
Copy
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) {
    }
}
Copy
{}
Copy

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. IsSubnetPublicGatewayAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. IsSubnetPublicGatewayAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IsSubnetPublicGatewayAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
    },
});
Copy
example, err := ibm.NewIsSubnetPublicGatewayAttachment(ctx, "isSubnetPublicGatewayAttachmentResource", &ibm.IsSubnetPublicGatewayAttachmentArgs{
PublicGateway: pulumi.String("string"),
Subnet: pulumi.String("string"),
IsSubnetPublicGatewayAttachmentId: pulumi.String("string"),
Timeouts: &.IsSubnetPublicGatewayAttachmentTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
Copy
var isSubnetPublicGatewayAttachmentResource = new IsSubnetPublicGatewayAttachment("isSubnetPublicGatewayAttachmentResource", IsSubnetPublicGatewayAttachmentArgs.builder()
    .publicGateway("string")
    .subnet("string")
    .isSubnetPublicGatewayAttachmentId("string")
    .timeouts(IsSubnetPublicGatewayAttachmentTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .update("string")
        .build())
    .build());
Copy
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",
    })
Copy
const isSubnetPublicGatewayAttachmentResource = new ibm.IsSubnetPublicGatewayAttachment("isSubnetPublicGatewayAttachmentResource", {
    publicGateway: "string",
    subnet: "string",
    isSubnetPublicGatewayAttachmentId: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        update: "string",
    },
});
Copy
type: ibm:IsSubnetPublicGatewayAttachment
properties:
    isSubnetPublicGatewayAttachmentId: string
    publicGateway: string
    subnet: string
    timeouts:
        create: string
        delete: string
        update: string
Copy

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:

PublicGateway This property is required. string
The public gateway identifier.
Subnet This property is required. string
The subnet identifier.
IsSubnetPublicGatewayAttachmentId string
(String) The unique identifier of the subnet.
Timeouts IsSubnetPublicGatewayAttachmentTimeouts
PublicGateway This property is required. string
The public gateway identifier.
Subnet This property is required. string
The subnet identifier.
IsSubnetPublicGatewayAttachmentId string
(String) The unique identifier of the subnet.
Timeouts IsSubnetPublicGatewayAttachmentTimeoutsArgs
publicGateway This property is required. String
The public gateway identifier.
subnet This property is required. String
The subnet identifier.
isSubnetPublicGatewayAttachmentId String
(String) The unique identifier of the subnet.
timeouts IsSubnetPublicGatewayAttachmentTimeouts
publicGateway This property is required. string
The public gateway identifier.
subnet This property is required. string
The subnet identifier.
isSubnetPublicGatewayAttachmentId string
(String) The unique identifier of the subnet.
timeouts IsSubnetPublicGatewayAttachmentTimeouts
public_gateway This property is required. str
The public gateway identifier.
subnet This property is required. str
The subnet identifier.
is_subnet_public_gateway_attachment_id str
(String) The unique identifier of the subnet.
timeouts IsSubnetPublicGatewayAttachmentTimeoutsArgs
publicGateway This property is required. String
The public gateway identifier.
subnet This property is required. String
The subnet identifier.
isSubnetPublicGatewayAttachmentId String
(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.
FloatingIp 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.
ResourceGroup string
(String) The resource group identifier for this public gateway.
ResourceGroupName string
(String) The name for the resource group for this public gateway.
ResourceType 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.
FloatingIp 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.
ResourceGroup string
(String) The resource group identifier for this public gateway.
ResourceGroupName string
(String) The name for the resource group for this public gateway.
ResourceType 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.
floatingIp 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.
resourceGroup String
(String) The resource group identifier for this public gateway.
resourceGroupName String
(String) The name for the resource group for this public gateway.
resourceType 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.
floatingIp {[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.
resourceGroup string
(String) The resource group identifier for this public gateway.
resourceGroupName string
(String) The name for the resource group for this public gateway.
resourceType 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_name str
(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.
floatingIp 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.
resourceGroup String
(String) The resource group identifier for this public gateway.
resourceGroupName String
(String) The name for the resource group for this public gateway.
resourceType 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Crn string
(String) The CRN for this public gateway.
FloatingIp Dictionary<string, string>
(List) The floating IP bound to this public gateway. Nested scheme for floating_ip:
IsSubnetPublicGatewayAttachmentId string
(String) The unique identifier of the subnet.
Name string
(String) The user-defined name for this public gateway.
PublicGateway string
The public gateway identifier.
ResourceGroup string
(String) The resource group identifier for this public gateway.
ResourceGroupName string
(String) The name for the resource group for this public gateway.
ResourceType string
(String) The resource type for this public gateway.
Status string
(String) The status of this public gateway.
Subnet string
The subnet identifier.
Timeouts IsSubnetPublicGatewayAttachmentTimeouts
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.
FloatingIp map[string]string
(List) The floating IP bound to this public gateway. Nested scheme for floating_ip:
IsSubnetPublicGatewayAttachmentId string
(String) The unique identifier of the subnet.
Name string
(String) The user-defined name for this public gateway.
PublicGateway string
The public gateway identifier.
ResourceGroup string
(String) The resource group identifier for this public gateway.
ResourceGroupName string
(String) The name for the resource group for this public gateway.
ResourceType string
(String) The resource type for this public gateway.
Status string
(String) The status of this public gateway.
Subnet string
The subnet identifier.
Timeouts IsSubnetPublicGatewayAttachmentTimeoutsArgs
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.
floatingIp Map<String,String>
(List) The floating IP bound to this public gateway. Nested scheme for floating_ip:
isSubnetPublicGatewayAttachmentId String
(String) The unique identifier of the subnet.
name String
(String) The user-defined name for this public gateway.
publicGateway String
The public gateway identifier.
resourceGroup String
(String) The resource group identifier for this public gateway.
resourceGroupName String
(String) The name for the resource group for this public gateway.
resourceType String
(String) The resource type for this public gateway.
status String
(String) The status of this public gateway.
subnet String
The subnet identifier.
timeouts IsSubnetPublicGatewayAttachmentTimeouts
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.
floatingIp {[key: string]: string}
(List) The floating IP bound to this public gateway. Nested scheme for floating_ip:
isSubnetPublicGatewayAttachmentId string
(String) The unique identifier of the subnet.
name string
(String) The user-defined name for this public gateway.
publicGateway string
The public gateway identifier.
resourceGroup string
(String) The resource group identifier for this public gateway.
resourceGroupName string
(String) The name for the resource group for this public gateway.
resourceType string
(String) The resource type for this public gateway.
status string
(String) The status of this public gateway.
subnet string
The subnet identifier.
timeouts IsSubnetPublicGatewayAttachmentTimeouts
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_public_gateway_attachment_id str
(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_name str
(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 IsSubnetPublicGatewayAttachmentTimeoutsArgs
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.
floatingIp Map<String>
(List) The floating IP bound to this public gateway. Nested scheme for floating_ip:
isSubnetPublicGatewayAttachmentId String
(String) The unique identifier of the subnet.
name String
(String) The user-defined name for this public gateway.
publicGateway String
The public gateway identifier.
resourceGroup String
(String) The resource group identifier for this public gateway.
resourceGroupName String
(String) The name for the resource group for this public gateway.
resourceType 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

Create string
Delete string
Update string
Create string
Delete string
Update string
create String
delete String
update String
create string
delete string
update string
create str
delete str
update str
create String
delete String
update String

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>
Copy

Example

$ pulumi import ibm:index/isSubnetPublicGatewayAttachment:IsSubnetPublicGatewayAttachment example d7bec597-4726-451f-8a63-1111e6f19c32c
Copy

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.