Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi
oci.FleetAppsManagement.getFleetCredential
Explore with Pulumi AI
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)
public static Output<GetFleetCredentialResult> getFleetCredential(GetFleetCredentialArgs args, InvokeOptions options)
fn::invoke:
  function: oci:FleetAppsManagement/getFleetCredential:getFleetCredential
  arguments:
    # arguments dictionaryThe following arguments are supported:
- FleetCredential stringId 
- unique FleetCredential identifier
- FleetId string
- Unique Fleet identifier.
- FleetCredential stringId 
- unique FleetCredential identifier
- FleetId string
- Unique Fleet identifier.
- fleetCredential StringId 
- unique FleetCredential identifier
- fleetId String
- Unique Fleet identifier.
- fleetCredential stringId 
- unique FleetCredential identifier
- fleetId string
- Unique Fleet identifier.
- fleet_credential_ strid 
- unique FleetCredential identifier
- fleet_id str
- Unique Fleet identifier.
- fleetCredential StringId 
- 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<GetFleet Credential Entity Specific> 
- Credential specific Details.
- FleetCredential stringId 
- 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<GetFleet Credential Password> 
- Credential Details.
- State string
- The current state of the FleetCredential.
- 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 Credential User> 
- 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 []GetFleet Credential Entity Specific 
- Credential specific Details.
- FleetCredential stringId 
- 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
[]GetFleet Credential Password 
- Credential Details.
- State string
- The current state of the FleetCredential.
- 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 Credential User 
- 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<GetFleet Credential Entity Specific> 
- Credential specific Details.
- fleetCredential StringId 
- 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<GetFleet Credential Password> 
- Credential Details.
- state String
- The current state of the FleetCredential.
- 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 Credential User> 
- 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 GetFleet Credential Entity Specific[] 
- Credential specific Details.
- fleetCredential stringId 
- 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
GetFleet Credential Password[] 
- Credential Details.
- state string
- The current state of the FleetCredential.
- {[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 Credential User[] 
- 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.Get Fleet Credential Entity Specific] 
- Credential specific Details.
- fleet_credential_ strid 
- 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.Get Fleet Credential Password] 
- Credential Details.
- state str
- The current state of the FleetCredential.
- 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 Credential User] 
- 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 specific Details.
- fleetCredential StringId 
- 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.
- 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
- At what level the credential is provided?
- ResourceId string
- OCID of the resource associated with the target for which the credential is created.
- Target string
- Target name for which the credential is provided.
- Variables
List<GetFleet Credential Entity Specific Variable> 
- List of fleet credential variables.
- CredentialLevel string
- At what level the credential is provided?
- ResourceId string
- OCID of the resource associated with the target for which the credential is created.
- Target string
- Target name for which the credential is provided.
- Variables
[]GetFleet Credential Entity Specific Variable 
- List of fleet credential variables.
- credentialLevel String
- At what level the credential is provided?
- resourceId String
- OCID of the resource associated with the target for which the credential is created.
- target String
- Target name for which the credential is provided.
- variables
List<GetFleet Credential Entity Specific Variable> 
- List of fleet credential variables.
- credentialLevel string
- At what level the credential is provided?
- resourceId string
- OCID of the resource associated with the target for which the credential is created.
- target string
- Target name for which the credential is provided.
- variables
GetFleet Credential Entity Specific Variable[] 
- List of fleet credential variables.
- credential_level str
- At what level the credential is provided?
- resource_id str
- OCID of the resource associated with the target for which the credential is created.
- target str
- Target name for which the credential is provided.
- variables
Sequence[fleetappsmanagement.Get Fleet Credential Entity Specific Variable] 
- List of fleet credential variables.
- credentialLevel String
- At what level the credential is provided?
- resourceId String
- OCID of the resource associated with the target for which the credential is created.
- target String
- Target name for which the credential is provided.
- variables List<Property Map>
- List of fleet credential variables.
GetFleetCredentialEntitySpecificVariable     
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 the 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 the 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 the 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 the 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 the 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 the 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 the 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 the 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 the 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 the 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 the 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 the 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.