Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.FleetAppsManagement.getFleetCredentials
Explore with Pulumi AI
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 dictionaryThe 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<GetFleet Credentials Filter> 
- 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
[]GetFleet Credentials Filter 
- 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<GetFleet Credentials Filter> 
- 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
GetFleet Credentials Filter[] 
- 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.Get Fleet Credentials Filter] 
- 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:
- FleetCredential List<GetCollections Fleet Credentials Fleet Credential Collection> 
- 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<GetFleet Credentials Filter> 
- Id string
- The unique id of the resource.
- State string
- The current state of the FleetCredential.
- FleetCredential []GetCollections Fleet Credentials Fleet Credential Collection 
- 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
[]GetFleet Credentials Filter 
- Id string
- The unique id of the resource.
- State string
- The current state of the FleetCredential.
- fleetCredential List<GetCollections Fleet Credentials Fleet Credential Collection> 
- 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<GetFleet Credentials Filter> 
- id String
- The unique id of the resource.
- state String
- The current state of the FleetCredential.
- fleetCredential GetCollections Fleet Credentials Fleet Credential Collection[] 
- 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
GetFleet Credentials Filter[] 
- id string
- The unique id of the resource.
- state string
- The current state of the FleetCredential.
- fleet_credential_ Sequence[fleetappsmanagement.collections Get Fleet Credentials Fleet Credential Collection] 
- 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.Get Fleet Credentials Filter] 
- id str
- The unique id of the resource.
- state str
- The current state of the FleetCredential.
- fleetCredential List<Property Map>Collections 
- 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   
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<GetFleet Credentials Fleet Credential Collection Item Entity Specific> 
- 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<GetFleet Credentials Fleet Credential Collection Item Password> 
- Credential Details
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- 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<GetFleet Credentials Fleet Credential Collection Item User> 
- 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 []GetFleet Credentials Fleet Credential Collection Item Entity Specific 
- 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
[]GetFleet Credentials Fleet Credential Collection Item Password 
- Credential Details
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- 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
[]GetFleet Credentials Fleet Credential Collection Item User 
- 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<GetFleet Credentials Fleet Credential Collection Item Entity Specific> 
- 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<GetFleet Credentials Fleet Credential Collection Item Password> 
- Credential Details
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- 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<GetFleet Credentials Fleet Credential Collection Item User> 
- 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 GetFleet Credentials Fleet Credential Collection Item Entity Specific[] 
- 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
GetFleet Credentials Fleet Credential Collection Item Password[] 
- Credential Details
- state string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- {[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
GetFleet Credentials Fleet Credential Collection Item User[] 
- 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.Get Fleet Credentials Fleet Credential Collection Item Entity Specific] 
- 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.Get Fleet Credentials Fleet Credential Collection Item Password] 
- Credential Details
- state str
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- 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.Get Fleet Credentials Fleet Credential Collection Item User] 
- 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.
- 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 ociTerraform Provider.