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 dictionary
The following arguments are supported:
- Fleet
Id string - unique Fleet identifier
- Compartment
Id string - The ID of the compartment in which to list resources.
- Credential
Level string - Credential Level.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Fleet Credentials Filter> - Id string
- unique FleetCredential identifier
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- Fleet
Id string - unique Fleet identifier
- Compartment
Id string - The ID of the compartment in which to list resources.
- Credential
Level string - Credential Level.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Fleet Credentials Filter - Id string
- unique FleetCredential identifier
- State string
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- fleet
Id String - unique Fleet identifier
- compartment
Id String - The ID of the compartment in which to list resources.
- credential
Level String - Credential Level.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Fleet Credentials Filter> - id String
- unique FleetCredential identifier
- state String
- A filter to return only resources their lifecycleState matches the given lifecycleState.
- fleet
Id string - unique Fleet identifier
- compartment
Id string - The ID of the compartment in which to list resources.
- credential
Level string - Credential Level.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Fleet 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.
- fleet
Id String - unique Fleet identifier
- compartment
Id String - The ID of the compartment in which to list resources.
- credential
Level String - Credential Level.
- display
Name 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:
- Fleet
Credential List<GetCollections Fleet Credentials Fleet Credential Collection> - The list of fleet_credential_collection.
- Fleet
Id string - Compartment
Id string - Tenancy OCID
- Credential
Level string - Credential Level.
- Display
Name 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<Get
Fleet Credentials Filter> - Id string
- The unique id of the resource.
- State string
- The current state of the FleetCredential.
- Fleet
Credential []GetCollections Fleet Credentials Fleet Credential Collection - The list of fleet_credential_collection.
- Fleet
Id string - Compartment
Id string - Tenancy OCID
- Credential
Level string - Credential Level.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- Filters
[]Get
Fleet Credentials Filter - Id string
- The unique id of the resource.
- State string
- The current state of the FleetCredential.
- fleet
Credential List<GetCollections Fleet Credentials Fleet Credential Collection> - The list of fleet_credential_collection.
- fleet
Id String - compartment
Id String - Tenancy OCID
- credential
Level String - Credential Level.
- display
Name 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<Get
Fleet Credentials Filter> - id String
- The unique id of the resource.
- state String
- The current state of the FleetCredential.
- fleet
Credential GetCollections Fleet Credentials Fleet Credential Collection[] - The list of fleet_credential_collection.
- fleet
Id string - compartment
Id string - Tenancy OCID
- credential
Level string - Credential Level.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource
- filters
Get
Fleet 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.
- fleet
Credential List<Property Map>Collections - The list of fleet_credential_collection.
- fleet
Id String - compartment
Id String - Tenancy OCID
- credential
Level String - Credential Level.
- display
Name 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
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Entity
Specifics List<GetFleet Credentials Fleet Credential Collection Item Entity Specific> - Credential Details
- Fleet
Id string - unique Fleet identifier
- Id string
- unique FleetCredential identifier
- Lifecycle
Details 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<Get
Fleet 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"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Users
List<Get
Fleet Credentials Fleet Credential Collection Item User> - Credential Details
- Compartment
Id string - The ID of the compartment in which to list resources.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Entity
Specifics []GetFleet Credentials Fleet Credential Collection Item Entity Specific - Credential Details
- Fleet
Id string - unique Fleet identifier
- Id string
- unique FleetCredential identifier
- Lifecycle
Details 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
[]Get
Fleet 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"}
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Users
[]Get
Fleet Credentials Fleet Credential Collection Item User - Credential Details
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- entity
Specifics List<GetFleet Credentials Fleet Credential Collection Item Entity Specific> - Credential Details
- fleet
Id String - unique Fleet identifier
- id String
- unique FleetCredential identifier
- lifecycle
Details 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<Get
Fleet 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"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- users
List<Get
Fleet Credentials Fleet Credential Collection Item User> - Credential Details
- compartment
Id string - The ID of the compartment in which to list resources.
- display
Name string - A filter to return only resources that match the entire display name given.
- entity
Specifics GetFleet Credentials Fleet Credential Collection Item Entity Specific[] - Credential Details
- fleet
Id string - unique Fleet identifier
- id string
- unique FleetCredential identifier
- lifecycle
Details 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
Get
Fleet 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"}
- time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- users
Get
Fleet 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
- compartment
Id String - The ID of the compartment in which to list resources.
- display
Name String - A filter to return only resources that match the entire display name given.
- entity
Specifics List<Property Map> - Credential Details
- fleet
Id String - unique Fleet identifier
- id String
- unique FleetCredential identifier
- lifecycle
Details 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"}
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- users List<Property Map>
- Credential Details
GetFleetCredentialsFleetCredentialCollectionItemEntitySpecific
- Credential
Level string - Credential Level.
- Resource
Id string - OCID of the resource associated with the target for which credential is created
- Target string
- Target associated with the Credential
- Credential
Level string - Credential Level.
- Resource
Id string - OCID of the resource associated with the target for which credential is created
- Target string
- Target associated with the Credential
- credential
Level String - Credential Level.
- resource
Id String - OCID of the resource associated with the target for which credential is created
- target String
- Target associated with the Credential
- credential
Level string - Credential Level.
- resource
Id 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
- credential
Level String - Credential Level.
- resource
Id String - OCID of the resource associated with the target for which credential is created
- target String
- Target associated with the Credential
GetFleetCredentialsFleetCredentialCollectionItemPassword
- Credential
Type string - Credential Type
- Key
Id string - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- Key
Version string - The Vault Key version.
- Secret
Id string - The OCID of the secret.
- Secret
Version string - The secret version.
- Value string
- The value corresponding to the credential
- Vault
Id string - OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
- Credential
Type string - Credential Type
- Key
Id string - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- Key
Version string - The Vault Key version.
- Secret
Id string - The OCID of the secret.
- Secret
Version string - The secret version.
- Value string
- The value corresponding to the credential
- Vault
Id string - OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
- credential
Type String - Credential Type
- key
Id String - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- key
Version String - The Vault Key version.
- secret
Id String - The OCID of the secret.
- secret
Version String - The secret version.
- value String
- The value corresponding to the credential
- vault
Id String - OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
- credential
Type string - Credential Type
- key
Id string - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- key
Version string - The Vault Key version.
- secret
Id string - The OCID of the secret.
- secret
Version string - The secret version.
- value string
- The value corresponding to the credential
- vault
Id 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.
- credential
Type String - Credential Type
- key
Id String - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- key
Version String - The Vault Key version.
- secret
Id String - The OCID of the secret.
- secret
Version String - The secret version.
- value String
- The value corresponding to the credential
- vault
Id String - OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
GetFleetCredentialsFleetCredentialCollectionItemUser
- Credential
Type string - Credential Type
- Key
Id string - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- Key
Version string - The Vault Key version.
- Secret
Id string - The OCID of the secret.
- Secret
Version string - The secret version.
- Value string
- The value corresponding to the credential
- Vault
Id string - OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
- Credential
Type string - Credential Type
- Key
Id string - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- Key
Version string - The Vault Key version.
- Secret
Id string - The OCID of the secret.
- Secret
Version string - The secret version.
- Value string
- The value corresponding to the credential
- Vault
Id string - OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
- credential
Type String - Credential Type
- key
Id String - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- key
Version String - The Vault Key version.
- secret
Id String - The OCID of the secret.
- secret
Version String - The secret version.
- value String
- The value corresponding to the credential
- vault
Id String - OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.
- credential
Type string - Credential Type
- key
Id string - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- key
Version string - The Vault Key version.
- secret
Id string - The OCID of the secret.
- secret
Version string - The secret version.
- value string
- The value corresponding to the credential
- vault
Id 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.
- credential
Type String - Credential Type
- key
Id String - OCID for the Vault Key that will be used to encrypt/decrypt the value given.
- key
Version String - The Vault Key version.
- secret
Id String - The OCID of the secret.
- secret
Version String - The secret version.
- value String
- The value corresponding to the credential
- vault
Id 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.