1. Packages
  2. OVH
  3. API Docs
  4. CloudProjectDatabase
  5. getDatabaseIntegration
OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud

ovh.CloudProjectDatabase.getDatabaseIntegration

Explore with Pulumi AI

OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud

Use this data source to get information about an integration of a database cluster associated with a public cloud project.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@pulumi/ovh";

const integration = ovh.CloudProjectDatabase.getDatabaseIntegration({
    serviceName: "XXX",
    engine: "YYY",
    clusterId: "ZZZ",
    id: "UUU",
});
export const integrationType = integration.then(integration => integration.type);
Copy
import pulumi
import pulumi_ovh as ovh

integration = ovh.CloudProjectDatabase.get_database_integration(service_name="XXX",
    engine="YYY",
    cluster_id="ZZZ",
    id="UUU")
pulumi.export("integrationType", integration.type)
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudprojectdatabase"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		integration, err := cloudprojectdatabase.GetDatabaseIntegration(ctx, &cloudprojectdatabase.GetDatabaseIntegrationArgs{
			ServiceName: "XXX",
			Engine:      "YYY",
			ClusterId:   "ZZZ",
			Id:          "UUU",
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("integrationType", integration.Type)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;

return await Deployment.RunAsync(() => 
{
    var integration = Ovh.CloudProjectDatabase.GetDatabaseIntegration.Invoke(new()
    {
        ServiceName = "XXX",
        Engine = "YYY",
        ClusterId = "ZZZ",
        Id = "UUU",
    });

    return new Dictionary<string, object?>
    {
        ["integrationType"] = integration.Apply(getDatabaseIntegrationResult => getDatabaseIntegrationResult.Type),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProjectDatabase.CloudProjectDatabaseFunctions;
import com.pulumi.ovh.CloudProjectDatabase.inputs.GetDatabaseIntegrationArgs;
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 integration = CloudProjectDatabaseFunctions.getDatabaseIntegration(GetDatabaseIntegrationArgs.builder()
            .serviceName("XXX")
            .engine("YYY")
            .clusterId("ZZZ")
            .id("UUU")
            .build());

        ctx.export("integrationType", integration.applyValue(getDatabaseIntegrationResult -> getDatabaseIntegrationResult.type()));
    }
}
Copy
variables:
  integration:
    fn::invoke:
      function: ovh:CloudProjectDatabase:getDatabaseIntegration
      arguments:
        serviceName: XXX
        engine: YYY
        clusterId: ZZZ
        id: UUU
outputs:
  integrationType: ${integration.type}
Copy

Using getDatabaseIntegration

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 getDatabaseIntegration(args: GetDatabaseIntegrationArgs, opts?: InvokeOptions): Promise<GetDatabaseIntegrationResult>
function getDatabaseIntegrationOutput(args: GetDatabaseIntegrationOutputArgs, opts?: InvokeOptions): Output<GetDatabaseIntegrationResult>
Copy
def get_database_integration(cluster_id: Optional[str] = None,
                             engine: Optional[str] = None,
                             id: Optional[str] = None,
                             service_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetDatabaseIntegrationResult
def get_database_integration_output(cluster_id: Optional[pulumi.Input[str]] = None,
                             engine: Optional[pulumi.Input[str]] = None,
                             id: Optional[pulumi.Input[str]] = None,
                             service_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseIntegrationResult]
Copy
func GetDatabaseIntegration(ctx *Context, args *GetDatabaseIntegrationArgs, opts ...InvokeOption) (*GetDatabaseIntegrationResult, error)
func GetDatabaseIntegrationOutput(ctx *Context, args *GetDatabaseIntegrationOutputArgs, opts ...InvokeOption) GetDatabaseIntegrationResultOutput
Copy

> Note: This function is named GetDatabaseIntegration in the Go SDK.

public static class GetDatabaseIntegration 
{
    public static Task<GetDatabaseIntegrationResult> InvokeAsync(GetDatabaseIntegrationArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseIntegrationResult> Invoke(GetDatabaseIntegrationInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDatabaseIntegrationResult> getDatabaseIntegration(GetDatabaseIntegrationArgs args, InvokeOptions options)
public static Output<GetDatabaseIntegrationResult> getDatabaseIntegration(GetDatabaseIntegrationArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: ovh:CloudProjectDatabase/getDatabaseIntegration:getDatabaseIntegration
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterId This property is required. string
Cluster ID.
Engine This property is required. string
The engine of the database cluster you want to add. You can find the complete list of available engine in the public documentation. All engines available exept mongodb
Id This property is required. string
Integration ID
ServiceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
ClusterId This property is required. string
Cluster ID.
Engine This property is required. string
The engine of the database cluster you want to add. You can find the complete list of available engine in the public documentation. All engines available exept mongodb
Id This property is required. string
Integration ID
ServiceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
clusterId This property is required. String
Cluster ID.
engine This property is required. String
The engine of the database cluster you want to add. You can find the complete list of available engine in the public documentation. All engines available exept mongodb
id This property is required. String
Integration ID
serviceName This property is required. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
clusterId This property is required. string
Cluster ID.
engine This property is required. string
The engine of the database cluster you want to add. You can find the complete list of available engine in the public documentation. All engines available exept mongodb
id This property is required. string
Integration ID
serviceName This property is required. string
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
cluster_id This property is required. str
Cluster ID.
engine This property is required. str
The engine of the database cluster you want to add. You can find the complete list of available engine in the public documentation. All engines available exept mongodb
id This property is required. str
Integration ID
service_name This property is required. str
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
clusterId This property is required. String
Cluster ID.
engine This property is required. String
The engine of the database cluster you want to add. You can find the complete list of available engine in the public documentation. All engines available exept mongodb
id This property is required. String
Integration ID
serviceName This property is required. String
The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

getDatabaseIntegration Result

The following output properties are available:

ClusterId string
See Argument Reference above.
DestinationServiceId string
ID of the destination service.
Engine string
See Argument Reference above.
Id string
See Argument Reference above.
Parameters Dictionary<string, string>
Parameters for the integration.
ServiceName string
See Argument Reference above.
SourceServiceId string
ID of the source service.
Status string
Current status of the integration.
Type string
Type of the integration.
ClusterId string
See Argument Reference above.
DestinationServiceId string
ID of the destination service.
Engine string
See Argument Reference above.
Id string
See Argument Reference above.
Parameters map[string]string
Parameters for the integration.
ServiceName string
See Argument Reference above.
SourceServiceId string
ID of the source service.
Status string
Current status of the integration.
Type string
Type of the integration.
clusterId String
See Argument Reference above.
destinationServiceId String
ID of the destination service.
engine String
See Argument Reference above.
id String
See Argument Reference above.
parameters Map<String,String>
Parameters for the integration.
serviceName String
See Argument Reference above.
sourceServiceId String
ID of the source service.
status String
Current status of the integration.
type String
Type of the integration.
clusterId string
See Argument Reference above.
destinationServiceId string
ID of the destination service.
engine string
See Argument Reference above.
id string
See Argument Reference above.
parameters {[key: string]: string}
Parameters for the integration.
serviceName string
See Argument Reference above.
sourceServiceId string
ID of the source service.
status string
Current status of the integration.
type string
Type of the integration.
cluster_id str
See Argument Reference above.
destination_service_id str
ID of the destination service.
engine str
See Argument Reference above.
id str
See Argument Reference above.
parameters Mapping[str, str]
Parameters for the integration.
service_name str
See Argument Reference above.
source_service_id str
ID of the source service.
status str
Current status of the integration.
type str
Type of the integration.
clusterId String
See Argument Reference above.
destinationServiceId String
ID of the destination service.
engine String
See Argument Reference above.
id String
See Argument Reference above.
parameters Map<String>
Parameters for the integration.
serviceName String
See Argument Reference above.
sourceServiceId String
ID of the source service.
status String
Current status of the integration.
type String
Type of the integration.

Package Details

Repository
ovh ovh/pulumi-ovh
License
Apache-2.0
Notes
This Pulumi package is based on the ovh Terraform Provider.
OVHCloud v2.0.7 published on Wednesday, Mar 19, 2025 by OVHcloud