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

oci.FleetAppsManagement.FleetCredential

Explore with Pulumi AI

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

    This resource provides the Fleet Credential resource in Oracle Cloud Infrastructure Fleet Apps Management service.

    Creates a new FleetCredential.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testFleetCredential = new oci.fleetappsmanagement.FleetCredential("test_fleet_credential", {
        compartmentId: compartmentId,
        displayName: fleetCredentialDisplayName,
        entitySpecifics: {
            credentialLevel: fleetCredentialEntitySpecificsCredentialLevel,
            resourceId: testResource.id,
            target: fleetCredentialEntitySpecificsTarget,
        },
        fleetId: testFleet.id,
        password: {
            credentialType: fleetCredentialPasswordCredentialType,
            keyId: testKey.id,
            keyVersion: fleetCredentialPasswordKeyVersion,
            secretId: testSecret.id,
            secretVersion: fleetCredentialPasswordSecretVersion,
            value: fleetCredentialPasswordValue,
            vaultId: testVault.id,
        },
        user: {
            credentialType: fleetCredentialUserCredentialType,
            keyId: testKey.id,
            keyVersion: fleetCredentialUserKeyVersion,
            secretId: testSecret.id,
            secretVersion: fleetCredentialUserSecretVersion,
            value: fleetCredentialUserValue,
            vaultId: testVault.id,
        },
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_fleet_credential = oci.fleet_apps_management.FleetCredential("test_fleet_credential",
        compartment_id=compartment_id,
        display_name=fleet_credential_display_name,
        entity_specifics={
            "credential_level": fleet_credential_entity_specifics_credential_level,
            "resource_id": test_resource["id"],
            "target": fleet_credential_entity_specifics_target,
        },
        fleet_id=test_fleet["id"],
        password={
            "credential_type": fleet_credential_password_credential_type,
            "key_id": test_key["id"],
            "key_version": fleet_credential_password_key_version,
            "secret_id": test_secret["id"],
            "secret_version": fleet_credential_password_secret_version,
            "value": fleet_credential_password_value,
            "vault_id": test_vault["id"],
        },
        user={
            "credential_type": fleet_credential_user_credential_type,
            "key_id": test_key["id"],
            "key_version": fleet_credential_user_key_version,
            "secret_id": test_secret["id"],
            "secret_version": fleet_credential_user_secret_version,
            "value": fleet_credential_user_value,
            "vault_id": test_vault["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.NewFleetCredential(ctx, "test_fleet_credential", &FleetAppsManagement.FleetCredentialArgs{
    			CompartmentId: pulumi.Any(compartmentId),
    			DisplayName:   pulumi.Any(fleetCredentialDisplayName),
    			EntitySpecifics: &fleetappsmanagement.FleetCredentialEntitySpecificsArgs{
    				CredentialLevel: pulumi.Any(fleetCredentialEntitySpecificsCredentialLevel),
    				ResourceId:      pulumi.Any(testResource.Id),
    				Target:          pulumi.Any(fleetCredentialEntitySpecificsTarget),
    			},
    			FleetId: pulumi.Any(testFleet.Id),
    			Password: &fleetappsmanagement.FleetCredentialPasswordArgs{
    				CredentialType: pulumi.Any(fleetCredentialPasswordCredentialType),
    				KeyId:          pulumi.Any(testKey.Id),
    				KeyVersion:     pulumi.Any(fleetCredentialPasswordKeyVersion),
    				SecretId:       pulumi.Any(testSecret.Id),
    				SecretVersion:  pulumi.Any(fleetCredentialPasswordSecretVersion),
    				Value:          pulumi.Any(fleetCredentialPasswordValue),
    				VaultId:        pulumi.Any(testVault.Id),
    			},
    			User: &fleetappsmanagement.FleetCredentialUserArgs{
    				CredentialType: pulumi.Any(fleetCredentialUserCredentialType),
    				KeyId:          pulumi.Any(testKey.Id),
    				KeyVersion:     pulumi.Any(fleetCredentialUserKeyVersion),
    				SecretId:       pulumi.Any(testSecret.Id),
    				SecretVersion:  pulumi.Any(fleetCredentialUserSecretVersion),
    				Value:          pulumi.Any(fleetCredentialUserValue),
    				VaultId:        pulumi.Any(testVault.Id),
    			},
    		})
    		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 = new Oci.FleetAppsManagement.FleetCredential("test_fleet_credential", new()
        {
            CompartmentId = compartmentId,
            DisplayName = fleetCredentialDisplayName,
            EntitySpecifics = new Oci.FleetAppsManagement.Inputs.FleetCredentialEntitySpecificsArgs
            {
                CredentialLevel = fleetCredentialEntitySpecificsCredentialLevel,
                ResourceId = testResource.Id,
                Target = fleetCredentialEntitySpecificsTarget,
            },
            FleetId = testFleet.Id,
            Password = new Oci.FleetAppsManagement.Inputs.FleetCredentialPasswordArgs
            {
                CredentialType = fleetCredentialPasswordCredentialType,
                KeyId = testKey.Id,
                KeyVersion = fleetCredentialPasswordKeyVersion,
                SecretId = testSecret.Id,
                SecretVersion = fleetCredentialPasswordSecretVersion,
                Value = fleetCredentialPasswordValue,
                VaultId = testVault.Id,
            },
            User = new Oci.FleetAppsManagement.Inputs.FleetCredentialUserArgs
            {
                CredentialType = fleetCredentialUserCredentialType,
                KeyId = testKey.Id,
                KeyVersion = fleetCredentialUserKeyVersion,
                SecretId = testSecret.Id,
                SecretVersion = fleetCredentialUserSecretVersion,
                Value = fleetCredentialUserValue,
                VaultId = testVault.Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.FleetAppsManagement.FleetCredential;
    import com.pulumi.oci.FleetAppsManagement.FleetCredentialArgs;
    import com.pulumi.oci.FleetAppsManagement.inputs.FleetCredentialEntitySpecificsArgs;
    import com.pulumi.oci.FleetAppsManagement.inputs.FleetCredentialPasswordArgs;
    import com.pulumi.oci.FleetAppsManagement.inputs.FleetCredentialUserArgs;
    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) {
            var testFleetCredential = new FleetCredential("testFleetCredential", FleetCredentialArgs.builder()
                .compartmentId(compartmentId)
                .displayName(fleetCredentialDisplayName)
                .entitySpecifics(FleetCredentialEntitySpecificsArgs.builder()
                    .credentialLevel(fleetCredentialEntitySpecificsCredentialLevel)
                    .resourceId(testResource.id())
                    .target(fleetCredentialEntitySpecificsTarget)
                    .build())
                .fleetId(testFleet.id())
                .password(FleetCredentialPasswordArgs.builder()
                    .credentialType(fleetCredentialPasswordCredentialType)
                    .keyId(testKey.id())
                    .keyVersion(fleetCredentialPasswordKeyVersion)
                    .secretId(testSecret.id())
                    .secretVersion(fleetCredentialPasswordSecretVersion)
                    .value(fleetCredentialPasswordValue)
                    .vaultId(testVault.id())
                    .build())
                .user(FleetCredentialUserArgs.builder()
                    .credentialType(fleetCredentialUserCredentialType)
                    .keyId(testKey.id())
                    .keyVersion(fleetCredentialUserKeyVersion)
                    .secretId(testSecret.id())
                    .secretVersion(fleetCredentialUserSecretVersion)
                    .value(fleetCredentialUserValue)
                    .vaultId(testVault.id())
                    .build())
                .build());
    
        }
    }
    
    resources:
      testFleetCredential:
        type: oci:FleetAppsManagement:FleetCredential
        name: test_fleet_credential
        properties:
          compartmentId: ${compartmentId}
          displayName: ${fleetCredentialDisplayName}
          entitySpecifics:
            credentialLevel: ${fleetCredentialEntitySpecificsCredentialLevel}
            resourceId: ${testResource.id}
            target: ${fleetCredentialEntitySpecificsTarget}
          fleetId: ${testFleet.id}
          password:
            credentialType: ${fleetCredentialPasswordCredentialType}
            keyId: ${testKey.id}
            keyVersion: ${fleetCredentialPasswordKeyVersion}
            secretId: ${testSecret.id}
            secretVersion: ${fleetCredentialPasswordSecretVersion}
            value: ${fleetCredentialPasswordValue}
            vaultId: ${testVault.id}
          user:
            credentialType: ${fleetCredentialUserCredentialType}
            keyId: ${testKey.id}
            keyVersion: ${fleetCredentialUserKeyVersion}
            secretId: ${testSecret.id}
            secretVersion: ${fleetCredentialUserSecretVersion}
            value: ${fleetCredentialUserValue}
            vaultId: ${testVault.id}
    

    Create FleetCredential Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FleetCredential(name: string, args: FleetCredentialArgs, opts?: CustomResourceOptions);
    @overload
    def FleetCredential(resource_name: str,
                        args: FleetCredentialArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def FleetCredential(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        compartment_id: Optional[str] = None,
                        display_name: Optional[str] = None,
                        entity_specifics: Optional[_fleetappsmanagement.FleetCredentialEntitySpecificsArgs] = None,
                        fleet_id: Optional[str] = None,
                        password: Optional[_fleetappsmanagement.FleetCredentialPasswordArgs] = None,
                        user: Optional[_fleetappsmanagement.FleetCredentialUserArgs] = None)
    func NewFleetCredential(ctx *Context, name string, args FleetCredentialArgs, opts ...ResourceOption) (*FleetCredential, error)
    public FleetCredential(string name, FleetCredentialArgs args, CustomResourceOptions? opts = null)
    public FleetCredential(String name, FleetCredentialArgs args)
    public FleetCredential(String name, FleetCredentialArgs args, CustomResourceOptions options)
    
    type: oci:FleetAppsManagement:FleetCredential
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FleetCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FleetCredentialArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FleetCredentialArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FleetCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FleetCredentialArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var fleetCredentialResource = new Oci.FleetAppsManagement.FleetCredential("fleetCredentialResource", new()
    {
        CompartmentId = "string",
        DisplayName = "string",
        EntitySpecifics = new Oci.FleetAppsManagement.Inputs.FleetCredentialEntitySpecificsArgs
        {
            CredentialLevel = "string",
            ResourceId = "string",
            Target = "string",
        },
        FleetId = "string",
        Password = new Oci.FleetAppsManagement.Inputs.FleetCredentialPasswordArgs
        {
            CredentialType = "string",
            KeyId = "string",
            KeyVersion = "string",
            SecretId = "string",
            SecretVersion = "string",
            Value = "string",
            VaultId = "string",
        },
        User = new Oci.FleetAppsManagement.Inputs.FleetCredentialUserArgs
        {
            CredentialType = "string",
            KeyId = "string",
            KeyVersion = "string",
            SecretId = "string",
            SecretVersion = "string",
            Value = "string",
            VaultId = "string",
        },
    });
    
    example, err := FleetAppsManagement.NewFleetCredential(ctx, "fleetCredentialResource", &FleetAppsManagement.FleetCredentialArgs{
    	CompartmentId: pulumi.String("string"),
    	DisplayName:   pulumi.String("string"),
    	EntitySpecifics: &fleetappsmanagement.FleetCredentialEntitySpecificsArgs{
    		CredentialLevel: pulumi.String("string"),
    		ResourceId:      pulumi.String("string"),
    		Target:          pulumi.String("string"),
    	},
    	FleetId: pulumi.String("string"),
    	Password: &fleetappsmanagement.FleetCredentialPasswordArgs{
    		CredentialType: pulumi.String("string"),
    		KeyId:          pulumi.String("string"),
    		KeyVersion:     pulumi.String("string"),
    		SecretId:       pulumi.String("string"),
    		SecretVersion:  pulumi.String("string"),
    		Value:          pulumi.String("string"),
    		VaultId:        pulumi.String("string"),
    	},
    	User: &fleetappsmanagement.FleetCredentialUserArgs{
    		CredentialType: pulumi.String("string"),
    		KeyId:          pulumi.String("string"),
    		KeyVersion:     pulumi.String("string"),
    		SecretId:       pulumi.String("string"),
    		SecretVersion:  pulumi.String("string"),
    		Value:          pulumi.String("string"),
    		VaultId:        pulumi.String("string"),
    	},
    })
    
    var fleetCredentialResource = new FleetCredential("fleetCredentialResource", FleetCredentialArgs.builder()
        .compartmentId("string")
        .displayName("string")
        .entitySpecifics(FleetCredentialEntitySpecificsArgs.builder()
            .credentialLevel("string")
            .resourceId("string")
            .target("string")
            .build())
        .fleetId("string")
        .password(FleetCredentialPasswordArgs.builder()
            .credentialType("string")
            .keyId("string")
            .keyVersion("string")
            .secretId("string")
            .secretVersion("string")
            .value("string")
            .vaultId("string")
            .build())
        .user(FleetCredentialUserArgs.builder()
            .credentialType("string")
            .keyId("string")
            .keyVersion("string")
            .secretId("string")
            .secretVersion("string")
            .value("string")
            .vaultId("string")
            .build())
        .build());
    
    fleet_credential_resource = oci.fleet_apps_management.FleetCredential("fleetCredentialResource",
        compartment_id="string",
        display_name="string",
        entity_specifics={
            "credential_level": "string",
            "resource_id": "string",
            "target": "string",
        },
        fleet_id="string",
        password={
            "credential_type": "string",
            "key_id": "string",
            "key_version": "string",
            "secret_id": "string",
            "secret_version": "string",
            "value": "string",
            "vault_id": "string",
        },
        user={
            "credential_type": "string",
            "key_id": "string",
            "key_version": "string",
            "secret_id": "string",
            "secret_version": "string",
            "value": "string",
            "vault_id": "string",
        })
    
    const fleetCredentialResource = new oci.fleetappsmanagement.FleetCredential("fleetCredentialResource", {
        compartmentId: "string",
        displayName: "string",
        entitySpecifics: {
            credentialLevel: "string",
            resourceId: "string",
            target: "string",
        },
        fleetId: "string",
        password: {
            credentialType: "string",
            keyId: "string",
            keyVersion: "string",
            secretId: "string",
            secretVersion: "string",
            value: "string",
            vaultId: "string",
        },
        user: {
            credentialType: "string",
            keyId: "string",
            keyVersion: "string",
            secretId: "string",
            secretVersion: "string",
            value: "string",
            vaultId: "string",
        },
    });
    
    type: oci:FleetAppsManagement:FleetCredential
    properties:
        compartmentId: string
        displayName: string
        entitySpecifics:
            credentialLevel: string
            resourceId: string
            target: string
        fleetId: string
        password:
            credentialType: string
            keyId: string
            keyVersion: string
            secretId: string
            secretVersion: string
            value: string
            vaultId: string
        user:
            credentialType: string
            keyId: string
            keyVersion: string
            secretId: string
            secretVersion: string
            value: string
            vaultId: string
    

    FleetCredential Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The FleetCredential resource accepts the following input properties:

    CompartmentId string
    Tenancy OCID
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EntitySpecifics FleetCredentialEntitySpecifics
    (Updatable) Credential Details
    FleetId string
    unique Fleet identifier
    Password FleetCredentialPassword
    (Updatable) Credential Details
    User FleetCredentialUser
    (Updatable) Credential Details
    CompartmentId string
    Tenancy OCID
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EntitySpecifics FleetCredentialEntitySpecificsArgs
    (Updatable) Credential Details
    FleetId string
    unique Fleet identifier
    Password FleetCredentialPasswordArgs
    (Updatable) Credential Details
    User FleetCredentialUserArgs
    (Updatable) Credential Details
    compartmentId String
    Tenancy OCID
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entitySpecifics FleetCredentialEntitySpecifics
    (Updatable) Credential Details
    fleetId String
    unique Fleet identifier
    password FleetCredentialPassword
    (Updatable) Credential Details
    user FleetCredentialUser
    (Updatable) Credential Details
    compartmentId string
    Tenancy OCID
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entitySpecifics FleetCredentialEntitySpecifics
    (Updatable) Credential Details
    fleetId string
    unique Fleet identifier
    password FleetCredentialPassword
    (Updatable) Credential Details
    user FleetCredentialUser
    (Updatable) Credential Details
    compartment_id str
    Tenancy OCID
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entity_specifics fleetappsmanagement.FleetCredentialEntitySpecificsArgs
    (Updatable) Credential Details
    fleet_id str
    unique Fleet identifier
    password fleetappsmanagement.FleetCredentialPasswordArgs
    (Updatable) Credential Details
    user fleetappsmanagement.FleetCredentialUserArgs
    (Updatable) Credential Details
    compartmentId String
    Tenancy OCID
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entitySpecifics Property Map
    (Updatable) Credential Details
    fleetId String
    unique Fleet identifier
    password Property Map
    (Updatable) Credential Details
    user Property Map
    (Updatable) Credential Details

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FleetCredential resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed 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.
    State string
    The current state of the FleetCredential.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    Id string
    The provider-assigned unique ID for this managed 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.
    State string
    The current state of the FleetCredential.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    id String
    The provider-assigned unique ID for this managed 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.
    state String
    The current state of the FleetCredential.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.
    id string
    The provider-assigned unique ID for this managed 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.
    state string
    The current state of the FleetCredential.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    id str
    The provider-assigned unique ID for this managed 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.
    state str
    The current state of the FleetCredential.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time this resource was created. An RFC3339 formatted datetime string.
    time_updated str
    The time this resource was last updated. An RFC3339 formatted datetime string.
    id String
    The provider-assigned unique ID for this managed 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.
    state String
    The current state of the FleetCredential.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.

    Look up Existing FleetCredential Resource

    Get an existing FleetCredential resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FleetCredentialState, opts?: CustomResourceOptions): FleetCredential
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            compartment_id: Optional[str] = None,
            display_name: Optional[str] = None,
            entity_specifics: Optional[_fleetappsmanagement.FleetCredentialEntitySpecificsArgs] = None,
            fleet_id: Optional[str] = None,
            lifecycle_details: Optional[str] = None,
            password: Optional[_fleetappsmanagement.FleetCredentialPasswordArgs] = None,
            state: Optional[str] = None,
            system_tags: Optional[Mapping[str, str]] = None,
            time_created: Optional[str] = None,
            time_updated: Optional[str] = None,
            user: Optional[_fleetappsmanagement.FleetCredentialUserArgs] = None) -> FleetCredential
    func GetFleetCredential(ctx *Context, name string, id IDInput, state *FleetCredentialState, opts ...ResourceOption) (*FleetCredential, error)
    public static FleetCredential Get(string name, Input<string> id, FleetCredentialState? state, CustomResourceOptions? opts = null)
    public static FleetCredential get(String name, Output<String> id, FleetCredentialState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CompartmentId string
    Tenancy OCID
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EntitySpecifics FleetCredentialEntitySpecifics
    (Updatable) Credential Details
    FleetId string
    unique Fleet 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.
    Password FleetCredentialPassword
    (Updatable) Credential Details
    State string
    The current state of the FleetCredential.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    User FleetCredentialUser
    (Updatable) Credential Details
    CompartmentId string
    Tenancy OCID
    DisplayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EntitySpecifics FleetCredentialEntitySpecificsArgs
    (Updatable) Credential Details
    FleetId string
    unique Fleet 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.
    Password FleetCredentialPasswordArgs
    (Updatable) Credential Details
    State string
    The current state of the FleetCredential.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    User FleetCredentialUserArgs
    (Updatable) Credential Details
    compartmentId String
    Tenancy OCID
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entitySpecifics FleetCredentialEntitySpecifics
    (Updatable) Credential Details
    fleetId String
    unique Fleet 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.
    password FleetCredentialPassword
    (Updatable) Credential Details
    state String
    The current state of the FleetCredential.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.
    user FleetCredentialUser
    (Updatable) Credential Details
    compartmentId string
    Tenancy OCID
    displayName string
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entitySpecifics FleetCredentialEntitySpecifics
    (Updatable) Credential Details
    fleetId string
    unique Fleet 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.
    password FleetCredentialPassword
    (Updatable) Credential Details
    state string
    The current state of the FleetCredential.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time this resource was last updated. An RFC3339 formatted datetime string.
    user FleetCredentialUser
    (Updatable) Credential Details
    compartment_id str
    Tenancy OCID
    display_name str
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entity_specifics fleetappsmanagement.FleetCredentialEntitySpecificsArgs
    (Updatable) Credential Details
    fleet_id str
    unique Fleet 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.
    password fleetappsmanagement.FleetCredentialPasswordArgs
    (Updatable) Credential Details
    state str
    The current state of the FleetCredential.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    The time this resource was created. An RFC3339 formatted datetime string.
    time_updated str
    The time this resource was last updated. An RFC3339 formatted datetime string.
    user fleetappsmanagement.FleetCredentialUserArgs
    (Updatable) Credential Details
    compartmentId String
    Tenancy OCID
    displayName String
    (Updatable) A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    entitySpecifics Property Map
    (Updatable) Credential Details
    fleetId String
    unique Fleet 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.
    password Property Map
    (Updatable) Credential Details
    state String
    The current state of the FleetCredential.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    The time this resource was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time this resource was last updated. An RFC3339 formatted datetime string.
    user Property Map
    (Updatable) Credential Details

    Supporting Types

    FleetCredentialEntitySpecifics, FleetCredentialEntitySpecificsArgs

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

    FleetCredentialPassword, FleetCredentialPasswordArgs

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

    FleetCredentialUser, FleetCredentialUserArgs

    CredentialType string
    (Updatable) Credential Type
    KeyId string
    (Updatable) OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    KeyVersion string
    (Updatable) The Vault Key version.
    SecretId string
    (Updatable) The OCID of the secret.
    SecretVersion string
    (Updatable) The secret version.
    Value string
    (Updatable) The value corresponding to the credential
    VaultId string

    (Updatable) OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    CredentialType string
    (Updatable) Credential Type
    KeyId string
    (Updatable) OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    KeyVersion string
    (Updatable) The Vault Key version.
    SecretId string
    (Updatable) The OCID of the secret.
    SecretVersion string
    (Updatable) The secret version.
    Value string
    (Updatable) The value corresponding to the credential
    VaultId string

    (Updatable) OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    credentialType String
    (Updatable) Credential Type
    keyId String
    (Updatable) OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    keyVersion String
    (Updatable) The Vault Key version.
    secretId String
    (Updatable) The OCID of the secret.
    secretVersion String
    (Updatable) The secret version.
    value String
    (Updatable) The value corresponding to the credential
    vaultId String

    (Updatable) OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    credentialType string
    (Updatable) Credential Type
    keyId string
    (Updatable) OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    keyVersion string
    (Updatable) The Vault Key version.
    secretId string
    (Updatable) The OCID of the secret.
    secretVersion string
    (Updatable) The secret version.
    value string
    (Updatable) The value corresponding to the credential
    vaultId string

    (Updatable) OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    credential_type str
    (Updatable) Credential Type
    key_id str
    (Updatable) OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    key_version str
    (Updatable) The Vault Key version.
    secret_id str
    (Updatable) The OCID of the secret.
    secret_version str
    (Updatable) The secret version.
    value str
    (Updatable) The value corresponding to the credential
    vault_id str

    (Updatable) OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    credentialType String
    (Updatable) Credential Type
    keyId String
    (Updatable) OCID for the Vault Key that will be used to encrypt/decrypt the value given.
    keyVersion String
    (Updatable) The Vault Key version.
    secretId String
    (Updatable) The OCID of the secret.
    secretVersion String
    (Updatable) The secret version.
    value String
    (Updatable) The value corresponding to the credential
    vaultId String

    (Updatable) OCID for the Vault that will be used to fetch key to encrypt/decrypt the value given.

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    Import is not supported for this resource.

    To learn more about importing existing cloud resources, see Importing resources.

    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