Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.Ocvp.getRetrievePassword
Explore with Pulumi AI
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/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
})
}
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:
getRetrievePassword Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Sddc
Id string - Sddc
Password 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.
- Sddc
Id string - Sddc
Password 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.
- sddc
Id String - sddc
Password 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.
- sddc
Id string - sddc
Password {[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.
- sddc
Id String - sddc
Password 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.