Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.FleetAppsManagement.getFleet
Explore with Pulumi AI
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:
- Fleet
Id string - unique Fleet identifier
- Fleet
Id string - unique Fleet identifier
- fleet
Id String - unique Fleet identifier
- fleet
Id string - unique Fleet identifier
- fleet_
id str - unique Fleet identifier
- fleet
Id String - unique Fleet identifier
getFleet Result
The following output properties are available:
- Application
Type string - Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- Compartment
Id string - Please provide the root compartmentId (TenancyId).
- 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.
- 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
- Environment
Type string - Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- Fleet
Id string - Fleet
Type string - Type of the Fleet.
- 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"}
- Group
Type string - Group Type associated with Group Fleet.Applicable for GROUP fleet types.
- Id string
- The OCID of the resource.
- Is
Target boolAuto Confirm - A value which represents if auto confirming of the targets can be enabled
- 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.
- Notification
Preferences List<GetFleet Notification Preference> - Conditions when met to send notifications on the fleet activities
- Products List<string>
- Products associated with the Fleet
- Resource
Region string - Associated region
- Resource
Selection stringType - Type of resource selection in a fleet.
- Rule
Selection List<GetCriterias Fleet Rule Selection Criteria> - Rule Selection Criteria
- State string
- The lifecycle state of the Fleet.
- 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.
- Application
Type string - Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- Compartment
Id string - Please provide the root compartmentId (TenancyId).
- 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.
- 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
- Environment
Type string - Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- Fleet
Id string - Fleet
Type string - Type of the Fleet.
- 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"}
- Group
Type string - Group Type associated with Group Fleet.Applicable for GROUP fleet types.
- Id string
- The OCID of the resource.
- Is
Target boolAuto Confirm - A value which represents if auto confirming of the targets can be enabled
- 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.
- Notification
Preferences []GetFleet Notification Preference - Conditions when met to send notifications on the fleet activities
- Products []string
- Products associated with the Fleet
- Resource
Region string - Associated region
- Resource
Selection stringType - Type of resource selection in a fleet.
- Rule
Selection []GetCriterias Fleet Rule Selection Criteria - Rule Selection Criteria
- State string
- The lifecycle state of the Fleet.
- 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.
- application
Type String - Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- compartment
Id String - Please provide the root compartmentId (TenancyId).
- 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.
- 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
- environment
Type String - Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- fleet
Id String - fleet
Type String - Type of the Fleet.
- 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"}
- group
Type String - Group Type associated with Group Fleet.Applicable for GROUP fleet types.
- id String
- The OCID of the resource.
- is
Target BooleanAuto Confirm - A value which represents if auto confirming of the targets can be enabled
- 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.
- notification
Preferences List<GetFleet Notification Preference> - Conditions when met to send notifications on the fleet activities
- products List<String>
- Products associated with the Fleet
- resource
Region String - Associated region
- resource
Selection StringType - Type of resource selection in a fleet.
- rule
Selection List<GetCriterias Fleet Rule Selection Criteria> - Rule Selection Criteria
- state String
- The lifecycle state of the Fleet.
- 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.
- application
Type string - Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- compartment
Id string - Please provide the root compartmentId (TenancyId).
- {[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.
- 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
- environment
Type string - Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- fleet
Id string - fleet
Type string - Type of the Fleet.
- {[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"}
- group
Type string - Group Type associated with Group Fleet.Applicable for GROUP fleet types.
- id string
- The OCID of the resource.
- is
Target booleanAuto Confirm - A value which represents if auto confirming of the targets can be enabled
- 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.
- notification
Preferences GetFleet Notification Preference[] - Conditions when met to send notifications on the fleet activities
- products string[]
- Products associated with the Fleet
- resource
Region string - Associated region
- resource
Selection stringType - Type of resource selection in a fleet.
- rule
Selection GetCriterias Fleet Rule Selection Criteria[] - Rule Selection Criteria
- state string
- The lifecycle state of the Fleet.
- {[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.
- application_
type str - Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- compartment_
id str - Please provide the root compartmentId (TenancyId).
- 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.
- 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_ boolauto_ confirm - 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.Get Fleet Notification Preference] - 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_ strtype - Type of resource selection in a fleet.
- rule_
selection_ Sequence[fleetappsmanagement.criterias Get Fleet Rule Selection Criteria] - Rule Selection Criteria
- state str
- The lifecycle state of the Fleet.
- 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.
- application
Type String - Application Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- compartment
Id String - Please provide the root compartmentId (TenancyId).
- 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.
- 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
- environment
Type String - Environment Type associated with the Fleet.Applicable for ENVIRONMENT fleet types.
- fleet
Id String - fleet
Type String - Type of the Fleet.
- 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"}
- group
Type String - Group Type associated with Group Fleet.Applicable for GROUP fleet types.
- id String
- The OCID of the resource.
- is
Target BooleanAuto Confirm - A value which represents if auto confirming of the targets can be enabled
- 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.
- notification
Preferences List<Property Map> - Conditions when met to send notifications on the fleet activities
- products List<String>
- Products associated with the Fleet
- resource
Region String - Associated region
- resource
Selection StringType - Type of resource selection in a fleet.
- rule
Selection List<Property Map>Criterias - Rule Selection Criteria
- state String
- The lifecycle state of the Fleet.
- 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.
Supporting Types
GetFleetNotificationPreference
- Compartment
Id string - Please provide the root compartmentId (TenancyId).
- Preferences
List<Get
Fleet Notification Preference Preference> - Preferences to send notifications on the fleet activities
- Topic
Id string - Topic Id where the notifications will be directed
- Compartment
Id string - Please provide the root compartmentId (TenancyId).
- Preferences
[]Get
Fleet Notification Preference Preference - Preferences to send notifications on the fleet activities
- Topic
Id string - Topic Id where the notifications will be directed
- compartment
Id String - Please provide the root compartmentId (TenancyId).
- preferences
List<Get
Fleet Notification Preference Preference> - Preferences to send notifications on the fleet activities
- topic
Id String - Topic Id where the notifications will be directed
- compartment
Id string - Please provide the root compartmentId (TenancyId).
- preferences
Get
Fleet Notification Preference Preference[] - Preferences to send notifications on the fleet activities
- topic
Id string - Topic Id where the notifications will be directed
- compartment_
id str - Please provide the root compartmentId (TenancyId).
- preferences
Sequence[fleetappsmanagement.
Get Fleet Notification Preference Preference] - Preferences to send notifications on the fleet activities
- topic_
id str - Topic Id where the notifications will be directed
- compartment
Id String - Please provide the root compartmentId (TenancyId).
- preferences List<Property Map>
- Preferences to send notifications on the fleet activities
- topic
Id String - Topic Id where the notifications will be directed
GetFleetNotificationPreferencePreference
- On
Job boolFailure - Enables or disables notification on Job Failures.'
- On
Topology boolModification - Enables or disables notification on Environment Fleet Topology Modification.
- On
Upcoming boolSchedule - Enables notification on upcoming schedule.
- On
Job boolFailure - Enables or disables notification on Job Failures.'
- On
Topology boolModification - Enables or disables notification on Environment Fleet Topology Modification.
- On
Upcoming boolSchedule - Enables notification on upcoming schedule.
- on
Job BooleanFailure - Enables or disables notification on Job Failures.'
- on
Topology BooleanModification - Enables or disables notification on Environment Fleet Topology Modification.
- on
Upcoming BooleanSchedule - Enables notification on upcoming schedule.
- on
Job booleanFailure - Enables or disables notification on Job Failures.'
- on
Topology booleanModification - Enables or disables notification on Environment Fleet Topology Modification.
- on
Upcoming booleanSchedule - Enables notification on upcoming schedule.
- on_
job_ boolfailure - Enables or disables notification on Job Failures.'
- on_
topology_ boolmodification - Enables or disables notification on Environment Fleet Topology Modification.
- on_
upcoming_ boolschedule - Enables notification on upcoming schedule.
- on
Job BooleanFailure - Enables or disables notification on Job Failures.'
- on
Topology BooleanModification - Enables or disables notification on Environment Fleet Topology Modification.
- on
Upcoming BooleanSchedule - Enables notification on upcoming schedule.
GetFleetRuleSelectionCriteria
- Match
Condition string - Rule selection match condition.
- Rules
List<Get
Fleet Rule Selection Criteria Rule> - Rules.
- Match
Condition string - Rule selection match condition.
- Rules
[]Get
Fleet Rule Selection Criteria Rule - Rules.
- match
Condition String - Rule selection match condition.
- rules
List<Get
Fleet Rule Selection Criteria Rule> - Rules.
- match
Condition string - Rule selection match condition.
- rules
Get
Fleet Rule Selection Criteria Rule[] - Rules.
- match_
condition str - Rule selection match condition.
- rules
Sequence[fleetappsmanagement.
Get Fleet Rule Selection Criteria Rule] - Rules.
- match
Condition String - Rule selection match condition.
- rules List<Property Map>
- Rules.
GetFleetRuleSelectionCriteriaRule
- Basis string
- Rule to be be applied on.
- Compartment
Id string - Please provide the root compartmentId (TenancyId).
- Conditions
List<Get
Fleet Rule Selection Criteria Rule Condition> - Rule Conditions
- Resource
Compartment stringId - Resource Compartment Id.Provide the compartmentId the resource belongs to.
- Basis string
- Rule to be be applied on.
- Compartment
Id string - Please provide the root compartmentId (TenancyId).
- Conditions
[]Get
Fleet Rule Selection Criteria Rule Condition - Rule Conditions
- Resource
Compartment stringId - Resource Compartment Id.Provide the compartmentId the resource belongs to.
- basis String
- Rule to be be applied on.
- compartment
Id String - Please provide the root compartmentId (TenancyId).
- conditions
List<Get
Fleet Rule Selection Criteria Rule Condition> - Rule Conditions
- resource
Compartment StringId - Resource Compartment Id.Provide the compartmentId the resource belongs to.
- basis string
- Rule to be be applied on.
- compartment
Id string - Please provide the root compartmentId (TenancyId).
- conditions
Get
Fleet Rule Selection Criteria Rule Condition[] - Rule Conditions
- resource
Compartment stringId - 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.
Get Fleet Rule Selection Criteria Rule Condition] - Rule Conditions
- resource_
compartment_ strid - Resource Compartment Id.Provide the compartmentId the resource belongs to.
- basis String
- Rule to be be applied on.
- compartment
Id String - Please provide the root compartmentId (TenancyId).
- conditions List<Property Map>
- Rule Conditions
- resource
Compartment StringId - Resource Compartment Id.Provide the compartmentId the resource belongs to.
GetFleetRuleSelectionCriteriaRuleCondition
- attr_
group str - Attribute Group.
- attr_
key str - Attribute Key.
- attr_
value str - Attribute Value.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.