1. Packages
  2. OVH
  3. API Docs
  4. CloudProjectDatabase
  5. getDatabaseIntegrations
OVHCloud v0.37.1 published on Monday, Feb 26, 2024 by OVHcloud

ovh.CloudProjectDatabase.getDatabaseIntegrations

Explore with Pulumi AI

ovh logo
OVHCloud v0.37.1 published on Monday, Feb 26, 2024 by OVHcloud

    Use this data source to get the list of integrations of a database cluster associated with a public cloud project.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var integrations = Ovh.CloudProjectDatabase.GetDatabaseIntegrations.Invoke(new()
        {
            ServiceName = "XXX",
            Engine = "YYY",
            ClusterId = "ZZZ",
        });
    
        return new Dictionary<string, object?>
        {
            ["integrationIds"] = integrations.Apply(getDatabaseIntegrationsResult => getDatabaseIntegrationsResult.IntegrationIds),
        };
    });
    
    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 {
    		integrations, err := CloudProjectDatabase.GetDatabaseIntegrations(ctx, &cloudprojectdatabase.GetDatabaseIntegrationsArgs{
    			ServiceName: "XXX",
    			Engine:      "YYY",
    			ClusterId:   "ZZZ",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("integrationIds", integrations.IntegrationIds)
    		return nil
    	})
    }
    
    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.GetDatabaseIntegrationsArgs;
    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 integrations = CloudProjectDatabaseFunctions.getDatabaseIntegrations(GetDatabaseIntegrationsArgs.builder()
                .serviceName("XXX")
                .engine("YYY")
                .clusterId("ZZZ")
                .build());
    
            ctx.export("integrationIds", integrations.applyValue(getDatabaseIntegrationsResult -> getDatabaseIntegrationsResult.integrationIds()));
        }
    }
    
    import pulumi
    import pulumi_ovh as ovh
    
    integrations = ovh.CloudProjectDatabase.get_database_integrations(service_name="XXX",
        engine="YYY",
        cluster_id="ZZZ")
    pulumi.export("integrationIds", integrations.integration_ids)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@pulumi/ovh";
    
    const integrations = ovh.CloudProjectDatabase.getDatabaseIntegrations({
        serviceName: "XXX",
        engine: "YYY",
        clusterId: "ZZZ",
    });
    export const integrationIds = integrations.then(integrations => integrations.integrationIds);
    
    variables:
      integrations:
        fn::invoke:
          Function: ovh:CloudProjectDatabase:getDatabaseIntegrations
          Arguments:
            serviceName: XXX
            engine: YYY
            clusterId: ZZZ
    outputs:
      integrationIds: ${integrations.integrationIds}
    

    Using getDatabaseIntegrations

    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 getDatabaseIntegrations(args: GetDatabaseIntegrationsArgs, opts?: InvokeOptions): Promise<GetDatabaseIntegrationsResult>
    function getDatabaseIntegrationsOutput(args: GetDatabaseIntegrationsOutputArgs, opts?: InvokeOptions): Output<GetDatabaseIntegrationsResult>
    def get_database_integrations(cluster_id: Optional[str] = None,
                                  engine: Optional[str] = None,
                                  service_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDatabaseIntegrationsResult
    def get_database_integrations_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                  engine: Optional[pulumi.Input[str]] = None,
                                  service_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseIntegrationsResult]
    func GetDatabaseIntegrations(ctx *Context, args *GetDatabaseIntegrationsArgs, opts ...InvokeOption) (*GetDatabaseIntegrationsResult, error)
    func GetDatabaseIntegrationsOutput(ctx *Context, args *GetDatabaseIntegrationsOutputArgs, opts ...InvokeOption) GetDatabaseIntegrationsResultOutput

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

    public static class GetDatabaseIntegrations 
    {
        public static Task<GetDatabaseIntegrationsResult> InvokeAsync(GetDatabaseIntegrationsArgs args, InvokeOptions? opts = null)
        public static Output<GetDatabaseIntegrationsResult> Invoke(GetDatabaseIntegrationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatabaseIntegrationsResult> getDatabaseIntegrations(GetDatabaseIntegrationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: ovh:CloudProjectDatabase/getDatabaseIntegrations:getDatabaseIntegrations
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Cluster ID
    Engine string
    The engine of the database cluster you want to list integrations. To get a full list of available engine visit: public documentation. All engines available exept mongodb
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    ClusterId string
    Cluster ID
    Engine string
    The engine of the database cluster you want to list integrations. To get a full list of available engine visit: public documentation. All engines available exept mongodb
    ServiceName string
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    clusterId String
    Cluster ID
    engine String
    The engine of the database cluster you want to list integrations. To get a full list of available engine visit: public documentation. All engines available exept mongodb
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    clusterId string
    Cluster ID
    engine string
    The engine of the database cluster you want to list integrations. To get a full list of available engine visit: public documentation. All engines available exept mongodb
    serviceName 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 list integrations. To get a full list of available engine visit: public documentation. All engines available exept mongodb
    service_name str
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.
    clusterId String
    Cluster ID
    engine String
    The engine of the database cluster you want to list integrations. To get a full list of available engine visit: public documentation. All engines available exept mongodb
    serviceName String
    The id of the public cloud project. If omitted, the OVH_CLOUD_PROJECT_SERVICE environment variable is used.

    getDatabaseIntegrations Result

    The following output properties are available:

    ClusterId string
    See Argument Reference above.
    Engine string
    See Argument Reference above.
    Id string
    The provider-assigned unique ID for this managed resource.
    IntegrationIds List<string>
    The list of integrations ids of the database cluster associated with the project.
    ServiceName string
    See Argument Reference above.
    ClusterId string
    See Argument Reference above.
    Engine string
    See Argument Reference above.
    Id string
    The provider-assigned unique ID for this managed resource.
    IntegrationIds []string
    The list of integrations ids of the database cluster associated with the project.
    ServiceName string
    See Argument Reference above.
    clusterId String
    See Argument Reference above.
    engine String
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    integrationIds List<String>
    The list of integrations ids of the database cluster associated with the project.
    serviceName String
    See Argument Reference above.
    clusterId string
    See Argument Reference above.
    engine string
    See Argument Reference above.
    id string
    The provider-assigned unique ID for this managed resource.
    integrationIds string[]
    The list of integrations ids of the database cluster associated with the project.
    serviceName string
    See Argument Reference above.
    cluster_id str
    See Argument Reference above.
    engine str
    See Argument Reference above.
    id str
    The provider-assigned unique ID for this managed resource.
    integration_ids Sequence[str]
    The list of integrations ids of the database cluster associated with the project.
    service_name str
    See Argument Reference above.
    clusterId String
    See Argument Reference above.
    engine String
    See Argument Reference above.
    id String
    The provider-assigned unique ID for this managed resource.
    integrationIds List<String>
    The list of integrations ids of the database cluster associated with the project.
    serviceName String
    See Argument Reference above.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.37.1 published on Monday, Feb 26, 2024 by OVHcloud