Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getLifecycleStage
Explore with Pulumi AI
This data source provides details about a specific Lifecycle Stage resource in Oracle Cloud Infrastructure Os Management Hub service.
Returns information about the specified lifecycle stage.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLifecycleStage = oci.OsManagementHub.getLifecycleStage({
    lifecycleStageId: testLifecycleStageOciOsManagementHubLifecycleStage.id,
});
import pulumi
import pulumi_oci as oci
test_lifecycle_stage = oci.OsManagementHub.get_lifecycle_stage(lifecycle_stage_id=test_lifecycle_stage_oci_os_management_hub_lifecycle_stage["id"])
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/osmanagementhub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := osmanagementhub.GetLifecycleStage(ctx, &osmanagementhub.GetLifecycleStageArgs{
			LifecycleStageId: testLifecycleStageOciOsManagementHubLifecycleStage.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 testLifecycleStage = Oci.OsManagementHub.GetLifecycleStage.Invoke(new()
    {
        LifecycleStageId = testLifecycleStageOciOsManagementHubLifecycleStage.Id,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
import com.pulumi.oci.OsManagementHub.inputs.GetLifecycleStageArgs;
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 testLifecycleStage = OsManagementHubFunctions.getLifecycleStage(GetLifecycleStageArgs.builder()
            .lifecycleStageId(testLifecycleStageOciOsManagementHubLifecycleStage.id())
            .build());
    }
}
variables:
  testLifecycleStage:
    fn::invoke:
      function: oci:OsManagementHub:getLifecycleStage
      arguments:
        lifecycleStageId: ${testLifecycleStageOciOsManagementHubLifecycleStage.id}
Using getLifecycleStage
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 getLifecycleStage(args: GetLifecycleStageArgs, opts?: InvokeOptions): Promise<GetLifecycleStageResult>
function getLifecycleStageOutput(args: GetLifecycleStageOutputArgs, opts?: InvokeOptions): Output<GetLifecycleStageResult>def get_lifecycle_stage(lifecycle_stage_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetLifecycleStageResult
def get_lifecycle_stage_output(lifecycle_stage_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetLifecycleStageResult]func GetLifecycleStage(ctx *Context, args *GetLifecycleStageArgs, opts ...InvokeOption) (*GetLifecycleStageResult, error)
func GetLifecycleStageOutput(ctx *Context, args *GetLifecycleStageOutputArgs, opts ...InvokeOption) GetLifecycleStageResultOutput> Note: This function is named GetLifecycleStage in the Go SDK.
public static class GetLifecycleStage 
{
    public static Task<GetLifecycleStageResult> InvokeAsync(GetLifecycleStageArgs args, InvokeOptions? opts = null)
    public static Output<GetLifecycleStageResult> Invoke(GetLifecycleStageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLifecycleStageResult> getLifecycleStage(GetLifecycleStageArgs args, InvokeOptions options)
public static Output<GetLifecycleStageResult> getLifecycleStage(GetLifecycleStageArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getLifecycleStage:getLifecycleStage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- LifecycleStage stringId 
- The OCID of the lifecycle stage.
- LifecycleStage stringId 
- The OCID of the lifecycle stage.
- lifecycleStage StringId 
- The OCID of the lifecycle stage.
- lifecycleStage stringId 
- The OCID of the lifecycle stage.
- lifecycle_stage_ strid 
- The OCID of the lifecycle stage.
- lifecycleStage StringId 
- The OCID of the lifecycle stage.
getLifecycleStage Result
The following output properties are available:
- ArchType string
- The CPU architecture of the managed instances in the lifecycle stage.
- CompartmentId string
- The OCID of the compartment that contains the lifecycle stage.
- Dictionary<string, string>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- Software source name.
- Dictionary<string, string>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleEnvironment stringId 
- The OCID of the lifecycle environment that contains the lifecycle stage.
- LifecycleStage stringId 
- Location string
- The location of managed instances associated with the lifecycle stage.
- ManagedInstance List<GetIds Lifecycle Stage Managed Instance Id> 
- The list of managed instances associated with the lifecycle stage.
- OsFamily string
- The operating system of the managed instances in the lifecycle stage.
- Rank int
- User-specified rank for the lifecycle stage. Rank determines the hierarchy of the lifecycle stages within the lifecycle environment.
- SoftwareSource List<GetIds Lifecycle Stage Software Source Id> 
- Provides identifying information for the specified software source.
- State string
- The current state of the lifecycle stage.
- 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 the lifecycle stage was created (in RFC 3339 format).
- TimeModified string
- The time the lifecycle stage was last modified (in RFC 3339 format).
- VendorName string
- The vendor of the operating system used by the managed instances in the lifecycle stage.
- ArchType string
- The CPU architecture of the managed instances in the lifecycle stage.
- CompartmentId string
- The OCID of the compartment that contains the lifecycle stage.
- map[string]string
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- DisplayName string
- Software source name.
- map[string]string
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- Id string
- The provider-assigned unique ID for this managed resource.
- LifecycleEnvironment stringId 
- The OCID of the lifecycle environment that contains the lifecycle stage.
- LifecycleStage stringId 
- Location string
- The location of managed instances associated with the lifecycle stage.
- ManagedInstance []GetIds Lifecycle Stage Managed Instance Id 
- The list of managed instances associated with the lifecycle stage.
- OsFamily string
- The operating system of the managed instances in the lifecycle stage.
- Rank int
- User-specified rank for the lifecycle stage. Rank determines the hierarchy of the lifecycle stages within the lifecycle environment.
- SoftwareSource []GetIds Lifecycle Stage Software Source Id 
- Provides identifying information for the specified software source.
- State string
- The current state of the lifecycle stage.
- 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 the lifecycle stage was created (in RFC 3339 format).
- TimeModified string
- The time the lifecycle stage was last modified (in RFC 3339 format).
- VendorName string
- The vendor of the operating system used by the managed instances in the lifecycle stage.
- archType String
- The CPU architecture of the managed instances in the lifecycle stage.
- compartmentId String
- The OCID of the compartment that contains the lifecycle stage.
- Map<String,String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- Software source name.
- Map<String,String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleEnvironment StringId 
- The OCID of the lifecycle environment that contains the lifecycle stage.
- lifecycleStage StringId 
- location String
- The location of managed instances associated with the lifecycle stage.
- managedInstance List<GetIds Lifecycle Stage Managed Instance Id> 
- The list of managed instances associated with the lifecycle stage.
- osFamily String
- The operating system of the managed instances in the lifecycle stage.
- rank Integer
- User-specified rank for the lifecycle stage. Rank determines the hierarchy of the lifecycle stages within the lifecycle environment.
- softwareSource List<GetIds Lifecycle Stage Software Source Id> 
- Provides identifying information for the specified software source.
- state String
- The current state of the lifecycle stage.
- 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 the lifecycle stage was created (in RFC 3339 format).
- timeModified String
- The time the lifecycle stage was last modified (in RFC 3339 format).
- vendorName String
- The vendor of the operating system used by the managed instances in the lifecycle stage.
- archType string
- The CPU architecture of the managed instances in the lifecycle stage.
- compartmentId string
- The OCID of the compartment that contains the lifecycle stage.
- {[key: string]: string}
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName string
- Software source name.
- {[key: string]: string}
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycleEnvironment stringId 
- The OCID of the lifecycle environment that contains the lifecycle stage.
- lifecycleStage stringId 
- location string
- The location of managed instances associated with the lifecycle stage.
- managedInstance GetIds Lifecycle Stage Managed Instance Id[] 
- The list of managed instances associated with the lifecycle stage.
- osFamily string
- The operating system of the managed instances in the lifecycle stage.
- rank number
- User-specified rank for the lifecycle stage. Rank determines the hierarchy of the lifecycle stages within the lifecycle environment.
- softwareSource GetIds Lifecycle Stage Software Source Id[] 
- Provides identifying information for the specified software source.
- state string
- The current state of the lifecycle stage.
- {[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 the lifecycle stage was created (in RFC 3339 format).
- timeModified string
- The time the lifecycle stage was last modified (in RFC 3339 format).
- vendorName string
- The vendor of the operating system used by the managed instances in the lifecycle stage.
- arch_type str
- The CPU architecture of the managed instances in the lifecycle stage.
- compartment_id str
- The OCID of the compartment that contains the lifecycle stage.
- Mapping[str, str]
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- display_name str
- Software source name.
- Mapping[str, str]
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_environment_ strid 
- The OCID of the lifecycle environment that contains the lifecycle stage.
- lifecycle_stage_ strid 
- location str
- The location of managed instances associated with the lifecycle stage.
- managed_instance_ Sequence[Getids Lifecycle Stage Managed Instance Id] 
- The list of managed instances associated with the lifecycle stage.
- os_family str
- The operating system of the managed instances in the lifecycle stage.
- rank int
- User-specified rank for the lifecycle stage. Rank determines the hierarchy of the lifecycle stages within the lifecycle environment.
- software_source_ Sequence[Getids Lifecycle Stage Software Source Id] 
- Provides identifying information for the specified software source.
- state str
- The current state of the lifecycle stage.
- 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 the lifecycle stage was created (in RFC 3339 format).
- time_modified str
- The time the lifecycle stage was last modified (in RFC 3339 format).
- vendor_name str
- The vendor of the operating system used by the managed instances in the lifecycle stage.
- archType String
- The CPU architecture of the managed instances in the lifecycle stage.
- compartmentId String
- The OCID of the compartment that contains the lifecycle stage.
- Map<String>
- Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
- displayName String
- Software source name.
- Map<String>
- Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycleEnvironment StringId 
- The OCID of the lifecycle environment that contains the lifecycle stage.
- lifecycleStage StringId 
- location String
- The location of managed instances associated with the lifecycle stage.
- managedInstance List<Property Map>Ids 
- The list of managed instances associated with the lifecycle stage.
- osFamily String
- The operating system of the managed instances in the lifecycle stage.
- rank Number
- User-specified rank for the lifecycle stage. Rank determines the hierarchy of the lifecycle stages within the lifecycle environment.
- softwareSource List<Property Map>Ids 
- Provides identifying information for the specified software source.
- state String
- The current state of the lifecycle stage.
- 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 the lifecycle stage was created (in RFC 3339 format).
- timeModified String
- The time the lifecycle stage was last modified (in RFC 3339 format).
- vendorName String
- The vendor of the operating system used by the managed instances in the lifecycle stage.
Supporting Types
GetLifecycleStageManagedInstanceId     
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
- displayName string
- Software source name.
- id string
- The OCID of the software source.
- display_name str
- Software source name.
- id str
- The OCID of the software source.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
GetLifecycleStageSoftwareSourceId     
- Description string
- Software source description.
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- IsMandatory boolFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- SoftwareSource stringType 
- Type of the software source.
- Description string
- Software source description.
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- IsMandatory boolFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- SoftwareSource stringType 
- Type of the software source.
- description String
- Software source description.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
- isMandatory BooleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource StringType 
- Type of the software source.
- description string
- Software source description.
- displayName string
- Software source name.
- id string
- The OCID of the software source.
- isMandatory booleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource stringType 
- Type of the software source.
- description str
- Software source description.
- display_name str
- Software source name.
- id str
- The OCID of the software source.
- is_mandatory_ boolfor_ autonomous_ linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software_source_ strtype 
- Type of the software source.
- description String
- Software source description.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
- isMandatory BooleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource StringType 
- Type of the software source.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.