1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. RdsPublicIpAssociateV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.RdsPublicIpAssociateV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for RDS public ip association you can get at documentation portal

    Associates a public IP to an RDS instance.

    Example Usage

    Bind

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const instanceId = config.requireObject("instanceId");
    const publicIp = new opentelekomcloud.RdsPublicIpAssociateV3("publicIp", {
        instanceId: instanceId,
        publicIp: opentelekomcloud_compute_floatingip_v2.eip_2.address,
        publicIpId: opentelekomcloud_compute_floatingip_v2.eip_2.id,
    });
    const eip1 = new opentelekomcloud.ComputeFloatingipV2("eip1", {});
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    instance_id = config.require_object("instanceId")
    public_ip = opentelekomcloud.RdsPublicIpAssociateV3("publicIp",
        instance_id=instance_id,
        public_ip=opentelekomcloud_compute_floatingip_v2["eip_2"]["address"],
        public_ip_id=opentelekomcloud_compute_floatingip_v2["eip_2"]["id"])
    eip1 = opentelekomcloud.ComputeFloatingipV2("eip1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		instanceId := cfg.RequireObject("instanceId")
    		_, err := opentelekomcloud.NewRdsPublicIpAssociateV3(ctx, "publicIp", &opentelekomcloud.RdsPublicIpAssociateV3Args{
    			InstanceId: pulumi.Any(instanceId),
    			PublicIp:   pulumi.Any(opentelekomcloud_compute_floatingip_v2.Eip_2.Address),
    			PublicIpId: pulumi.Any(opentelekomcloud_compute_floatingip_v2.Eip_2.Id),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = opentelekomcloud.NewComputeFloatingipV2(ctx, "eip1", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var instanceId = config.RequireObject<dynamic>("instanceId");
        var publicIp = new Opentelekomcloud.RdsPublicIpAssociateV3("publicIp", new()
        {
            InstanceId = instanceId,
            PublicIp = opentelekomcloud_compute_floatingip_v2.Eip_2.Address,
            PublicIpId = opentelekomcloud_compute_floatingip_v2.Eip_2.Id,
        });
    
        var eip1 = new Opentelekomcloud.ComputeFloatingipV2("eip1");
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.RdsPublicIpAssociateV3;
    import com.pulumi.opentelekomcloud.RdsPublicIpAssociateV3Args;
    import com.pulumi.opentelekomcloud.ComputeFloatingipV2;
    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) {
            final var config = ctx.config();
            final var instanceId = config.get("instanceId");
            var publicIp = new RdsPublicIpAssociateV3("publicIp", RdsPublicIpAssociateV3Args.builder()
                .instanceId(instanceId)
                .publicIp(opentelekomcloud_compute_floatingip_v2.eip_2().address())
                .publicIpId(opentelekomcloud_compute_floatingip_v2.eip_2().id())
                .build());
    
            var eip1 = new ComputeFloatingipV2("eip1");
    
        }
    }
    
    configuration:
      instanceId:
        type: dynamic
    resources:
      publicIp:
        type: opentelekomcloud:RdsPublicIpAssociateV3
        properties:
          instanceId: ${instanceId}
          publicIp: ${opentelekomcloud_compute_floatingip_v2.eip_2.address}
          publicIpId: ${opentelekomcloud_compute_floatingip_v2.eip_2.id}
      eip1:
        type: opentelekomcloud:ComputeFloatingipV2
    

    Create RdsPublicIpAssociateV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new RdsPublicIpAssociateV3(name: string, args: RdsPublicIpAssociateV3Args, opts?: CustomResourceOptions);
    @overload
    def RdsPublicIpAssociateV3(resource_name: str,
                               args: RdsPublicIpAssociateV3Args,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def RdsPublicIpAssociateV3(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               instance_id: Optional[str] = None,
                               public_ip: Optional[str] = None,
                               public_ip_id: Optional[str] = None,
                               rds_public_ip_associate_v3_id: Optional[str] = None,
                               timeouts: Optional[RdsPublicIpAssociateV3TimeoutsArgs] = None)
    func NewRdsPublicIpAssociateV3(ctx *Context, name string, args RdsPublicIpAssociateV3Args, opts ...ResourceOption) (*RdsPublicIpAssociateV3, error)
    public RdsPublicIpAssociateV3(string name, RdsPublicIpAssociateV3Args args, CustomResourceOptions? opts = null)
    public RdsPublicIpAssociateV3(String name, RdsPublicIpAssociateV3Args args)
    public RdsPublicIpAssociateV3(String name, RdsPublicIpAssociateV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:RdsPublicIpAssociateV3
    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 RdsPublicIpAssociateV3Args
    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 RdsPublicIpAssociateV3Args
    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 RdsPublicIpAssociateV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RdsPublicIpAssociateV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args RdsPublicIpAssociateV3Args
    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 rdsPublicIpAssociateV3Resource = new Opentelekomcloud.RdsPublicIpAssociateV3("rdsPublicIpAssociateV3Resource", new()
    {
        InstanceId = "string",
        PublicIp = "string",
        PublicIpId = "string",
        RdsPublicIpAssociateV3Id = "string",
        Timeouts = new Opentelekomcloud.Inputs.RdsPublicIpAssociateV3TimeoutsArgs
        {
            Create = "string",
            Update = "string",
        },
    });
    
    example, err := opentelekomcloud.NewRdsPublicIpAssociateV3(ctx, "rdsPublicIpAssociateV3Resource", &opentelekomcloud.RdsPublicIpAssociateV3Args{
    	InstanceId:               pulumi.String("string"),
    	PublicIp:                 pulumi.String("string"),
    	PublicIpId:               pulumi.String("string"),
    	RdsPublicIpAssociateV3Id: pulumi.String("string"),
    	Timeouts: &opentelekomcloud.RdsPublicIpAssociateV3TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var rdsPublicIpAssociateV3Resource = new RdsPublicIpAssociateV3("rdsPublicIpAssociateV3Resource", RdsPublicIpAssociateV3Args.builder()
        .instanceId("string")
        .publicIp("string")
        .publicIpId("string")
        .rdsPublicIpAssociateV3Id("string")
        .timeouts(RdsPublicIpAssociateV3TimeoutsArgs.builder()
            .create("string")
            .update("string")
            .build())
        .build());
    
    rds_public_ip_associate_v3_resource = opentelekomcloud.RdsPublicIpAssociateV3("rdsPublicIpAssociateV3Resource",
        instance_id="string",
        public_ip="string",
        public_ip_id="string",
        rds_public_ip_associate_v3_id="string",
        timeouts={
            "create": "string",
            "update": "string",
        })
    
    const rdsPublicIpAssociateV3Resource = new opentelekomcloud.RdsPublicIpAssociateV3("rdsPublicIpAssociateV3Resource", {
        instanceId: "string",
        publicIp: "string",
        publicIpId: "string",
        rdsPublicIpAssociateV3Id: "string",
        timeouts: {
            create: "string",
            update: "string",
        },
    });
    
    type: opentelekomcloud:RdsPublicIpAssociateV3
    properties:
        instanceId: string
        publicIp: string
        publicIpId: string
        rdsPublicIpAssociateV3Id: string
        timeouts:
            create: string
            update: string
    

    RdsPublicIpAssociateV3 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 RdsPublicIpAssociateV3 resource accepts the following input properties:

    InstanceId string
    Specifies the RDS instance ID.
    PublicIp string
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    PublicIpId string
    Specifies the EIP ID. The value must be in the standard UUID format.
    RdsPublicIpAssociateV3Id string
    Timeouts RdsPublicIpAssociateV3Timeouts
    InstanceId string
    Specifies the RDS instance ID.
    PublicIp string
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    PublicIpId string
    Specifies the EIP ID. The value must be in the standard UUID format.
    RdsPublicIpAssociateV3Id string
    Timeouts RdsPublicIpAssociateV3TimeoutsArgs
    instanceId String
    Specifies the RDS instance ID.
    publicIp String
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    publicIpId String
    Specifies the EIP ID. The value must be in the standard UUID format.
    rdsPublicIpAssociateV3Id String
    timeouts RdsPublicIpAssociateV3Timeouts
    instanceId string
    Specifies the RDS instance ID.
    publicIp string
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    publicIpId string
    Specifies the EIP ID. The value must be in the standard UUID format.
    rdsPublicIpAssociateV3Id string
    timeouts RdsPublicIpAssociateV3Timeouts
    instance_id str
    Specifies the RDS instance ID.
    public_ip str
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    public_ip_id str
    Specifies the EIP ID. The value must be in the standard UUID format.
    rds_public_ip_associate_v3_id str
    timeouts RdsPublicIpAssociateV3TimeoutsArgs
    instanceId String
    Specifies the RDS instance ID.
    publicIp String
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    publicIpId String
    Specifies the EIP ID. The value must be in the standard UUID format.
    rdsPublicIpAssociateV3Id String
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the RdsPublicIpAssociateV3 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 RdsPublicIpAssociateV3 Resource

    Get an existing RdsPublicIpAssociateV3 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?: RdsPublicIpAssociateV3State, opts?: CustomResourceOptions): RdsPublicIpAssociateV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            instance_id: Optional[str] = None,
            public_ip: Optional[str] = None,
            public_ip_id: Optional[str] = None,
            rds_public_ip_associate_v3_id: Optional[str] = None,
            timeouts: Optional[RdsPublicIpAssociateV3TimeoutsArgs] = None) -> RdsPublicIpAssociateV3
    func GetRdsPublicIpAssociateV3(ctx *Context, name string, id IDInput, state *RdsPublicIpAssociateV3State, opts ...ResourceOption) (*RdsPublicIpAssociateV3, error)
    public static RdsPublicIpAssociateV3 Get(string name, Input<string> id, RdsPublicIpAssociateV3State? state, CustomResourceOptions? opts = null)
    public static RdsPublicIpAssociateV3 get(String name, Output<String> id, RdsPublicIpAssociateV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:RdsPublicIpAssociateV3    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.
    The following state arguments are supported:
    InstanceId string
    Specifies the RDS instance ID.
    PublicIp string
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    PublicIpId string
    Specifies the EIP ID. The value must be in the standard UUID format.
    RdsPublicIpAssociateV3Id string
    Timeouts RdsPublicIpAssociateV3Timeouts
    InstanceId string
    Specifies the RDS instance ID.
    PublicIp string
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    PublicIpId string
    Specifies the EIP ID. The value must be in the standard UUID format.
    RdsPublicIpAssociateV3Id string
    Timeouts RdsPublicIpAssociateV3TimeoutsArgs
    instanceId String
    Specifies the RDS instance ID.
    publicIp String
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    publicIpId String
    Specifies the EIP ID. The value must be in the standard UUID format.
    rdsPublicIpAssociateV3Id String
    timeouts RdsPublicIpAssociateV3Timeouts
    instanceId string
    Specifies the RDS instance ID.
    publicIp string
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    publicIpId string
    Specifies the EIP ID. The value must be in the standard UUID format.
    rdsPublicIpAssociateV3Id string
    timeouts RdsPublicIpAssociateV3Timeouts
    instance_id str
    Specifies the RDS instance ID.
    public_ip str
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    public_ip_id str
    Specifies the EIP ID. The value must be in the standard UUID format.
    rds_public_ip_associate_v3_id str
    timeouts RdsPublicIpAssociateV3TimeoutsArgs
    instanceId String
    Specifies the RDS instance ID.
    publicIp String
    Specifies the EIP to be bound. The value must be in the standard IP address format.
    publicIpId String
    Specifies the EIP ID. The value must be in the standard UUID format.
    rdsPublicIpAssociateV3Id String
    timeouts Property Map

    Supporting Types

    RdsPublicIpAssociateV3Timeouts, RdsPublicIpAssociateV3TimeoutsArgs

    Create string
    Update string
    Create string
    Update string
    create String
    update String
    create string
    update string
    create str
    update str
    create String
    update String

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud