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

oci.FleetAppsManagement.getFleet

Explore with Pulumi AI

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

    This data source provides details about a specific Fleet resource in Oracle Cloud Infrastructure Fleet Apps Management service.

    Gets a Fleet by identifier

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testFleet = oci.FleetAppsManagement.getFleet({
        fleetId: testFleetOciFleetAppsManagementFleet.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_fleet = oci.FleetAppsManagement.get_fleet(fleet_id=test_fleet_oci_fleet_apps_management_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.GetFleet(ctx, &fleetappsmanagement.GetFleetArgs{
    			FleetId: testFleetOciFleetAppsManagementFleet.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 testFleet = Oci.FleetAppsManagement.GetFleet.Invoke(new()
        {
            FleetId = testFleetOciFleetAppsManagementFleet.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.GetFleetArgs;
    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 testFleet = FleetAppsManagementFunctions.getFleet(GetFleetArgs.builder()
                .fleetId(testFleetOciFleetAppsManagementFleet.id())
                .build());
    
        }
    }
    
    variables:
      testFleet:
        fn::invoke:
          Function: oci:FleetAppsManagement:getFleet
          Arguments:
            fleetId: ${testFleetOciFleetAppsManagementFleet.id}
    

    Using getFleet

    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 getFleet(args: GetFleetArgs, opts?: InvokeOptions): Promise<GetFleetResult>
    function getFleetOutput(args: GetFleetOutputArgs, opts?: InvokeOptions): Output<GetFleetResult>
    def get_fleet(fleet_id: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> GetFleetResult
    def get_fleet_output(fleet_id: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[GetFleetResult]
    func GetFleet(ctx *Context, args *GetFleetArgs, opts ...InvokeOption) (*GetFleetResult, error)
    func GetFleetOutput(ctx *Context, args *GetFleetOutputArgs, opts ...InvokeOption) GetFleetResultOutput

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

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

    The following arguments are supported:

    FleetId string
    unique Fleet identifier
    FleetId string
    unique Fleet identifier
    fleetId String
    unique Fleet identifier
    fleetId string
    unique Fleet identifier
    fleet_id str
    unique Fleet identifier
    fleetId String
    unique Fleet identifier

    getFleet Result

    The following output properties are available:

    ApplicationType string
    Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    CompartmentId string
    Please provide the root compartmentId (TenancyId).
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EnvironmentType string
    Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    FleetId string
    FleetType string
    Type of the Fleet.
    FreeformTags Dictionary<string, string>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    GroupType string
    Group Type associated with Group Fleet.Applicable for GROUP fleet types.
    Id string
    The OCID of the resource.
    IsTargetAutoConfirm bool
    A value which represents if auto confirming of the targets can be enabled
    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.
    NotificationPreferences List<GetFleetNotificationPreference>
    Conditions when met to send notifications on the fleet activities
    Products List<string>
    Products associated with the Fleet
    ResourceRegion string
    Associated region
    ResourceSelectionType string
    Type of resource selection in a fleet.
    RuleSelectionCriterias List<GetFleetRuleSelectionCriteria>
    Rule Selection Criteria
    State string
    The lifecycle state of the Fleet.
    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.
    ApplicationType string
    Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    CompartmentId string
    Please provide the root compartmentId (TenancyId).
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    Description string
    A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    DisplayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    EnvironmentType string
    Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    FleetId string
    FleetType string
    Type of the Fleet.
    FreeformTags map[string]string
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    GroupType string
    Group Type associated with Group Fleet.Applicable for GROUP fleet types.
    Id string
    The OCID of the resource.
    IsTargetAutoConfirm bool
    A value which represents if auto confirming of the targets can be enabled
    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.
    NotificationPreferences []GetFleetNotificationPreference
    Conditions when met to send notifications on the fleet activities
    Products []string
    Products associated with the Fleet
    ResourceRegion string
    Associated region
    ResourceSelectionType string
    Type of resource selection in a fleet.
    RuleSelectionCriterias []GetFleetRuleSelectionCriteria
    Rule Selection Criteria
    State string
    The lifecycle state of the Fleet.
    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.
    applicationType String
    Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    compartmentId String
    Please provide the root compartmentId (TenancyId).
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environmentType String
    Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    fleetId String
    fleetType String
    Type of the Fleet.
    freeformTags Map<String,String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    groupType String
    Group Type associated with Group Fleet.Applicable for GROUP fleet types.
    id String
    The OCID of the resource.
    isTargetAutoConfirm Boolean
    A value which represents if auto confirming of the targets can be enabled
    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.
    notificationPreferences List<GetFleetNotificationPreference>
    Conditions when met to send notifications on the fleet activities
    products List<String>
    Products associated with the Fleet
    resourceRegion String
    Associated region
    resourceSelectionType String
    Type of resource selection in a fleet.
    ruleSelectionCriterias List<GetFleetRuleSelectionCriteria>
    Rule Selection Criteria
    state String
    The lifecycle state of the Fleet.
    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.
    applicationType string
    Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    compartmentId string
    Please provide the root compartmentId (TenancyId).
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description string
    A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    displayName string
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environmentType string
    Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    fleetId string
    fleetType string
    Type of the Fleet.
    freeformTags {[key: string]: string}
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    groupType string
    Group Type associated with Group Fleet.Applicable for GROUP fleet types.
    id string
    The OCID of the resource.
    isTargetAutoConfirm boolean
    A value which represents if auto confirming of the targets can be enabled
    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.
    notificationPreferences GetFleetNotificationPreference[]
    Conditions when met to send notifications on the fleet activities
    products string[]
    Products associated with the Fleet
    resourceRegion string
    Associated region
    resourceSelectionType string
    Type of resource selection in a fleet.
    ruleSelectionCriterias GetFleetRuleSelectionCriteria[]
    Rule Selection Criteria
    state string
    The lifecycle state of the Fleet.
    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.
    application_type str
    Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    compartment_id str
    Please provide the root compartmentId (TenancyId).
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description str
    A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    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
    environment_type str
    Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    fleet_id str
    fleet_type str
    Type of the Fleet.
    freeform_tags Mapping[str, str]
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    group_type str
    Group Type associated with Group Fleet.Applicable for GROUP fleet types.
    id str
    The OCID of the resource.
    is_target_auto_confirm bool
    A value which represents if auto confirming of the targets can be enabled
    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.
    notification_preferences Sequence[fleetappsmanagement.GetFleetNotificationPreference]
    Conditions when met to send notifications on the fleet activities
    products Sequence[str]
    Products associated with the Fleet
    resource_region str
    Associated region
    resource_selection_type str
    Type of resource selection in a fleet.
    rule_selection_criterias Sequence[fleetappsmanagement.GetFleetRuleSelectionCriteria]
    Rule Selection Criteria
    state str
    The lifecycle state of the Fleet.
    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.
    applicationType String
    Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    compartmentId String
    Please provide the root compartmentId (TenancyId).
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace.bar-key": "value"}
    description String
    A user-friendly description. To provide some insight about the resource. Avoid entering confidential information.
    displayName String
    A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
    environmentType String
    Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
    fleetId String
    fleetType String
    Type of the Fleet.
    freeformTags Map<String>
    Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"}
    groupType String
    Group Type associated with Group Fleet.Applicable for GROUP fleet types.
    id String
    The OCID of the resource.
    isTargetAutoConfirm Boolean
    A value which represents if auto confirming of the targets can be enabled
    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.
    notificationPreferences List<Property Map>
    Conditions when met to send notifications on the fleet activities
    products List<String>
    Products associated with the Fleet
    resourceRegion String
    Associated region
    resourceSelectionType String
    Type of resource selection in a fleet.
    ruleSelectionCriterias List<Property Map>
    Rule Selection Criteria
    state String
    The lifecycle state of the Fleet.
    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.

    Supporting Types

    GetFleetNotificationPreference

    CompartmentId string
    Please provide the root compartmentId (TenancyId).
    Preferences List<GetFleetNotificationPreferencePreference>
    Preferences to send notifications on the fleet activities
    TopicId string
    Topic Id where the notifications will be directed
    CompartmentId string
    Please provide the root compartmentId (TenancyId).
    Preferences []GetFleetNotificationPreferencePreference
    Preferences to send notifications on the fleet activities
    TopicId string
    Topic Id where the notifications will be directed
    compartmentId String
    Please provide the root compartmentId (TenancyId).
    preferences List<GetFleetNotificationPreferencePreference>
    Preferences to send notifications on the fleet activities
    topicId String
    Topic Id where the notifications will be directed
    compartmentId string
    Please provide the root compartmentId (TenancyId).
    preferences GetFleetNotificationPreferencePreference[]
    Preferences to send notifications on the fleet activities
    topicId string
    Topic Id where the notifications will be directed
    compartment_id str
    Please provide the root compartmentId (TenancyId).
    preferences Sequence[fleetappsmanagement.GetFleetNotificationPreferencePreference]
    Preferences to send notifications on the fleet activities
    topic_id str
    Topic Id where the notifications will be directed
    compartmentId String
    Please provide the root compartmentId (TenancyId).
    preferences List<Property Map>
    Preferences to send notifications on the fleet activities
    topicId String
    Topic Id where the notifications will be directed

    GetFleetNotificationPreferencePreference

    OnJobFailure bool
    Enables or disables notification on Job Failures.'
    OnTopologyModification bool
    Enables or disables notification on Environment Fleet Topology Modification.
    OnUpcomingSchedule bool
    Enables notification on upcoming schedule.
    OnJobFailure bool
    Enables or disables notification on Job Failures.'
    OnTopologyModification bool
    Enables or disables notification on Environment Fleet Topology Modification.
    OnUpcomingSchedule bool
    Enables notification on upcoming schedule.
    onJobFailure Boolean
    Enables or disables notification on Job Failures.'
    onTopologyModification Boolean
    Enables or disables notification on Environment Fleet Topology Modification.
    onUpcomingSchedule Boolean
    Enables notification on upcoming schedule.
    onJobFailure boolean
    Enables or disables notification on Job Failures.'
    onTopologyModification boolean
    Enables or disables notification on Environment Fleet Topology Modification.
    onUpcomingSchedule boolean
    Enables notification on upcoming schedule.
    on_job_failure bool
    Enables or disables notification on Job Failures.'
    on_topology_modification bool
    Enables or disables notification on Environment Fleet Topology Modification.
    on_upcoming_schedule bool
    Enables notification on upcoming schedule.
    onJobFailure Boolean
    Enables or disables notification on Job Failures.'
    onTopologyModification Boolean
    Enables or disables notification on Environment Fleet Topology Modification.
    onUpcomingSchedule Boolean
    Enables notification on upcoming schedule.

    GetFleetRuleSelectionCriteria

    MatchCondition string
    Rule selection match condition.
    Rules List<GetFleetRuleSelectionCriteriaRule>
    Rules.
    MatchCondition string
    Rule selection match condition.
    Rules []GetFleetRuleSelectionCriteriaRule
    Rules.
    matchCondition String
    Rule selection match condition.
    rules List<GetFleetRuleSelectionCriteriaRule>
    Rules.
    matchCondition string
    Rule selection match condition.
    rules GetFleetRuleSelectionCriteriaRule[]
    Rules.
    matchCondition String
    Rule selection match condition.
    rules List<Property Map>
    Rules.

    GetFleetRuleSelectionCriteriaRule

    Basis string
    Rule to be be applied on.
    CompartmentId string
    Please provide the root compartmentId (TenancyId).
    Conditions List<GetFleetRuleSelectionCriteriaRuleCondition>
    Rule Conditions
    ResourceCompartmentId string
    Resource Compartment Id.Provide the compartmentId the resource belongs to.
    Basis string
    Rule to be be applied on.
    CompartmentId string
    Please provide the root compartmentId (TenancyId).
    Conditions []GetFleetRuleSelectionCriteriaRuleCondition
    Rule Conditions
    ResourceCompartmentId string
    Resource Compartment Id.Provide the compartmentId the resource belongs to.
    basis String
    Rule to be be applied on.
    compartmentId String
    Please provide the root compartmentId (TenancyId).
    conditions List<GetFleetRuleSelectionCriteriaRuleCondition>
    Rule Conditions
    resourceCompartmentId String
    Resource Compartment Id.Provide the compartmentId the resource belongs to.
    basis string
    Rule to be be applied on.
    compartmentId string
    Please provide the root compartmentId (TenancyId).
    conditions GetFleetRuleSelectionCriteriaRuleCondition[]
    Rule Conditions
    resourceCompartmentId string
    Resource Compartment Id.Provide the compartmentId the resource belongs to.
    basis str
    Rule to be be applied on.
    compartment_id str
    Please provide the root compartmentId (TenancyId).
    conditions Sequence[fleetappsmanagement.GetFleetRuleSelectionCriteriaRuleCondition]
    Rule Conditions
    resource_compartment_id str
    Resource Compartment Id.Provide the compartmentId the resource belongs to.
    basis String
    Rule to be be applied on.
    compartmentId String
    Please provide the root compartmentId (TenancyId).
    conditions List<Property Map>
    Rule Conditions
    resourceCompartmentId String
    Resource Compartment Id.Provide the compartmentId the resource belongs to.

    GetFleetRuleSelectionCriteriaRuleCondition

    AttrGroup string
    Attribute Group.
    AttrKey string
    Attribute Key.
    AttrValue string
    Attribute Value.
    AttrGroup string
    Attribute Group.
    AttrKey string
    Attribute Key.
    AttrValue string
    Attribute Value.
    attrGroup String
    Attribute Group.
    attrKey String
    Attribute Key.
    attrValue String
    Attribute Value.
    attrGroup string
    Attribute Group.
    attrKey string
    Attribute Key.
    attrValue string
    Attribute Value.
    attr_group str
    Attribute Group.
    attr_key str
    Attribute Key.
    attr_value str
    Attribute Value.
    attrGroup String
    Attribute Group.
    attrKey String
    Attribute Key.
    attrValue String
    Attribute Value.

    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