Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi
oci.OsManagementHub.getLifecycleStage
Explore with Pulumi AI
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 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/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:
- Lifecycle
Stage stringId - The OCID of the lifecycle stage.
- Lifecycle
Stage stringId - The OCID of the lifecycle stage.
- lifecycle
Stage StringId - The OCID of the lifecycle stage.
- lifecycle
Stage stringId - The OCID of the lifecycle stage.
- lifecycle_
stage_ strid - The OCID of the lifecycle stage.
- lifecycle
Stage StringId - The OCID of the lifecycle stage.
getLifecycleStage Result
The following output properties are available:
- Arch
Type string - The CPU architecture of the managed instances in the lifecycle stage.
- Compartment
Id string - The OCID of the compartment that contains the lifecycle stage.
- Dictionary<string, object>
- 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 string - Software source name.
- Dictionary<string, object>
- 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.
- Lifecycle
Environment stringId - The OCID of the lifecycle environment that contains the lifecycle stage.
- Lifecycle
Stage stringId - Location string
- The location of managed instances associated with the lifecycle stage.
- Managed
Instance List<GetIds Lifecycle Stage Managed Instance Id> - The list of managed instances associated with the lifecycle stage.
- Os
Family 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.
- Software
Source 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, object>
- 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 the lifecycle stage was created (in RFC 3339 format).
- Time
Modified string - The time the lifecycle stage was last modified (in RFC 3339 format).
- Vendor
Name string - The vendor of the operating system used by the managed instances in the lifecycle stage.
- Arch
Type string - The CPU architecture of the managed instances in the lifecycle stage.
- Compartment
Id string - The OCID of the compartment that contains the lifecycle stage.
- map[string]interface{}
- 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 string - Software source name.
- map[string]interface{}
- 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.
- Lifecycle
Environment stringId - The OCID of the lifecycle environment that contains the lifecycle stage.
- Lifecycle
Stage stringId - Location string
- The location of managed instances associated with the lifecycle stage.
- Managed
Instance []GetIds Lifecycle Stage Managed Instance Id - The list of managed instances associated with the lifecycle stage.
- Os
Family 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.
- Software
Source []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]interface{}
- 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 the lifecycle stage was created (in RFC 3339 format).
- Time
Modified string - The time the lifecycle stage was last modified (in RFC 3339 format).
- Vendor
Name string - The vendor of the operating system used by the managed instances in the lifecycle stage.
- arch
Type String - The CPU architecture of the managed instances in the lifecycle stage.
- compartment
Id String - The OCID of the compartment that contains the lifecycle stage.
- Map<String,Object>
- 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 String - Software source name.
- Map<String,Object>
- 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.
- lifecycle
Environment StringId - The OCID of the lifecycle environment that contains the lifecycle stage.
- lifecycle
Stage StringId - location String
- The location of managed instances associated with the lifecycle stage.
- managed
Instance List<GetIds Lifecycle Stage Managed Instance Id> - The list of managed instances associated with the lifecycle stage.
- os
Family 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.
- software
Source 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,Object>
- 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 the lifecycle stage was created (in RFC 3339 format).
- time
Modified String - The time the lifecycle stage was last modified (in RFC 3339 format).
- vendor
Name String - The vendor of the operating system used by the managed instances in the lifecycle stage.
- arch
Type string - The CPU architecture of the managed instances in the lifecycle stage.
- compartment
Id string - The OCID of the compartment that contains the lifecycle stage.
- {[key: string]: any}
- 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 string - Software source name.
- {[key: string]: any}
- 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.
- lifecycle
Environment stringId - The OCID of the lifecycle environment that contains the lifecycle stage.
- lifecycle
Stage stringId - location string
- The location of managed instances associated with the lifecycle stage.
- managed
Instance GetIds Lifecycle Stage Managed Instance Id[] - The list of managed instances associated with the lifecycle stage.
- os
Family 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.
- software
Source 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]: any}
- 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 the lifecycle stage was created (in RFC 3339 format).
- time
Modified string - The time the lifecycle stage was last modified (in RFC 3339 format).
- vendor
Name 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, Any]
- 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, Any]
- 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[osmanagementhub.ids Get 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[osmanagementhub.ids Get Lifecycle Stage Software Source Id] - Provides identifying information for the specified software source.
- state str
- The current state of the lifecycle stage.
- Mapping[str, Any]
- 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.
- arch
Type String - The CPU architecture of the managed instances in the lifecycle stage.
- compartment
Id String - The OCID of the compartment that contains the lifecycle stage.
- Map<Any>
- 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 String - Software source name.
- Map<Any>
- 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.
- lifecycle
Environment StringId - The OCID of the lifecycle environment that contains the lifecycle stage.
- lifecycle
Stage StringId - location String
- The location of managed instances associated with the lifecycle stage.
- managed
Instance List<Property Map>Ids - The list of managed instances associated with the lifecycle stage.
- os
Family 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.
- software
Source List<Property Map>Ids - Provides identifying information for the specified software source.
- state String
- The current state of the lifecycle stage.
- Map<Any>
- 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 the lifecycle stage was created (in RFC 3339 format).
- time
Modified String - The time the lifecycle stage was last modified (in RFC 3339 format).
- vendor
Name String - The vendor of the operating system used by the managed instances in the lifecycle stage.
Supporting Types
GetLifecycleStageManagedInstanceId
- Display
Name string - Software source name.
- Id string
- The OCID of the software source.
- Display
Name string - Software source name.
- Id string
- The OCID of the software source.
- display
Name String - Software source name.
- id String
- The OCID of the software source.
- display
Name 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.
- display
Name String - Software source name.
- id String
- The OCID of the software source.
GetLifecycleStageSoftwareSourceId
- Description string
- Software source description.
- Display
Name string - Software source name.
- Id string
- 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 stringType - Type of the software source.
- Description string
- Software source description.
- Display
Name string - Software source name.
- Id string
- 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 stringType - Type of the software source.
- description String
- Software source description.
- display
Name String - Software source name.
- id String
- The OCID of the software source.
- is
Mandatory BooleanFor Autonomous Linux - Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software
Source StringType - Type of the software source.
- description string
- Software source description.
- display
Name string - Software source name.
- id string
- The OCID of the software source.
- is
Mandatory booleanFor Autonomous Linux - Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software
Source 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.
- display
Name String - Software source name.
- id String
- The OCID of the software source.
- is
Mandatory BooleanFor Autonomous Linux - Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software
Source 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
oci
Terraform Provider.
Oracle Cloud Infrastructure v1.41.0 published on Wednesday, Jun 19, 2024 by Pulumi