oci.Database.getApplicationVips
Explore with Pulumi AI
This data source provides the list of Application Vips in Oracle Cloud Infrastructure Database service.
Gets a list of application virtual IP (VIP) addresses on a cloud VM cluster.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testApplicationVips = Oci.Database.GetApplicationVips.Invoke(new()
{
CloudVmClusterId = oci_database_cloud_vm_cluster.Test_cloud_vm_cluster.Id,
CompartmentId = @var.Compartment_id,
State = @var.Application_vip_state,
});
});
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.GetApplicationVips(ctx, &database.GetApplicationVipsArgs{
CloudVmClusterId: oci_database_cloud_vm_cluster.Test_cloud_vm_cluster.Id,
CompartmentId: _var.Compartment_id,
State: pulumi.StringRef(_var.Application_vip_state),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Database.DatabaseFunctions;
import com.pulumi.oci.Database.inputs.GetApplicationVipsArgs;
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 testApplicationVips = DatabaseFunctions.getApplicationVips(GetApplicationVipsArgs.builder()
.cloudVmClusterId(oci_database_cloud_vm_cluster.test_cloud_vm_cluster().id())
.compartmentId(var_.compartment_id())
.state(var_.application_vip_state())
.build());
}
}
import pulumi
import pulumi_oci as oci
test_application_vips = oci.Database.get_application_vips(cloud_vm_cluster_id=oci_database_cloud_vm_cluster["test_cloud_vm_cluster"]["id"],
compartment_id=var["compartment_id"],
state=var["application_vip_state"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testApplicationVips = oci.Database.getApplicationVips({
cloudVmClusterId: oci_database_cloud_vm_cluster.test_cloud_vm_cluster.id,
compartmentId: _var.compartment_id,
state: _var.application_vip_state,
});
variables:
testApplicationVips:
fn::invoke:
Function: oci:Database:getApplicationVips
Arguments:
cloudVmClusterId: ${oci_database_cloud_vm_cluster.test_cloud_vm_cluster.id}
compartmentId: ${var.compartment_id}
state: ${var.application_vip_state}
Using getApplicationVips
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getApplicationVips(args: GetApplicationVipsArgs, opts?: InvokeOptions): Promise<GetApplicationVipsResult>
function getApplicationVipsOutput(args: GetApplicationVipsOutputArgs, opts?: InvokeOptions): Output<GetApplicationVipsResult>
def get_application_vips(cloud_vm_cluster_id: Optional[str] = None,
compartment_id: Optional[str] = None,
filters: Optional[Sequence[_database.GetApplicationVipsFilter]] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetApplicationVipsResult
def get_application_vips_output(cloud_vm_cluster_id: Optional[pulumi.Input[str]] = None,
compartment_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_database.GetApplicationVipsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetApplicationVipsResult]
func GetApplicationVips(ctx *Context, args *GetApplicationVipsArgs, opts ...InvokeOption) (*GetApplicationVipsResult, error)
func GetApplicationVipsOutput(ctx *Context, args *GetApplicationVipsOutputArgs, opts ...InvokeOption) GetApplicationVipsResultOutput
> Note: This function is named GetApplicationVips
in the Go SDK.
public static class GetApplicationVips
{
public static Task<GetApplicationVipsResult> InvokeAsync(GetApplicationVipsArgs args, InvokeOptions? opts = null)
public static Output<GetApplicationVipsResult> Invoke(GetApplicationVipsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetApplicationVipsResult> getApplicationVips(GetApplicationVipsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Database/getApplicationVips:getApplicationVips
arguments:
# arguments dictionary
The following arguments are supported:
- Cloud
Vm stringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- Compartment
Id string The compartment OCID.
- Filters
List<Get
Application Vips Filter> - State string
A filter to return only resources that match the given lifecycle state exactly.
- Cloud
Vm stringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- Compartment
Id string The compartment OCID.
- Filters
[]Get
Application Vips Filter - State string
A filter to return only resources that match the given lifecycle state exactly.
- cloud
Vm StringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment
Id String The compartment OCID.
- filters
List<Get
Application Vips Filter> - state String
A filter to return only resources that match the given lifecycle state exactly.
- cloud
Vm stringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment
Id string The compartment OCID.
- filters
Get
Application Vips Filter[] - state string
A filter to return only resources that match the given lifecycle state exactly.
- cloud_
vm_ strcluster_ id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment_
id str The compartment OCID.
- filters
Get
Application Vips Filter] - state str
A filter to return only resources that match the given lifecycle state exactly.
- cloud
Vm StringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment
Id String The compartment OCID.
- filters List<Property Map>
- state String
A filter to return only resources that match the given lifecycle state exactly.
getApplicationVips Result
The following output properties are available:
- Application
Vips List<GetApplication Vips Application Vip> The list of application_vips.
- 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.
- Id string
The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Application Vips Filter> - State string
The current lifecycle state of the application virtual IP (VIP) address.
- Application
Vips []GetApplication Vips Application Vip The list of application_vips.
- 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.
- Id string
The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Application Vips Filter - State string
The current lifecycle state of the application virtual IP (VIP) address.
- application
Vips List<GetApplication Vips Application Vip> The list of application_vips.
- 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.
- id String
The provider-assigned unique ID for this managed resource.
- filters
List<Get
Application Vips Filter> - state String
The current lifecycle state of the application virtual IP (VIP) address.
- application
Vips GetApplication Vips Application Vip[] The list of application_vips.
- 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.
- id string
The provider-assigned unique ID for this managed resource.
- filters
Get
Application Vips Filter[] - state string
The current lifecycle state of the application virtual IP (VIP) address.
- application_
vips GetApplication Vips Application Vip] The list of application_vips.
- 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.
- id str
The provider-assigned unique ID for this managed resource.
- filters
Get
Application Vips Filter] - state str
The current lifecycle state of the application virtual IP (VIP) address.
- application
Vips List<Property Map> The list of application_vips.
- 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.
- id String
The provider-assigned unique ID for this managed resource.
- filters List<Property Map>
- state String
The current lifecycle state of the application virtual IP (VIP) address.
Supporting Types
GetApplicationVipsApplicationVip
- Cloud
Vm stringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- Compartment
Id string The compartment OCID.
- Db
Node stringId - Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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"}
- Hostname
Label string The hostname of the application virtual IP (VIP) address.
- Id string
The OCID 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
A filter to return only resources that match the given lifecycle state exactly.
- Subnet
Id string The OCID of the subnet associated with 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.
- Cloud
Vm stringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- Compartment
Id string The compartment OCID.
- Db
Node stringId - map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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"}
- Hostname
Label string The hostname of the application virtual IP (VIP) address.
- Id string
The OCID 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
A filter to return only resources that match the given lifecycle state exactly.
- Subnet
Id string The OCID of the subnet associated with 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.
- cloud
Vm StringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment
Id String The compartment OCID.
- db
Node StringId - Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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"}
- hostname
Label String The hostname of the application virtual IP (VIP) address.
- id String
The OCID 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
A filter to return only resources that match the given lifecycle state exactly.
- subnet
Id String The OCID of the subnet associated with 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.
- cloud
Vm stringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment
Id string The compartment OCID.
- db
Node stringId - {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- {[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"}
- hostname
Label string The hostname of the application virtual IP (VIP) address.
- id string
The OCID 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
A filter to return only resources that match the given lifecycle state exactly.
- subnet
Id string The OCID of the subnet associated with 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.
- cloud_
vm_ strcluster_ id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment_
id str The compartment OCID.
- db_
node_ strid - Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource 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.
- id str
The OCID 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
A filter to return only resources that match the given lifecycle state exactly.
- subnet_
id str The OCID of the subnet associated with 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.
- cloud
Vm StringCluster Id The OCID of the cloud VM cluster associated with the application virtual IP (VIP) address.
- compartment
Id String The compartment OCID.
- db
Node StringId - Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
- 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"}
- hostname
Label String The hostname of the application virtual IP (VIP) address.
- id String
The OCID 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
A filter to return only resources that match the given lifecycle state exactly.
- subnet
Id String The OCID of the subnet associated with 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.
GetApplicationVipsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.