OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud
ovh.CloudProjectDatabase.getDatabaseIntegration
Explore with Pulumi AI
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);
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)
package main
import (
"github.com/ovh/pulumi-ovh/sdk/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
})
}
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),
};
});
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()));
}
}
variables:
integration:
fn::invoke:
Function: ovh:CloudProjectDatabase:getDatabaseIntegration
Arguments:
serviceName: XXX
engine: YYY
clusterId: ZZZ
id: UUU
outputs:
integrationType: ${integration.type}
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>
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]
func GetDatabaseIntegration(ctx *Context, args *GetDatabaseIntegrationArgs, opts ...InvokeOption) (*GetDatabaseIntegrationResult, error)
func GetDatabaseIntegrationOutput(ctx *Context, args *GetDatabaseIntegrationOutputArgs, opts ...InvokeOption) GetDatabaseIntegrationResultOutput
> 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)
}
public static CompletableFuture<GetDatabaseIntegrationResult> getDatabaseIntegration(GetDatabaseIntegrationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: ovh:CloudProjectDatabase/getDatabaseIntegration:getDatabaseIntegration
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - Cluster ID.
- Engine 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 string
- Integration ID
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- Cluster
Id string - Cluster ID.
- Engine 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 string
- Integration ID
- Service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster
Id String - Cluster ID.
- engine 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 String
- Integration ID
- service
Name String - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster
Id string - Cluster ID.
- engine 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 string
- Integration ID
- service
Name string - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster_
id str - Cluster ID.
- engine 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 str
- Integration ID
- service_
name str - The id of the public cloud project. If omitted,
the
OVH_CLOUD_PROJECT_SERVICE
environment variable is used.
- cluster
Id String - Cluster ID.
- engine 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 String
- Integration ID
- service
Name 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:
- Cluster
Id string - See Argument Reference above.
- Destination
Service stringId - 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.
- Service
Name string - See Argument Reference above.
- Source
Service stringId - ID of the source service.
- Status string
- Current status of the integration.
- Type string
- Type of the integration.
- Cluster
Id string - See Argument Reference above.
- Destination
Service stringId - 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.
- Service
Name string - See Argument Reference above.
- Source
Service stringId - ID of the source service.
- Status string
- Current status of the integration.
- Type string
- Type of the integration.
- cluster
Id String - See Argument Reference above.
- destination
Service StringId - 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.
- service
Name String - See Argument Reference above.
- source
Service StringId - ID of the source service.
- status String
- Current status of the integration.
- type String
- Type of the integration.
- cluster
Id string - See Argument Reference above.
- destination
Service stringId - 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.
- service
Name string - See Argument Reference above.
- source
Service stringId - 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_ strid - 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_ strid - ID of the source service.
- status str
- Current status of the integration.
- type str
- Type of the integration.
- cluster
Id String - See Argument Reference above.
- destination
Service StringId - ID of the destination service.
- engine String
- See Argument Reference above.
- id String
- See Argument Reference above.
- parameters Map<String>
- Parameters for the integration.
- service
Name String - See Argument Reference above.
- source
Service StringId - 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.