1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Database
  5. ApplicationVip
Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi

oci.Database.ApplicationVip

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi

    This resource provides the Application Vip resource in Oracle Cloud Infrastructure Database service.

    Creates a new application virtual IP (VIP) address in the specified cloud VM cluster based on the request parameters you provide.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testApplicationVip = new oci.database.ApplicationVip("testApplicationVip", {
        cloudVmClusterId: oci_database_cloud_vm_cluster.test_cloud_vm_cluster.id,
        hostnameLabel: _var.application_vip_hostname_label,
        subnetId: oci_core_subnet.test_subnet.id,
        dbNodeId: oci_database_db_node.test_db_node.id,
        ipAddress: _var.application_vip_ip_address,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_application_vip = oci.database.ApplicationVip("testApplicationVip",
        cloud_vm_cluster_id=oci_database_cloud_vm_cluster["test_cloud_vm_cluster"]["id"],
        hostname_label=var["application_vip_hostname_label"],
        subnet_id=oci_core_subnet["test_subnet"]["id"],
        db_node_id=oci_database_db_node["test_db_node"]["id"],
        ip_address=var["application_vip_ip_address"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Database"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Database.NewApplicationVip(ctx, "testApplicationVip", &Database.ApplicationVipArgs{
    			CloudVmClusterId: pulumi.Any(oci_database_cloud_vm_cluster.Test_cloud_vm_cluster.Id),
    			HostnameLabel:    pulumi.Any(_var.Application_vip_hostname_label),
    			SubnetId:         pulumi.Any(oci_core_subnet.Test_subnet.Id),
    			DbNodeId:         pulumi.Any(oci_database_db_node.Test_db_node.Id),
    			IpAddress:        pulumi.Any(_var.Application_vip_ip_address),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testApplicationVip = new Oci.Database.ApplicationVip("testApplicationVip", new()
        {
            CloudVmClusterId = oci_database_cloud_vm_cluster.Test_cloud_vm_cluster.Id,
            HostnameLabel = @var.Application_vip_hostname_label,
            SubnetId = oci_core_subnet.Test_subnet.Id,
            DbNodeId = oci_database_db_node.Test_db_node.Id,
            IpAddress = @var.Application_vip_ip_address,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Database.ApplicationVip;
    import com.pulumi.oci.Database.ApplicationVipArgs;
    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 testApplicationVip = new ApplicationVip("testApplicationVip", ApplicationVipArgs.builder()        
                .cloudVmClusterId(oci_database_cloud_vm_cluster.test_cloud_vm_cluster().id())
                .hostnameLabel(var_.application_vip_hostname_label())
                .subnetId(oci_core_subnet.test_subnet().id())
                .dbNodeId(oci_database_db_node.test_db_node().id())
                .ipAddress(var_.application_vip_ip_address())
                .build());
    
        }
    }
    
    resources:
      testApplicationVip:
        type: oci:Database:ApplicationVip
        properties:
          #Required
          cloudVmClusterId: ${oci_database_cloud_vm_cluster.test_cloud_vm_cluster.id}
          hostnameLabel: ${var.application_vip_hostname_label}
          subnetId: ${oci_core_subnet.test_subnet.id}
          #Optional
          dbNodeId: ${oci_database_db_node.test_db_node.id}
          ipAddress: ${var.application_vip_ip_address}
    

    Create ApplicationVip Resource

    new ApplicationVip(name: string, args: ApplicationVipArgs, opts?: CustomResourceOptions);
    @overload
    def ApplicationVip(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       cloud_vm_cluster_id: Optional[str] = None,
                       db_node_id: Optional[str] = None,
                       hostname_label: Optional[str] = None,
                       ip_address: Optional[str] = None,
                       subnet_id: Optional[str] = None)
    @overload
    def ApplicationVip(resource_name: str,
                       args: ApplicationVipArgs,
                       opts: Optional[ResourceOptions] = None)
    func NewApplicationVip(ctx *Context, name string, args ApplicationVipArgs, opts ...ResourceOption) (*ApplicationVip, error)
    public ApplicationVip(string name, ApplicationVipArgs args, CustomResourceOptions? opts = null)
    public ApplicationVip(String name, ApplicationVipArgs args)
    public ApplicationVip(String name, ApplicationVipArgs args, CustomResourceOptions options)
    
    type: oci:Database:ApplicationVip
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args ApplicationVipArgs
    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 ApplicationVipArgs
    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 ApplicationVipArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplicationVipArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApplicationVipArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ApplicationVip Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ApplicationVip resource accepts the following input properties:

    CloudVmClusterId string
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    HostnameLabel string
    The hostname of the application virtual IP (VIP) address.
    SubnetId string

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DbNodeId string
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    IpAddress string
    The application virtual IP (VIP) address.
    CloudVmClusterId string
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    HostnameLabel string
    The hostname of the application virtual IP (VIP) address.
    SubnetId string

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    DbNodeId string
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    IpAddress string
    The application virtual IP (VIP) address.
    cloudVmClusterId String
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    hostnameLabel String
    The hostname of the application virtual IP (VIP) address.
    subnetId String

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    dbNodeId String
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    ipAddress String
    The application virtual IP (VIP) address.
    cloudVmClusterId string
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    hostnameLabel string
    The hostname of the application virtual IP (VIP) address.
    subnetId string

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    dbNodeId string
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    ipAddress string
    The application virtual IP (VIP) address.
    cloud_vm_cluster_id str
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    hostname_label str
    The hostname of the application virtual IP (VIP) address.
    subnet_id str

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    db_node_id str
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    ip_address str
    The application virtual IP (VIP) address.
    cloudVmClusterId String
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    hostnameLabel String
    The hostname of the application virtual IP (VIP) address.
    subnetId String

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    dbNodeId String
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    ipAddress String
    The application virtual IP (VIP) address.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApplicationVip resource produces the following output properties:

    CompartmentId string
    The OCID of the compartment.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    State string
    The current lifecycle state of the application virtual IP (VIP) address.
    TimeAssigned string
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    CompartmentId string
    The OCID of the compartment.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleDetails string
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    State string
    The current lifecycle state of the application virtual IP (VIP) address.
    TimeAssigned string
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    compartmentId String
    The OCID of the compartment.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    state String
    The current lifecycle state of the application virtual IP (VIP) address.
    timeAssigned String
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    compartmentId string
    The OCID of the compartment.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails string
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    state string
    The current lifecycle state of the application virtual IP (VIP) address.
    timeAssigned string
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    compartment_id str
    The OCID of the compartment.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_details str
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    state str
    The current lifecycle state of the application virtual IP (VIP) address.
    time_assigned str
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    compartmentId String
    The OCID of the compartment.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleDetails String
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    state String
    The current lifecycle state of the application virtual IP (VIP) address.
    timeAssigned String
    The date and time when the create operation for the application virtual IP (VIP) address completed.

    Look up Existing ApplicationVip Resource

    Get an existing ApplicationVip 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?: ApplicationVipState, opts?: CustomResourceOptions): ApplicationVip
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cloud_vm_cluster_id: Optional[str] = None,
            compartment_id: Optional[str] = None,
            db_node_id: Optional[str] = None,
            defined_tags: Optional[Mapping[str, Any]] = None,
            freeform_tags: Optional[Mapping[str, Any]] = None,
            hostname_label: Optional[str] = None,
            ip_address: Optional[str] = None,
            lifecycle_details: Optional[str] = None,
            state: Optional[str] = None,
            subnet_id: Optional[str] = None,
            time_assigned: Optional[str] = None) -> ApplicationVip
    func GetApplicationVip(ctx *Context, name string, id IDInput, state *ApplicationVipState, opts ...ResourceOption) (*ApplicationVip, error)
    public static ApplicationVip Get(string name, Input<string> id, ApplicationVipState? state, CustomResourceOptions? opts = null)
    public static ApplicationVip get(String name, Output<String> id, ApplicationVipState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CloudVmClusterId string
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    CompartmentId string
    The OCID of the compartment.
    DbNodeId string
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    DefinedTags Dictionary<string, object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags Dictionary<string, object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    HostnameLabel string
    The hostname of the application virtual IP (VIP) address.
    IpAddress string
    The application virtual IP (VIP) address.
    LifecycleDetails string
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    State string
    The current lifecycle state of the application virtual IP (VIP) address.
    SubnetId string

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TimeAssigned string
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    CloudVmClusterId string
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    CompartmentId string
    The OCID of the compartment.
    DbNodeId string
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    DefinedTags map[string]interface{}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    FreeformTags map[string]interface{}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    HostnameLabel string
    The hostname of the application virtual IP (VIP) address.
    IpAddress string
    The application virtual IP (VIP) address.
    LifecycleDetails string
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    State string
    The current lifecycle state of the application virtual IP (VIP) address.
    SubnetId string

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    TimeAssigned string
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    cloudVmClusterId String
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    compartmentId String
    The OCID of the compartment.
    dbNodeId String
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    definedTags Map<String,Object>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<String,Object>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    hostnameLabel String
    The hostname of the application virtual IP (VIP) address.
    ipAddress String
    The application virtual IP (VIP) address.
    lifecycleDetails String
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    state String
    The current lifecycle state of the application virtual IP (VIP) address.
    subnetId String

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeAssigned String
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    cloudVmClusterId string
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    compartmentId string
    The OCID of the compartment.
    dbNodeId string
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    definedTags {[key: string]: any}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags {[key: string]: any}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    hostnameLabel string
    The hostname of the application virtual IP (VIP) address.
    ipAddress string
    The application virtual IP (VIP) address.
    lifecycleDetails string
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    state string
    The current lifecycle state of the application virtual IP (VIP) address.
    subnetId string

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeAssigned string
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    cloud_vm_cluster_id str
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    compartment_id str
    The OCID of the compartment.
    db_node_id str
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    defined_tags Mapping[str, Any]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeform_tags Mapping[str, Any]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    hostname_label str
    The hostname of the application virtual IP (VIP) address.
    ip_address str
    The application virtual IP (VIP) address.
    lifecycle_details str
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    state str
    The current lifecycle state of the application virtual IP (VIP) address.
    subnet_id str

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    time_assigned str
    The date and time when the create operation for the application virtual IP (VIP) address completed.
    cloudVmClusterId String
    The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
    compartmentId String
    The OCID of the compartment.
    dbNodeId String
    The OCID of the DB node associated with the application virtual IP (VIP) address.
    definedTags Map<Any>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
    freeformTags Map<Any>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    hostnameLabel String
    The hostname of the application virtual IP (VIP) address.
    ipAddress String
    The application virtual IP (VIP) address.
    lifecycleDetails String
    Additional information about the current lifecycle state of the application virtual IP (VIP) address.
    state String
    The current lifecycle state of the application virtual IP (VIP) address.
    subnetId String

    The OCID of the subnet associated with the application virtual IP (VIP) address.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    timeAssigned String
    The date and time when the create operation for the application virtual IP (VIP) address completed.

    Import

    ApplicationVips can be imported using the id, e.g.

    $ pulumi import oci:Database/applicationVip:ApplicationVip test_application_vip "id"
    

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.27.0 published on Friday, Mar 15, 2024 by Pulumi