oci.Database.ApplicationVip
Explore with Pulumi AI
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("test_application_vip", {
cloudVmClusterId: testCloudVmCluster.id,
hostnameLabel: applicationVipHostnameLabel,
subnetId: testSubnet.id,
dbNodeId: testDbNode.id,
ipAddress: applicationVipIpAddress,
});
import pulumi
import pulumi_oci as oci
test_application_vip = oci.database.ApplicationVip("test_application_vip",
cloud_vm_cluster_id=test_cloud_vm_cluster["id"],
hostname_label=application_vip_hostname_label,
subnet_id=test_subnet["id"],
db_node_id=test_db_node["id"],
ip_address=application_vip_ip_address)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/Database"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Database.NewApplicationVip(ctx, "test_application_vip", &Database.ApplicationVipArgs{
CloudVmClusterId: pulumi.Any(testCloudVmCluster.Id),
HostnameLabel: pulumi.Any(applicationVipHostnameLabel),
SubnetId: pulumi.Any(testSubnet.Id),
DbNodeId: pulumi.Any(testDbNode.Id),
IpAddress: pulumi.Any(applicationVipIpAddress),
})
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("test_application_vip", new()
{
CloudVmClusterId = testCloudVmCluster.Id,
HostnameLabel = applicationVipHostnameLabel,
SubnetId = testSubnet.Id,
DbNodeId = testDbNode.Id,
IpAddress = applicationVipIpAddress,
});
});
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(testCloudVmCluster.id())
.hostnameLabel(applicationVipHostnameLabel)
.subnetId(testSubnet.id())
.dbNodeId(testDbNode.id())
.ipAddress(applicationVipIpAddress)
.build());
}
}
resources:
testApplicationVip:
type: oci:Database:ApplicationVip
name: test_application_vip
properties:
cloudVmClusterId: ${testCloudVmCluster.id}
hostnameLabel: ${applicationVipHostnameLabel}
subnetId: ${testSubnet.id}
dbNodeId: ${testDbNode.id}
ipAddress: ${applicationVipIpAddress}
Create ApplicationVip Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApplicationVip(name: string, args: ApplicationVipArgs, opts?: CustomResourceOptions);
@overload
def ApplicationVip(resource_name: str,
args: ApplicationVipArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApplicationVip(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_vm_cluster_id: Optional[str] = None,
hostname_label: Optional[str] = None,
subnet_id: Optional[str] = None,
db_node_id: Optional[str] = None,
ip_address: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var applicationVipResource = new Oci.Database.ApplicationVip("applicationVipResource", new()
{
CloudVmClusterId = "string",
HostnameLabel = "string",
SubnetId = "string",
DbNodeId = "string",
IpAddress = "string",
});
example, err := Database.NewApplicationVip(ctx, "applicationVipResource", &Database.ApplicationVipArgs{
CloudVmClusterId: pulumi.String("string"),
HostnameLabel: pulumi.String("string"),
SubnetId: pulumi.String("string"),
DbNodeId: pulumi.String("string"),
IpAddress: pulumi.String("string"),
})
var applicationVipResource = new ApplicationVip("applicationVipResource", ApplicationVipArgs.builder()
.cloudVmClusterId("string")
.hostnameLabel("string")
.subnetId("string")
.dbNodeId("string")
.ipAddress("string")
.build());
application_vip_resource = oci.database.ApplicationVip("applicationVipResource",
cloud_vm_cluster_id="string",
hostname_label="string",
subnet_id="string",
db_node_id="string",
ip_address="string")
const applicationVipResource = new oci.database.ApplicationVip("applicationVipResource", {
cloudVmClusterId: "string",
hostnameLabel: "string",
subnetId: "string",
dbNodeId: "string",
ipAddress: "string",
});
type: oci:Database:ApplicationVip
properties:
cloudVmClusterId: string
dbNodeId: string
hostnameLabel: string
ipAddress: string
subnetId: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ApplicationVip resource accepts the following input properties:
- Cloud
Vm stringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- Hostname
Label string - The hostname of the application virtual IP (VIP) address.
- Subnet
Id 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
- Db
Node stringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- Ip
Address string - The application virtual IP (VIP) address.
- Cloud
Vm stringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- Hostname
Label string - The hostname of the application virtual IP (VIP) address.
- Subnet
Id 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
- Db
Node stringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- Ip
Address string - The application virtual IP (VIP) address.
- cloud
Vm StringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- hostname
Label String - The hostname of the application virtual IP (VIP) address.
- subnet
Id 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
- db
Node StringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- ip
Address String - The application virtual IP (VIP) address.
- cloud
Vm stringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- hostname
Label string - The hostname of the application virtual IP (VIP) address.
- subnet
Id 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
- db
Node stringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- ip
Address string - The application virtual IP (VIP) address.
- cloud_
vm_ strcluster_ id - 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_ strid - The OCID of the DB node associated with the application virtual IP (VIP) address.
- ip_
address str - The application virtual IP (VIP) address.
- cloud
Vm StringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- hostname
Label String - The hostname of the application virtual IP (VIP) address.
- subnet
Id 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
- db
Node StringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- ip
Address 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:
- Compartment
Id string - The OCID of the compartment.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Dictionary<string, string>
- 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.
- Lifecycle
Details 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.
- Time
Assigned string - The date and time when the create operation for the application virtual IP (VIP) address completed.
- Compartment
Id string - The OCID of the compartment.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- map[string]string
- 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.
- Lifecycle
Details 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.
- Time
Assigned string - The date and time when the create operation for the application virtual IP (VIP) address completed.
- compartment
Id String - The OCID of the compartment.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String,String>
- 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.
- lifecycle
Details 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.
- time
Assigned String - The date and time when the create operation for the application virtual IP (VIP) address completed.
- compartment
Id string - The OCID of the compartment.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- {[key: string]: string}
- 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.
- lifecycle
Details 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.
- time
Assigned 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.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Mapping[str, str]
- 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.
- compartment
Id String - The OCID of the compartment.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String>
- 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.
- lifecycle
Details 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.
- time
Assigned 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, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = 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.
- Cloud
Vm stringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- Compartment
Id string - The OCID of the compartment.
- Db
Node stringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Dictionary<string, string>
- 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 string - The hostname of the application virtual IP (VIP) address.
- Ip
Address string - The application virtual IP (VIP) address.
- Lifecycle
Details 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.
- Subnet
Id 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
- Time
Assigned string - The date and time when the create operation for the application virtual IP (VIP) address completed.
- Cloud
Vm stringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- Compartment
Id string - The OCID of the compartment.
- Db
Node stringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- map[string]string
- 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 string - The hostname of the application virtual IP (VIP) address.
- Ip
Address string - The application virtual IP (VIP) address.
- Lifecycle
Details 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.
- Subnet
Id 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
- Time
Assigned string - The date and time when the create operation for the application virtual IP (VIP) address completed.
- cloud
Vm StringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment
Id String - The OCID of the compartment.
- db
Node StringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String,String>
- 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 String - The hostname of the application virtual IP (VIP) address.
- ip
Address String - The application virtual IP (VIP) address.
- lifecycle
Details 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.
- subnet
Id 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
- time
Assigned String - The date and time when the create operation for the application virtual IP (VIP) address completed.
- cloud
Vm stringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment
Id string - The OCID of the compartment.
- db
Node stringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- {[key: string]: string}
- 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 string - The hostname of the application virtual IP (VIP) address.
- ip
Address string - The application virtual IP (VIP) address.
- lifecycle
Details 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.
- subnet
Id 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
- time
Assigned string - The date and time when the create operation for the application virtual IP (VIP) address completed.
- cloud_
vm_ strcluster_ id - 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_ strid - The OCID of the DB node associated with the application virtual IP (VIP) address.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Mapping[str, str]
- 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.
- cloud
Vm StringCluster Id - The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment
Id String - The OCID of the compartment.
- db
Node StringId - The OCID of the DB node associated with the application virtual IP (VIP) address.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- Map<String>
- 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 String - The hostname of the application virtual IP (VIP) address.
- ip
Address String - The application virtual IP (VIP) address.
- lifecycle
Details 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.
- subnet
Id 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
- time
Assigned 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"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.