1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getLifecycleStage
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

oci.OsManagementHub.getLifecycleStage

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.18.0 published on Friday, Nov 22, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:OsManagementHub/getLifecycleStage:getLifecycleStage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    LifecycleStageId string
    The OCID of the lifecycle stage.
    LifecycleStageId string
    The OCID of the lifecycle stage.
    lifecycleStageId String
    The OCID of the lifecycle stage.
    lifecycleStageId string
    The OCID of the lifecycle stage.
    lifecycle_stage_id str
    The OCID of the lifecycle stage.
    lifecycleStageId String
    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.
    DefinedTags 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.
    FreeformTags 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.
    LifecycleEnvironmentId string
    The OCID of the lifecycle environment that contains the lifecycle stage.
    LifecycleStageId string
    Location string
    The location of managed instances associated with the lifecycle stage.
    ManagedInstanceIds List<GetLifecycleStageManagedInstanceId>
    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.
    SoftwareSourceIds List<GetLifecycleStageSoftwareSourceId>
    Provides identifying information for the specified software source.
    State string
    The current state of the lifecycle stage.
    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 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.
    DefinedTags 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.
    FreeformTags 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.
    LifecycleEnvironmentId string
    The OCID of the lifecycle environment that contains the lifecycle stage.
    LifecycleStageId string
    Location string
    The location of managed instances associated with the lifecycle stage.
    ManagedInstanceIds []GetLifecycleStageManagedInstanceId
    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.
    SoftwareSourceIds []GetLifecycleStageSoftwareSourceId
    Provides identifying information for the specified software source.
    State string
    The current state of the lifecycle stage.
    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 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.
    definedTags 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.
    freeformTags 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.
    lifecycleEnvironmentId String
    The OCID of the lifecycle environment that contains the lifecycle stage.
    lifecycleStageId String
    location String
    The location of managed instances associated with the lifecycle stage.
    managedInstanceIds List<GetLifecycleStageManagedInstanceId>
    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.
    softwareSourceIds List<GetLifecycleStageSoftwareSourceId>
    Provides identifying information for the specified software source.
    state String
    The current state of the lifecycle stage.
    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 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.
    definedTags {[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.
    freeformTags {[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.
    lifecycleEnvironmentId string
    The OCID of the lifecycle environment that contains the lifecycle stage.
    lifecycleStageId string
    location string
    The location of managed instances associated with the lifecycle stage.
    managedInstanceIds GetLifecycleStageManagedInstanceId[]
    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.
    softwareSourceIds GetLifecycleStageSoftwareSourceId[]
    Provides identifying information for the specified software source.
    state string
    The current state of the lifecycle stage.
    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 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.
    defined_tags 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.
    freeform_tags 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_id str
    The OCID of the lifecycle environment that contains the lifecycle stage.
    lifecycle_stage_id str
    location str
    The location of managed instances associated with the lifecycle stage.
    managed_instance_ids Sequence[osmanagementhub.GetLifecycleStageManagedInstanceId]
    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_ids Sequence[osmanagementhub.GetLifecycleStageSoftwareSourceId]
    Provides identifying information for the specified software source.
    state str
    The current state of the lifecycle stage.
    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 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.
    definedTags 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.
    freeformTags 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.
    lifecycleEnvironmentId String
    The OCID of the lifecycle environment that contains the lifecycle stage.
    lifecycleStageId String
    location String
    The location of managed instances associated with the lifecycle stage.
    managedInstanceIds List<Property Map>
    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.
    softwareSourceIds List<Property Map>
    Provides identifying information for the specified software source.
    state String
    The current state of the lifecycle stage.
    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 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.
    IsMandatoryForAutonomousLinux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    SoftwareSourceType string
    Type of the software source.
    Description string
    Software source description.
    DisplayName string
    Software source name.
    Id string
    The OCID of the software source.
    IsMandatoryForAutonomousLinux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    SoftwareSourceType string
    Type of the software source.
    description String
    Software source description.
    displayName String
    Software source name.
    id String
    The OCID of the software source.
    isMandatoryForAutonomousLinux Boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType String
    Type of the software source.
    description string
    Software source description.
    displayName string
    Software source name.
    id string
    The OCID of the software source.
    isMandatoryForAutonomousLinux boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType string
    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_for_autonomous_linux bool
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    software_source_type str
    Type of the software source.
    description String
    Software source description.
    displayName String
    Software source name.
    id String
    The OCID of the software source.
    isMandatoryForAutonomousLinux Boolean
    Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
    softwareSourceType String
    Type of the software source.

    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.18.0 published on Friday, Nov 22, 2024 by Pulumi