1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Ocvp
  5. getRetrievePassword
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.Ocvp.getRetrievePassword

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 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,
});
Copy
import pulumi
import pulumi_oci as oci

test_password = oci.Ocvp.get_retrieve_password(sddc_id=compartment_id,
    type=password_type)
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testPassword:
    fn::invoke:
      function: oci:Ocvp:getRetrievePassword
      arguments:
        sddcId: ${compartmentId}
        type: ${passwordType}
Copy

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>
Copy
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]
Copy
func GetRetrievePassword(ctx *Context, args *GetRetrievePasswordArgs, opts ...InvokeOption) (*GetRetrievePasswordResult, error)
func GetRetrievePasswordOutput(ctx *Context, args *GetRetrievePasswordOutputArgs, opts ...InvokeOption) GetRetrievePasswordResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRetrievePasswordResult> getRetrievePassword(GetRetrievePasswordArgs args, InvokeOptions options)
public static Output<GetRetrievePasswordResult> getRetrievePassword(GetRetrievePasswordArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Ocvp/getRetrievePassword:getRetrievePassword
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SddcId This property is required. string
The OCID of the SDDC.
Type This property is required. string
The SDDC password type.
SddcId This property is required. string
The OCID of the SDDC.
Type This property is required. string
The SDDC password type.
sddcId This property is required. String
The OCID of the SDDC.
type This property is required. String
The SDDC password type.
sddcId This property is required. string
The OCID of the SDDC.
type This property is required. string
The SDDC password type.
sddc_id This property is required. str
The OCID of the SDDC.
type This property is required. str
The SDDC password type.
sddcId This property is required. String
The OCID of the SDDC.
type This property is required. 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, string>
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]string
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,String>
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]: string}
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, str]
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<String>
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.
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi