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

oci.FleetAppsManagement.getFleetCredentials

Explore with Pulumi AI

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

    This data source provides the list of Fleet Credentials in Oracle Cloud Infrastructure Fleet Apps Management service.

    Returns a list of FleetCredentials.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testFleetCredentials = oci.FleetAppsManagement.getFleetCredentials({
        fleetId: testFleet.id,
        compartmentId: compartmentId,
        credentialLevel: fleetCredentialCredentialLevel,
        displayName: fleetCredentialDisplayName,
        id: fleetCredentialId,
        state: fleetCredentialState,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_fleet_credentials = oci.FleetAppsManagement.get_fleet_credentials(fleet_id=test_fleet["id"],
        compartment_id=compartment_id,
        credential_level=fleet_credential_credential_level,
        display_name=fleet_credential_display_name,
        id=fleet_credential_id,
        state=fleet_credential_state)
    
    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.GetFleetCredentials(ctx, &fleetappsmanagement.GetFleetCredentialsArgs{
    			FleetId:         testFleet.Id,
    			CompartmentId:   pulumi.StringRef(compartmentId),
    			CredentialLevel: pulumi.StringRef(fleetCredentialCredentialLevel),
    			DisplayName:     pulumi.StringRef(fleetCredentialDisplayName),
    			Id:              pulumi.StringRef(fleetCredentialId),
    			State:           pulumi.StringRef(fleetCredentialState),
    		}, 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 testFleetCredentials = Oci.FleetAppsManagement.GetFleetCredentials.Invoke(new()
        {
            FleetId = testFleet.Id,
            CompartmentId = compartmentId,
            CredentialLevel = fleetCredentialCredentialLevel,
            DisplayName = fleetCredentialDisplayName,
            Id = fleetCredentialId,
            State = fleetCredentialState,
        });
    
    });
    
    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.GetFleetCredentialsArgs;
    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 testFleetCredentials = FleetAppsManagementFunctions.getFleetCredentials(GetFleetCredentialsArgs.builder()
                .fleetId(testFleet.id())
                .compartmentId(compartmentId)
                .credentialLevel(fleetCredentialCredentialLevel)
                .displayName(fleetCredentialDisplayName)
                .id(fleetCredentialId)
                .state(fleetCredentialState)
                .build());
    
        }
    }
    
    variables:
      testFleetCredentials:
        fn::invoke:
          Function: oci:FleetAppsManagement:getFleetCredentials
          Arguments:
            fleetId: ${testFleet.id}
            compartmentId: ${compartmentId}
            credentialLevel: ${fleetCredentialCredentialLevel}
            displayName: ${fleetCredentialDisplayName}
            id: ${fleetCredentialId}
            state: ${fleetCredentialState}
    

    Using getFleetCredentials

    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 getFleetCredentials(args: GetFleetCredentialsArgs, opts?: InvokeOptions): Promise<GetFleetCredentialsResult>
    function getFleetCredentialsOutput(args: GetFleetCredentialsOutputArgs, opts?: InvokeOptions): Output<GetFleetCredentialsResult>
    def get_fleet_credentials(compartment_id: Optional[str] = None,
                              credential_level: Optional[str] = None,
                              display_name: Optional[str] = None,
                              filters: Optional[Sequence[_fleetappsmanagement.GetFleetCredentialsFilter]] = None,
                              fleet_id: Optional[str] = None,
                              id: Optional[str] = None,
                              state: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetFleetCredentialsResult
    def get_fleet_credentials_output(compartment_id: Optional[pulumi.Input[str]] = None,
                              credential_level: Optional[pulumi.Input[str]] = None,
                              display_name: Optional[pulumi.Input[str]] = None,
                              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_fleetappsmanagement.GetFleetCredentialsFilterArgs]]]] = None,
                              fleet_id: Optional[pulumi.Input[str]] = None,
                              id: Optional[pulumi.Input[str]] = None,
                              state: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetFleetCredentialsResult]
    func GetFleetCredentials(ctx *Context, args *GetFleetCredentialsArgs, opts ...InvokeOption) (*GetFleetCredentialsResult, error)
    func GetFleetCredentialsOutput(ctx *Context, args *GetFleetCredentialsOutputArgs, opts ...InvokeOption) GetFleetCredentialsResultOutput

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

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

    The following arguments are supported:

    FleetId string
    unique Fleet identifier
    CompartmentId string
    The ID of the compartment in which to list resources.
    CredentialLevel string
    Credential Level.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetFleetCredentialsFilter>
    Id string
    unique FleetCredential identifier
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    FleetId string
    unique Fleet identifier
    CompartmentId string
    The ID of the compartment in which to list resources.
    CredentialLevel string
    Credential Level.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetFleetCredentialsFilter
    Id string
    unique FleetCredential identifier
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    fleetId String
    unique Fleet identifier
    compartmentId String
    The ID of the compartment in which to list resources.
    credentialLevel String
    Credential Level.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetFleetCredentialsFilter>
    id String
    unique FleetCredential identifier
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    fleetId string
    unique Fleet identifier
    compartmentId string
    The ID of the compartment in which to list resources.
    credentialLevel string
    Credential Level.
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetFleetCredentialsFilter[]
    id string
    unique FleetCredential identifier
    state string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    fleet_id str
    unique Fleet identifier
    compartment_id str
    The ID of the compartment in which to list resources.
    credential_level str
    Credential Level.
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[fleetappsmanagement.GetFleetCredentialsFilter]
    id str
    unique FleetCredential identifier
    state str
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    fleetId String
    unique Fleet identifier
    compartmentId String
    The ID of the compartment in which to list resources.
    credentialLevel String
    Credential Level.
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>
    id String
    unique FleetCredential identifier
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.

    getFleetCredentials Result

    The following output properties are available:

    FleetCredentialCollections List<GetFleetCredentialsFleetCredentialCollection>
    The list of fleet_credential_collection.
    FleetId string
    CompartmentId string
    Tenancy OCID
    CredentialLevel string
    Credential Level.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    Filters List<GetFleetCredentialsFilter>
    Id string
    The unique id of the resource.
    State string
    The current state of the FleetCredential.
    FleetCredentialCollections []GetFleetCredentialsFleetCredentialCollection
    The list of fleet_credential_collection.
    FleetId string
    CompartmentId string
    Tenancy OCID
    CredentialLevel string
    Credential Level.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    Filters []GetFleetCredentialsFilter
    Id string
    The unique id of the resource.
    State string
    The current state of the FleetCredential.
    fleetCredentialCollections List<GetFleetCredentialsFleetCredentialCollection>
    The list of fleet_credential_collection.
    fleetId String
    compartmentId String
    Tenancy OCID
    credentialLevel String
    Credential Level.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    filters List<GetFleetCredentialsFilter>
    id String
    The unique id of the resource.
    state String
    The current state of the FleetCredential.
    fleetCredentialCollections GetFleetCredentialsFleetCredentialCollection[]
    The list of fleet_credential_collection.
    fleetId string
    compartmentId string
    Tenancy OCID
    credentialLevel string
    Credential Level.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    filters GetFleetCredentialsFilter[]
    id string
    The unique id of the resource.
    state string
    The current state of the FleetCredential.
    fleet_credential_collections Sequence[fleetappsmanagement.GetFleetCredentialsFleetCredentialCollection]
    The list of fleet_credential_collection.
    fleet_id str
    compartment_id str
    Tenancy OCID
    credential_level str
    Credential Level.
    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
    filters Sequence[fleetappsmanagement.GetFleetCredentialsFilter]
    id str
    The unique id of the resource.
    state str
    The current state of the FleetCredential.
    fleetCredentialCollections List<Property Map>
    The list of fleet_credential_collection.
    fleetId String
    compartmentId String
    Tenancy OCID
    credentialLevel String
    Credential Level.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    filters List<Property Map>
    id String
    The unique id of the resource.
    state String
    The current state of the FleetCredential.

    Supporting Types

    GetFleetCredentialsFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetFleetCredentialsFleetCredentialCollection

    GetFleetCredentialsFleetCredentialCollectionItem

    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    EntitySpecifics List<GetFleetCredentialsFleetCredentialCollectionItemEntitySpecific>
    Credential Details
    FleetId string
    unique Fleet identifier
    Id string
    unique FleetCredential identifier
    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<GetFleetCredentialsFleetCredentialCollectionItemPassword>
    Credential Details
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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<GetFleetCredentialsFleetCredentialCollectionItemUser>
    Credential Details
    CompartmentId string
    The ID of the compartment in which to list resources.
    DisplayName string
    A filter to return only resources that match the entire display name given.
    EntitySpecifics []GetFleetCredentialsFleetCredentialCollectionItemEntitySpecific
    Credential Details
    FleetId string
    unique Fleet identifier
    Id string
    unique FleetCredential identifier
    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 []GetFleetCredentialsFleetCredentialCollectionItemPassword
    Credential Details
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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 []GetFleetCredentialsFleetCredentialCollectionItemUser
    Credential Details
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    entitySpecifics List<GetFleetCredentialsFleetCredentialCollectionItemEntitySpecific>
    Credential Details
    fleetId String
    unique Fleet identifier
    id String
    unique FleetCredential identifier
    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<GetFleetCredentialsFleetCredentialCollectionItemPassword>
    Credential Details
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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<GetFleetCredentialsFleetCredentialCollectionItemUser>
    Credential Details
    compartmentId string
    The ID of the compartment in which to list resources.
    displayName string
    A filter to return only resources that match the entire display name given.
    entitySpecifics GetFleetCredentialsFleetCredentialCollectionItemEntitySpecific[]
    Credential Details
    fleetId string
    unique Fleet identifier
    id string
    unique FleetCredential identifier
    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 GetFleetCredentialsFleetCredentialCollectionItemPassword[]
    Credential Details
    state string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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 GetFleetCredentialsFleetCredentialCollectionItemUser[]
    Credential Details
    compartment_id str
    The ID of the compartment in which to list resources.
    display_name str
    A filter to return only resources that match the entire display name given.
    entity_specifics Sequence[fleetappsmanagement.GetFleetCredentialsFleetCredentialCollectionItemEntitySpecific]
    Credential Details
    fleet_id str
    unique Fleet identifier
    id str
    unique FleetCredential identifier
    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.GetFleetCredentialsFleetCredentialCollectionItemPassword]
    Credential Details
    state str
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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.GetFleetCredentialsFleetCredentialCollectionItemUser]
    Credential Details
    compartmentId String
    The ID of the compartment in which to list resources.
    displayName String
    A filter to return only resources that match the entire display name given.
    entitySpecifics List<Property Map>
    Credential Details
    fleetId String
    unique Fleet identifier
    id String
    unique FleetCredential identifier
    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
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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

    GetFleetCredentialsFleetCredentialCollectionItemEntitySpecific

    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

    GetFleetCredentialsFleetCredentialCollectionItemPassword

    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.

    GetFleetCredentialsFleetCredentialCollectionItemUser

    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