oci.OsManagementHub.LifecycleStagePromoteSoftwareSourceManagement
Explore with Pulumi AI
This resource provides the Lifecycle Stage Promote Software Source Management resource in Oracle Cloud Infrastructure Os Management Hub service.
Updates the versioned custom software source content to the specified lifecycle stage. A versioned custom software source OCID (softwareSourceId) is required when promoting content to the first lifecycle stage. You must promote content to the first stage before promoting to subsequent stages, otherwise the service returns an error. The softwareSourceId is optional when promoting content to the second, third, forth, or fifth stages. If you provide a softwareSourceId, the service validates that it matches the softwareSourceId of the previous stage. If it does not match, the service returns an error. If you don’t provide a softwareSourceId, the service promotes the versioned software source from the previous lifecycle stage. If the previous lifecycle stage has no software source, the service returns an error.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testLifecycleStagePromoteSoftwareSourceManagement = new oci.osmanagementhub.LifecycleStagePromoteSoftwareSourceManagement("test_lifecycle_stage_promote_software_source_management", {
lifecycleStageId: testLifecycleStage.id,
softwareSourceId: testSoftwareSource.id,
workRequestDetails: {
description: lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDescription,
displayName: lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDisplayName,
},
});
import pulumi
import pulumi_oci as oci
test_lifecycle_stage_promote_software_source_management = oci.os_management_hub.LifecycleStagePromoteSoftwareSourceManagement("test_lifecycle_stage_promote_software_source_management",
lifecycle_stage_id=test_lifecycle_stage["id"],
software_source_id=test_software_source["id"],
work_request_details=oci.os_management_hub.LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs(
description=lifecycle_stage_promote_software_source_management_work_request_details_description,
display_name=lifecycle_stage_promote_software_source_management_work_request_details_display_name,
))
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.NewLifecycleStagePromoteSoftwareSourceManagement(ctx, "test_lifecycle_stage_promote_software_source_management", &OsManagementHub.LifecycleStagePromoteSoftwareSourceManagementArgs{
LifecycleStageId: pulumi.Any(testLifecycleStage.Id),
SoftwareSourceId: pulumi.Any(testSoftwareSource.Id),
WorkRequestDetails: &osmanagementhub.LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs{
Description: pulumi.Any(lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDescription),
DisplayName: pulumi.Any(lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDisplayName),
},
})
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 testLifecycleStagePromoteSoftwareSourceManagement = new Oci.OsManagementHub.LifecycleStagePromoteSoftwareSourceManagement("test_lifecycle_stage_promote_software_source_management", new()
{
LifecycleStageId = testLifecycleStage.Id,
SoftwareSourceId = testSoftwareSource.Id,
WorkRequestDetails = new Oci.OsManagementHub.Inputs.LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs
{
Description = lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDescription,
DisplayName = lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDisplayName,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.LifecycleStagePromoteSoftwareSourceManagement;
import com.pulumi.oci.OsManagementHub.LifecycleStagePromoteSoftwareSourceManagementArgs;
import com.pulumi.oci.OsManagementHub.inputs.LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs;
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) {
var testLifecycleStagePromoteSoftwareSourceManagement = new LifecycleStagePromoteSoftwareSourceManagement("testLifecycleStagePromoteSoftwareSourceManagement", LifecycleStagePromoteSoftwareSourceManagementArgs.builder()
.lifecycleStageId(testLifecycleStage.id())
.softwareSourceId(testSoftwareSource.id())
.workRequestDetails(LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs.builder()
.description(lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDescription)
.displayName(lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDisplayName)
.build())
.build());
}
}
resources:
testLifecycleStagePromoteSoftwareSourceManagement:
type: oci:OsManagementHub:LifecycleStagePromoteSoftwareSourceManagement
name: test_lifecycle_stage_promote_software_source_management
properties:
lifecycleStageId: ${testLifecycleStage.id}
softwareSourceId: ${testSoftwareSource.id}
workRequestDetails:
description: ${lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDescription}
displayName: ${lifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsDisplayName}
Create LifecycleStagePromoteSoftwareSourceManagement Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LifecycleStagePromoteSoftwareSourceManagement(name: string, args: LifecycleStagePromoteSoftwareSourceManagementArgs, opts?: CustomResourceOptions);
@overload
def LifecycleStagePromoteSoftwareSourceManagement(resource_name: str,
args: LifecycleStagePromoteSoftwareSourceManagementArgs,
opts: Optional[ResourceOptions] = None)
@overload
def LifecycleStagePromoteSoftwareSourceManagement(resource_name: str,
opts: Optional[ResourceOptions] = None,
lifecycle_stage_id: Optional[str] = None,
software_source_id: Optional[str] = None,
work_request_details: Optional[_osmanagementhub.LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs] = None)
func NewLifecycleStagePromoteSoftwareSourceManagement(ctx *Context, name string, args LifecycleStagePromoteSoftwareSourceManagementArgs, opts ...ResourceOption) (*LifecycleStagePromoteSoftwareSourceManagement, error)
public LifecycleStagePromoteSoftwareSourceManagement(string name, LifecycleStagePromoteSoftwareSourceManagementArgs args, CustomResourceOptions? opts = null)
public LifecycleStagePromoteSoftwareSourceManagement(String name, LifecycleStagePromoteSoftwareSourceManagementArgs args)
public LifecycleStagePromoteSoftwareSourceManagement(String name, LifecycleStagePromoteSoftwareSourceManagementArgs args, CustomResourceOptions options)
type: oci:OsManagementHub:LifecycleStagePromoteSoftwareSourceManagement
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args LifecycleStagePromoteSoftwareSourceManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args LifecycleStagePromoteSoftwareSourceManagementArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args LifecycleStagePromoteSoftwareSourceManagementArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LifecycleStagePromoteSoftwareSourceManagementArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LifecycleStagePromoteSoftwareSourceManagementArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var lifecycleStagePromoteSoftwareSourceManagementResource = new Oci.OsManagementHub.LifecycleStagePromoteSoftwareSourceManagement("lifecycleStagePromoteSoftwareSourceManagementResource", new()
{
LifecycleStageId = "string",
SoftwareSourceId = "string",
WorkRequestDetails = new Oci.OsManagementHub.Inputs.LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs
{
Description = "string",
DisplayName = "string",
},
});
example, err := OsManagementHub.NewLifecycleStagePromoteSoftwareSourceManagement(ctx, "lifecycleStagePromoteSoftwareSourceManagementResource", &OsManagementHub.LifecycleStagePromoteSoftwareSourceManagementArgs{
LifecycleStageId: pulumi.String("string"),
SoftwareSourceId: pulumi.String("string"),
WorkRequestDetails: &osmanagementhub.LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs{
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
},
})
var lifecycleStagePromoteSoftwareSourceManagementResource = new LifecycleStagePromoteSoftwareSourceManagement("lifecycleStagePromoteSoftwareSourceManagementResource", LifecycleStagePromoteSoftwareSourceManagementArgs.builder()
.lifecycleStageId("string")
.softwareSourceId("string")
.workRequestDetails(LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs.builder()
.description("string")
.displayName("string")
.build())
.build());
lifecycle_stage_promote_software_source_management_resource = oci.os_management_hub.LifecycleStagePromoteSoftwareSourceManagement("lifecycleStagePromoteSoftwareSourceManagementResource",
lifecycle_stage_id="string",
software_source_id="string",
work_request_details=oci.os_management_hub.LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs(
description="string",
display_name="string",
))
const lifecycleStagePromoteSoftwareSourceManagementResource = new oci.osmanagementhub.LifecycleStagePromoteSoftwareSourceManagement("lifecycleStagePromoteSoftwareSourceManagementResource", {
lifecycleStageId: "string",
softwareSourceId: "string",
workRequestDetails: {
description: "string",
displayName: "string",
},
});
type: oci:OsManagementHub:LifecycleStagePromoteSoftwareSourceManagement
properties:
lifecycleStageId: string
softwareSourceId: string
workRequestDetails:
description: string
displayName: string
LifecycleStagePromoteSoftwareSourceManagement Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The LifecycleStagePromoteSoftwareSourceManagement resource accepts the following input properties:
- Lifecycle
Stage stringId - The OCID of the lifecycle stage.
- Software
Source stringId - The OCID of the software source. This filter returns resources associated with this software source.
- Work
Request LifecycleDetails Stage Promote Software Source Management Work Request Details - Provides the name and description of the job.
- Lifecycle
Stage stringId - The OCID of the lifecycle stage.
- Software
Source stringId - The OCID of the software source. This filter returns resources associated with this software source.
- Work
Request LifecycleDetails Stage Promote Software Source Management Work Request Details Args - Provides the name and description of the job.
- lifecycle
Stage StringId - The OCID of the lifecycle stage.
- software
Source StringId - The OCID of the software source. This filter returns resources associated with this software source.
- work
Request LifecycleDetails Stage Promote Software Source Management Work Request Details - Provides the name and description of the job.
- lifecycle
Stage stringId - The OCID of the lifecycle stage.
- software
Source stringId - The OCID of the software source. This filter returns resources associated with this software source.
- work
Request LifecycleDetails Stage Promote Software Source Management Work Request Details - Provides the name and description of the job.
- lifecycle_
stage_ strid - The OCID of the lifecycle stage.
- software_
source_ strid - The OCID of the software source. This filter returns resources associated with this software source.
- work_
request_ osmanagementhub.details Lifecycle Stage Promote Software Source Management Work Request Details Args - Provides the name and description of the job.
- lifecycle
Stage StringId - The OCID of the lifecycle stage.
- software
Source StringId - The OCID of the software source. This filter returns resources associated with this software source.
- work
Request Property MapDetails - Provides the name and description of the job.
Outputs
All input properties are implicitly available as output properties. Additionally, the LifecycleStagePromoteSoftwareSourceManagement resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing LifecycleStagePromoteSoftwareSourceManagement Resource
Get an existing LifecycleStagePromoteSoftwareSourceManagement resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: LifecycleStagePromoteSoftwareSourceManagementState, opts?: CustomResourceOptions): LifecycleStagePromoteSoftwareSourceManagement
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
lifecycle_stage_id: Optional[str] = None,
software_source_id: Optional[str] = None,
work_request_details: Optional[_osmanagementhub.LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs] = None) -> LifecycleStagePromoteSoftwareSourceManagement
func GetLifecycleStagePromoteSoftwareSourceManagement(ctx *Context, name string, id IDInput, state *LifecycleStagePromoteSoftwareSourceManagementState, opts ...ResourceOption) (*LifecycleStagePromoteSoftwareSourceManagement, error)
public static LifecycleStagePromoteSoftwareSourceManagement Get(string name, Input<string> id, LifecycleStagePromoteSoftwareSourceManagementState? state, CustomResourceOptions? opts = null)
public static LifecycleStagePromoteSoftwareSourceManagement get(String name, Output<String> id, LifecycleStagePromoteSoftwareSourceManagementState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Lifecycle
Stage stringId - The OCID of the lifecycle stage.
- Software
Source stringId - The OCID of the software source. This filter returns resources associated with this software source.
- Work
Request LifecycleDetails Stage Promote Software Source Management Work Request Details - Provides the name and description of the job.
- Lifecycle
Stage stringId - The OCID of the lifecycle stage.
- Software
Source stringId - The OCID of the software source. This filter returns resources associated with this software source.
- Work
Request LifecycleDetails Stage Promote Software Source Management Work Request Details Args - Provides the name and description of the job.
- lifecycle
Stage StringId - The OCID of the lifecycle stage.
- software
Source StringId - The OCID of the software source. This filter returns resources associated with this software source.
- work
Request LifecycleDetails Stage Promote Software Source Management Work Request Details - Provides the name and description of the job.
- lifecycle
Stage stringId - The OCID of the lifecycle stage.
- software
Source stringId - The OCID of the software source. This filter returns resources associated with this software source.
- work
Request LifecycleDetails Stage Promote Software Source Management Work Request Details - Provides the name and description of the job.
- lifecycle_
stage_ strid - The OCID of the lifecycle stage.
- software_
source_ strid - The OCID of the software source. This filter returns resources associated with this software source.
- work_
request_ osmanagementhub.details Lifecycle Stage Promote Software Source Management Work Request Details Args - Provides the name and description of the job.
- lifecycle
Stage StringId - The OCID of the lifecycle stage.
- software
Source StringId - The OCID of the software source. This filter returns resources associated with this software source.
- work
Request Property MapDetails - Provides the name and description of the job.
Supporting Types
LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetails, LifecycleStagePromoteSoftwareSourceManagementWorkRequestDetailsArgs
- Description string
- User-specified information about the job. Avoid entering confidential information.
- Display
Name string A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Description string
- User-specified information about the job. Avoid entering confidential information.
- Display
Name string A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description String
- User-specified information about the job. Avoid entering confidential information.
- display
Name String A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description string
- User-specified information about the job. Avoid entering confidential information.
- display
Name string A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description str
- User-specified information about the job. Avoid entering confidential information.
- display_
name str A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- description String
- User-specified information about the job. Avoid entering confidential information.
- display
Name String A user-friendly name for the job. The name does not have to be unique. Avoid entering confidential information.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Import
LifecycleStagePromoteSoftwareSourceManagement can be imported using the id
, e.g.
$ pulumi import oci:OsManagementHub/lifecycleStagePromoteSoftwareSourceManagement:LifecycleStagePromoteSoftwareSourceManagement test_lifecycle_stage_promote_software_source_management "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.