1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Ocvp
  5. getRetrievePassword
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

oci.Ocvp.getRetrievePassword

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi

    This data source retrieves the SDDC password in Oracle Cloud Infrastructure Oracle Cloud VMware Solution service.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testPassword = oci.Ocvp.getRetrievePassword({
        sddcId: compartmentId,
        type: passwordType,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_password = oci.Ocvp.get_retrieve_password(sddc_id=compartment_id,
        type=password_type)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/Ocvp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Ocvp.GetRetrievePassword(ctx, &ocvp.GetRetrievePasswordArgs{
    			SddcId: compartmentId,
    			Type:   passwordType,
    		}, nil)
    		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 testPassword = Oci.Ocvp.GetRetrievePassword.Invoke(new()
        {
            SddcId = compartmentId,
            Type = passwordType,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Ocvp.OcvpFunctions;
    import com.pulumi.oci.Ocvp.inputs.GetRetrievePasswordArgs;
    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 testPassword = OcvpFunctions.getRetrievePassword(GetRetrievePasswordArgs.builder()
                .sddcId(compartmentId)
                .type(passwordType)
                .build());
    
        }
    }
    
    variables:
      testPassword:
        fn::invoke:
          Function: oci:Ocvp:getRetrievePassword
          Arguments:
            sddcId: ${compartmentId}
            type: ${passwordType}
    

    Using getRetrievePassword

    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 getRetrievePassword(args: GetRetrievePasswordArgs, opts?: InvokeOptions): Promise<GetRetrievePasswordResult>
    function getRetrievePasswordOutput(args: GetRetrievePasswordOutputArgs, opts?: InvokeOptions): Output<GetRetrievePasswordResult>
    def get_retrieve_password(sddc_id: Optional[str] = None,
                              type: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetRetrievePasswordResult
    def get_retrieve_password_output(sddc_id: Optional[pulumi.Input[str]] = None,
                              type: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetRetrievePasswordResult]
    func GetRetrievePassword(ctx *Context, args *GetRetrievePasswordArgs, opts ...InvokeOption) (*GetRetrievePasswordResult, error)
    func GetRetrievePasswordOutput(ctx *Context, args *GetRetrievePasswordOutputArgs, opts ...InvokeOption) GetRetrievePasswordResultOutput

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

    public static class GetRetrievePassword 
    {
        public static Task<GetRetrievePasswordResult> InvokeAsync(GetRetrievePasswordArgs args, InvokeOptions? opts = null)
        public static Output<GetRetrievePasswordResult> Invoke(GetRetrievePasswordInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRetrievePasswordResult> getRetrievePassword(GetRetrievePasswordArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Ocvp/getRetrievePassword:getRetrievePassword
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SddcId string
    The OCID of the SDDC.
    Type string
    The SDDC password type.
    SddcId string
    The OCID of the SDDC.
    Type string
    The SDDC password type.
    sddcId String
    The OCID of the SDDC.
    type String
    The SDDC password type.
    sddcId string
    The OCID of the SDDC.
    type string
    The SDDC password type.
    sddc_id str
    The OCID of the SDDC.
    type str
    The SDDC password type.
    sddcId String
    The OCID of the SDDC.
    type String
    The SDDC password type.

    getRetrievePassword Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    SddcId string
    SddcPassword Dictionary<string, object>
    SDDC vCenter/NSX/HCX password.

    • passwordType - SDDC password type.
    Type string
    Id string
    The provider-assigned unique ID for this managed resource.
    SddcId string
    SddcPassword map[string]interface{}
    SDDC vCenter/NSX/HCX password.

    • passwordType - SDDC password type.
    Type string
    id String
    The provider-assigned unique ID for this managed resource.
    sddcId String
    sddcPassword Map<String,Object>
    SDDC vCenter/NSX/HCX password.

    • passwordType - SDDC password type.
    type String
    id string
    The provider-assigned unique ID for this managed resource.
    sddcId string
    sddcPassword {[key: string]: any}
    SDDC vCenter/NSX/HCX password.

    • passwordType - SDDC password type.
    type string
    id str
    The provider-assigned unique ID for this managed resource.
    sddc_id str
    sddc_password Mapping[str, Any]
    SDDC vCenter/NSX/HCX password.

    • passwordType - SDDC password type.
    type str
    id String
    The provider-assigned unique ID for this managed resource.
    sddcId String
    sddcPassword Map<Any>
    SDDC vCenter/NSX/HCX password.

    • passwordType - SDDC password type.
    type String

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi