1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getFleetCredential
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.FleetAppsManagement.getFleetCredential

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Fleet Credential resource in Oracle Cloud Infrastructure Fleet Apps Management service.

    Gets a FleetCredential by identifier

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testFleetCredential = oci.FleetAppsManagement.getFleetCredential({
        fleetCredentialId: testFleetCredentialOciFleetAppsManagementFleetCredential.id,
        fleetId: testFleet.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_fleet_credential = oci.FleetAppsManagement.get_fleet_credential(fleet_credential_id=test_fleet_credential_oci_fleet_apps_management_fleet_credential["id"],
        fleet_id=test_fleet["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/FleetAppsManagement"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := FleetAppsManagement.GetFleetCredential(ctx, &fleetappsmanagement.GetFleetCredentialArgs{
    			FleetCredentialId: testFleetCredentialOciFleetAppsManagementFleetCredential.Id,
    			FleetId:           testFleet.Id,
    		}, 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 testFleetCredential = Oci.FleetAppsManagement.GetFleetCredential.Invoke(new()
        {
            FleetCredentialId = testFleetCredentialOciFleetAppsManagementFleetCredential.Id,
            FleetId = testFleet.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
    import com.pulumi.oci.FleetAppsManagement.inputs.GetFleetCredentialArgs;
    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 testFleetCredential = FleetAppsManagementFunctions.getFleetCredential(GetFleetCredentialArgs.builder()
                .fleetCredentialId(testFleetCredentialOciFleetAppsManagementFleetCredential.id())
                .fleetId(testFleet.id())
                .build());
    
        }
    }
    
    variables:
      testFleetCredential:
        fn::invoke:
          Function: oci:FleetAppsManagement:getFleetCredential
          Arguments:
            fleetCredentialId: ${testFleetCredentialOciFleetAppsManagementFleetCredential.id}
            fleetId: ${testFleet.id}
    

    Using getFleetCredential

    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 getFleetCredential(args: GetFleetCredentialArgs, opts?: InvokeOptions): Promise<GetFleetCredentialResult>
    function getFleetCredentialOutput(args: GetFleetCredentialOutputArgs, opts?: InvokeOptions): Output<GetFleetCredentialResult>
    def get_fleet_credential(fleet_credential_id: Optional[str] = None,
                             fleet_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetFleetCredentialResult
    def get_fleet_credential_output(fleet_credential_id: Optional[pulumi.Input[str]] = None,
                             fleet_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetFleetCredentialResult]
    func GetFleetCredential(ctx *Context, args *GetFleetCredentialArgs, opts ...InvokeOption) (*GetFleetCredentialResult, error)
    func GetFleetCredentialOutput(ctx *Context, args *GetFleetCredentialOutputArgs, opts ...InvokeOption) GetFleetCredentialResultOutput

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

    public static class GetFleetCredential 
    {
        public static Task<GetFleetCredentialResult> InvokeAsync(GetFleetCredentialArgs args, InvokeOptions? opts = null)
        public static Output<GetFleetCredentialResult> Invoke(GetFleetCredentialInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFleetCredentialResult> getFleetCredential(GetFleetCredentialArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:FleetAppsManagement/getFleetCredential:getFleetCredential
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FleetCredentialId string
    unique FleetCredential identifier
    FleetId string
    unique Fleet identifier
    FleetCredentialId string
    unique FleetCredential identifier
    FleetId string
    unique Fleet identifier
    fleetCredentialId String
    unique FleetCredential identifier
    fleetId String
    unique Fleet identifier
    fleetCredentialId string
    unique FleetCredential identifier
    fleetId string
    unique Fleet identifier
    fleet_credential_id str
    unique FleetCredential identifier
    fleet_id str
    unique Fleet identifier
    fleetCredentialId String
    unique FleetCredential identifier
    fleetId String
    unique Fleet identifier

    getFleetCredential Result

    The following output properties are available:

    CompartmentId string
    Tenancy OCID
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EntitySpecifics List<GetFleetCredentialEntitySpecific>
    Credential Details
    FleetCredentialId string
    FleetId string
    Id string
    The unique id of the resource.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    Passwords List<GetFleetCredentialPassword>
    Credential Details
    State string
    The current state of the FleetCredential.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    Users List<GetFleetCredentialUser>
    Credential Details
    CompartmentId string
    Tenancy OCID
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EntitySpecifics []GetFleetCredentialEntitySpecific
    Credential Details
    FleetCredentialId string
    FleetId string
    Id string
    The unique id of the resource.
    LifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    Passwords []GetFleetCredentialPassword
    Credential Details
    State string
    The current state of the FleetCredential.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    Users []GetFleetCredentialUser
    Credential Details
    compartmentId String
    Tenancy OCID
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entitySpecifics List<GetFleetCredentialEntitySpecific>
    Credential Details
    fleetCredentialId String
    fleetId String
    id String
    The unique id of the resource.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    passwords List<GetFleetCredentialPassword>
    Credential Details
    state String
    The current state of the FleetCredential.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.
    users List<GetFleetCredentialUser>
    Credential Details
    compartmentId string
    Tenancy OCID
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entitySpecifics GetFleetCredentialEntitySpecific[]
    Credential Details
    fleetCredentialId string
    fleetId string
    id string
    The unique id of the resource.
    lifecycleDetails string
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    passwords GetFleetCredentialPassword[]
    Credential Details
    state string
    The current state of the FleetCredential.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    users GetFleetCredentialUser[]
    Credential Details
    compartment_id str
    Tenancy OCID
    display_name str
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entity_specifics Sequence[fleetappsmanagement.GetFleetCredentialEntitySpecific]
    Credential Details
    fleet_credential_id str
    fleet_id str
    id str
    The unique id of the resource.
    lifecycle_details str
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    passwords Sequence[fleetappsmanagement.GetFleetCredentialPassword]
    Credential Details
    state str
    The current state of the FleetCredential.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time this resource was created. An RFC3339 formatted datetime string.
    time_updated str
    The time this resource was last updated. An RFC3339 formatted datetime string.
    users Sequence[fleetappsmanagement.GetFleetCredentialUser]
    Credential Details
    compartmentId String
    Tenancy OCID
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entitySpecifics List<Property Map>
    Credential Details
    fleetCredentialId String
    fleetId String
    id String
    The unique id of the resource.
    lifecycleDetails String
    A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
    passwords List<Property Map>
    Credential Details
    state String
    The current state of the FleetCredential.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.
    users List<Property Map>
    Credential Details

    Supporting Types

    GetFleetCredentialEntitySpecific

    CredentialLevel string
    Credential Level.
    ResourceId string
    OCID of the resource associated with the target for which credential is created
    Target string
    Target associated with the Credential
    CredentialLevel string
    Credential Level.
    ResourceId string
    OCID of the resource associated with the target for which credential is created
    Target string
    Target associated with the Credential
    credentialLevel String
    Credential Level.
    resourceId String
    OCID of the resource associated with the target for which credential is created
    target String
    Target associated with the Credential
    credentialLevel string
    Credential Level.
    resourceId string
    OCID of the resource associated with the target for which credential is created
    target string
    Target associated with the Credential
    credential_level str
    Credential Level.
    resource_id str
    OCID of the resource associated with the target for which credential is created
    target str
    Target associated with the Credential
    credentialLevel String
    Credential Level.
    resourceId String
    OCID of the resource associated with the target for which credential is created
    target String
    Target associated with the Credential

    GetFleetCredentialPassword

    CredentialType string
    Credential Type
    KeyId string
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    KeyVersion string
    The Vault Key version.
    SecretId string
    The OCID of the secret.
    SecretVersion string
    The secret version.
    Value string
    The value corresponding to the credential
    VaultId string
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    CredentialType string
    Credential Type
    KeyId string
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    KeyVersion string
    The Vault Key version.
    SecretId string
    The OCID of the secret.
    SecretVersion string
    The secret version.
    Value string
    The value corresponding to the credential
    VaultId string
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    credentialType String
    Credential Type
    keyId String
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    keyVersion String
    The Vault Key version.
    secretId String
    The OCID of the secret.
    secretVersion String
    The secret version.
    value String
    The value corresponding to the credential
    vaultId String
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    credentialType string
    Credential Type
    keyId string
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    keyVersion string
    The Vault Key version.
    secretId string
    The OCID of the secret.
    secretVersion string
    The secret version.
    value string
    The value corresponding to the credential
    vaultId string
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    credential_type str
    Credential Type
    key_id str
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    key_version str
    The Vault Key version.
    secret_id str
    The OCID of the secret.
    secret_version str
    The secret version.
    value str
    The value corresponding to the credential
    vault_id str
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    credentialType String
    Credential Type
    keyId String
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    keyVersion String
    The Vault Key version.
    secretId String
    The OCID of the secret.
    secretVersion String
    The secret version.
    value String
    The value corresponding to the credential
    vaultId String
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.

    GetFleetCredentialUser

    CredentialType string
    Credential Type
    KeyId string
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    KeyVersion string
    The Vault Key version.
    SecretId string
    The OCID of the secret.
    SecretVersion string
    The secret version.
    Value string
    The value corresponding to the credential
    VaultId string
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    CredentialType string
    Credential Type
    KeyId string
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    KeyVersion string
    The Vault Key version.
    SecretId string
    The OCID of the secret.
    SecretVersion string
    The secret version.
    Value string
    The value corresponding to the credential
    VaultId string
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    credentialType String
    Credential Type
    keyId String
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    keyVersion String
    The Vault Key version.
    secretId String
    The OCID of the secret.
    secretVersion String
    The secret version.
    value String
    The value corresponding to the credential
    vaultId String
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    credentialType string
    Credential Type
    keyId string
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    keyVersion string
    The Vault Key version.
    secretId string
    The OCID of the secret.
    secretVersion string
    The secret version.
    value string
    The value corresponding to the credential
    vaultId string
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    credential_type str
    Credential Type
    key_id str
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    key_version str
    The Vault Key version.
    secret_id str
    The OCID of the secret.
    secret_version str
    The secret version.
    value str
    The value corresponding to the credential
    vault_id str
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
    credentialType String
    Credential Type
    keyId String
    OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    keyVersion String
    The Vault Key version.
    secretId String
    The OCID of the secret.
    secretVersion String
    The secret version.
    value String
    The value corresponding to the credential
    vaultId String
    OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.

    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 v2.17.0 published on Friday, Nov 15, 2024 by Pulumi