octopusdeploy 0.43.0 published on Thursday, Apr 17, 2025 by octopusdeploylabs
octopusdeploy.getLifecycles
Explore with Pulumi AI
octopusdeploy 0.43.0 published on Thursday, Apr 17, 2025 by octopusdeploylabs
Provides information about existing lifecycles.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const example = octopusdeploy.getLifecycles({
    ids: [
        "Lifecycles-123",
        "Lifecycles-321",
    ],
    partialName: "Defau",
    skip: 5,
    take: 100,
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.get_lifecycles(ids=[
        "Lifecycles-123",
        "Lifecycles-321",
    ],
    partial_name="Defau",
    skip=5,
    take=100)
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := octopusdeploy.GetLifecycles(ctx, &octopusdeploy.GetLifecyclesArgs{
			Ids: []string{
				"Lifecycles-123",
				"Lifecycles-321",
			},
			PartialName: pulumi.StringRef("Defau"),
			Skip:        pulumi.Float64Ref(5),
			Take:        pulumi.Float64Ref(100),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Octopusdeploy = Pulumi.Octopusdeploy;
return await Deployment.RunAsync(() => 
{
    var example = Octopusdeploy.GetLifecycles.Invoke(new()
    {
        Ids = new[]
        {
            "Lifecycles-123",
            "Lifecycles-321",
        },
        PartialName = "Defau",
        Skip = 5,
        Take = 100,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.OctopusdeployFunctions;
import com.pulumi.octopusdeploy.inputs.GetLifecyclesArgs;
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 example = OctopusdeployFunctions.getLifecycles(GetLifecyclesArgs.builder()
            .ids(            
                "Lifecycles-123",
                "Lifecycles-321")
            .partialName("Defau")
            .skip(5)
            .take(100)
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: octopusdeploy:getLifecycles
      arguments:
        ids:
          - Lifecycles-123
          - Lifecycles-321
        partialName: Defau
        skip: 5
        take: 100
Using getLifecycles
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 getLifecycles(args: GetLifecyclesArgs, opts?: InvokeOptions): Promise<GetLifecyclesResult>
function getLifecyclesOutput(args: GetLifecyclesOutputArgs, opts?: InvokeOptions): Output<GetLifecyclesResult>def get_lifecycles(ids: Optional[Sequence[str]] = None,
                   partial_name: Optional[str] = None,
                   skip: Optional[float] = None,
                   space_id: Optional[str] = None,
                   take: Optional[float] = None,
                   opts: Optional[InvokeOptions] = None) -> GetLifecyclesResult
def get_lifecycles_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                   partial_name: Optional[pulumi.Input[str]] = None,
                   skip: Optional[pulumi.Input[float]] = None,
                   space_id: Optional[pulumi.Input[str]] = None,
                   take: Optional[pulumi.Input[float]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetLifecyclesResult]func GetLifecycles(ctx *Context, args *GetLifecyclesArgs, opts ...InvokeOption) (*GetLifecyclesResult, error)
func GetLifecyclesOutput(ctx *Context, args *GetLifecyclesOutputArgs, opts ...InvokeOption) GetLifecyclesResultOutput> Note: This function is named GetLifecycles in the Go SDK.
public static class GetLifecycles 
{
    public static Task<GetLifecyclesResult> InvokeAsync(GetLifecyclesArgs args, InvokeOptions? opts = null)
    public static Output<GetLifecyclesResult> Invoke(GetLifecyclesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetLifecyclesResult> getLifecycles(GetLifecyclesArgs args, InvokeOptions options)
public static Output<GetLifecyclesResult> getLifecycles(GetLifecyclesArgs args, InvokeOptions options)
fn::invoke:
  function: octopusdeploy:index/getLifecycles:getLifecycles
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ids List<string>
- A list of lifecycle IDs to filter by.
- PartialName string
- A partial name to filter lifecycles by.
- Skip double
- A filter to specify the number of items to skip in the response.
- SpaceId string
- The space ID associated with this lifecycle.
- Take double
- A filter to specify the number of items to take (or return) in the response.
- Ids []string
- A list of lifecycle IDs to filter by.
- PartialName string
- A partial name to filter lifecycles by.
- Skip float64
- A filter to specify the number of items to skip in the response.
- SpaceId string
- The space ID associated with this lifecycle.
- Take float64
- A filter to specify the number of items to take (or return) in the response.
- ids List<String>
- A list of lifecycle IDs to filter by.
- partialName String
- A partial name to filter lifecycles by.
- skip Double
- A filter to specify the number of items to skip in the response.
- spaceId String
- The space ID associated with this lifecycle.
- take Double
- A filter to specify the number of items to take (or return) in the response.
- ids string[]
- A list of lifecycle IDs to filter by.
- partialName string
- A partial name to filter lifecycles by.
- skip number
- A filter to specify the number of items to skip in the response.
- spaceId string
- The space ID associated with this lifecycle.
- take number
- A filter to specify the number of items to take (or return) in the response.
- ids Sequence[str]
- A list of lifecycle IDs to filter by.
- partial_name str
- A partial name to filter lifecycles by.
- skip float
- A filter to specify the number of items to skip in the response.
- space_id str
- The space ID associated with this lifecycle.
- take float
- A filter to specify the number of items to take (or return) in the response.
- ids List<String>
- A list of lifecycle IDs to filter by.
- partialName String
- A partial name to filter lifecycles by.
- skip Number
- A filter to specify the number of items to skip in the response.
- spaceId String
- The space ID associated with this lifecycle.
- take Number
- A filter to specify the number of items to take (or return) in the response.
getLifecycles Result
The following output properties are available:
- Id string
- The ID of the lifecycle.
- Lifecycles
List<GetLifecycles Lifecycle> 
- Ids List<string>
- A list of lifecycle IDs to filter by.
- PartialName string
- A partial name to filter lifecycles by.
- Skip double
- A filter to specify the number of items to skip in the response.
- SpaceId string
- The space ID associated with this lifecycle.
- Take double
- A filter to specify the number of items to take (or return) in the response.
- Id string
- The ID of the lifecycle.
- Lifecycles
[]GetLifecycles Lifecycle 
- Ids []string
- A list of lifecycle IDs to filter by.
- PartialName string
- A partial name to filter lifecycles by.
- Skip float64
- A filter to specify the number of items to skip in the response.
- SpaceId string
- The space ID associated with this lifecycle.
- Take float64
- A filter to specify the number of items to take (or return) in the response.
- id String
- The ID of the lifecycle.
- lifecycles
List<GetLifecycles Lifecycle> 
- ids List<String>
- A list of lifecycle IDs to filter by.
- partialName String
- A partial name to filter lifecycles by.
- skip Double
- A filter to specify the number of items to skip in the response.
- spaceId String
- The space ID associated with this lifecycle.
- take Double
- A filter to specify the number of items to take (or return) in the response.
- id string
- The ID of the lifecycle.
- lifecycles
GetLifecycles Lifecycle[] 
- ids string[]
- A list of lifecycle IDs to filter by.
- partialName string
- A partial name to filter lifecycles by.
- skip number
- A filter to specify the number of items to skip in the response.
- spaceId string
- The space ID associated with this lifecycle.
- take number
- A filter to specify the number of items to take (or return) in the response.
- id str
- The ID of the lifecycle.
- lifecycles
Sequence[GetLifecycles Lifecycle] 
- ids Sequence[str]
- A list of lifecycle IDs to filter by.
- partial_name str
- A partial name to filter lifecycles by.
- skip float
- A filter to specify the number of items to skip in the response.
- space_id str
- The space ID associated with this lifecycle.
- take float
- A filter to specify the number of items to take (or return) in the response.
- id String
- The ID of the lifecycle.
- lifecycles List<Property Map>
- ids List<String>
- A list of lifecycle IDs to filter by.
- partialName String
- A partial name to filter lifecycles by.
- skip Number
- A filter to specify the number of items to skip in the response.
- spaceId String
- The space ID associated with this lifecycle.
- take Number
- A filter to specify the number of items to take (or return) in the response.
Supporting Types
GetLifecyclesLifecycle  
- Description string
- The description of the lifecycle.
- Id string
- The ID of the lifecycle.
- Name string
- The name of the lifecycle.
- Phases
List<GetLifecycles Lifecycle Phase> 
- ReleaseRetention List<GetPolicies Lifecycles Lifecycle Release Retention Policy> 
- SpaceId string
- The space ID associated with this lifecycle.
- TentacleRetention List<GetPolicies Lifecycles Lifecycle Tentacle Retention Policy> 
- Description string
- The description of the lifecycle.
- Id string
- The ID of the lifecycle.
- Name string
- The name of the lifecycle.
- Phases
[]GetLifecycles Lifecycle Phase 
- ReleaseRetention []GetPolicies Lifecycles Lifecycle Release Retention Policy 
- SpaceId string
- The space ID associated with this lifecycle.
- TentacleRetention []GetPolicies Lifecycles Lifecycle Tentacle Retention Policy 
- description String
- The description of the lifecycle.
- id String
- The ID of the lifecycle.
- name String
- The name of the lifecycle.
- phases
List<GetLifecycles Lifecycle Phase> 
- releaseRetention List<GetPolicies Lifecycles Lifecycle Release Retention Policy> 
- spaceId String
- The space ID associated with this lifecycle.
- tentacleRetention List<GetPolicies Lifecycles Lifecycle Tentacle Retention Policy> 
- description string
- The description of the lifecycle.
- id string
- The ID of the lifecycle.
- name string
- The name of the lifecycle.
- phases
GetLifecycles Lifecycle Phase[] 
- releaseRetention GetPolicies Lifecycles Lifecycle Release Retention Policy[] 
- spaceId string
- The space ID associated with this lifecycle.
- tentacleRetention GetPolicies Lifecycles Lifecycle Tentacle Retention Policy[] 
- description str
- The description of the lifecycle.
- id str
- The ID of the lifecycle.
- name str
- The name of the lifecycle.
- phases
Sequence[GetLifecycles Lifecycle Phase] 
- release_retention_ Sequence[Getpolicies Lifecycles Lifecycle Release Retention Policy] 
- space_id str
- The space ID associated with this lifecycle.
- tentacle_retention_ Sequence[Getpolicies Lifecycles Lifecycle Tentacle Retention Policy] 
- description String
- The description of the lifecycle.
- id String
- The ID of the lifecycle.
- name String
- The name of the lifecycle.
- phases List<Property Map>
- releaseRetention List<Property Map>Policies 
- spaceId String
- The space ID associated with this lifecycle.
- tentacleRetention List<Property Map>Policies 
GetLifecyclesLifecyclePhase   
- AutomaticDeployment List<string>Targets 
- The automatic deployment targets for this phase.
- Id string
- The ID of the phase.
- IsOptional boolPhase 
- Whether this phase is optional.
- IsPriority boolPhase 
- Deployments will be prioritized in this phase
- MinimumEnvironments doubleBefore Promotion 
- The minimum number of environments before promotion.
- Name string
- The name of the phase.
- OptionalDeployment List<string>Targets 
- The optional deployment targets for this phase.
- ReleaseRetention List<GetPolicies Lifecycles Lifecycle Phase Release Retention Policy> 
- TentacleRetention List<GetPolicies Lifecycles Lifecycle Phase Tentacle Retention Policy> 
- AutomaticDeployment []stringTargets 
- The automatic deployment targets for this phase.
- Id string
- The ID of the phase.
- IsOptional boolPhase 
- Whether this phase is optional.
- IsPriority boolPhase 
- Deployments will be prioritized in this phase
- MinimumEnvironments float64Before Promotion 
- The minimum number of environments before promotion.
- Name string
- The name of the phase.
- OptionalDeployment []stringTargets 
- The optional deployment targets for this phase.
- ReleaseRetention []GetPolicies Lifecycles Lifecycle Phase Release Retention Policy 
- TentacleRetention []GetPolicies Lifecycles Lifecycle Phase Tentacle Retention Policy 
- automaticDeployment List<String>Targets 
- The automatic deployment targets for this phase.
- id String
- The ID of the phase.
- isOptional BooleanPhase 
- Whether this phase is optional.
- isPriority BooleanPhase 
- Deployments will be prioritized in this phase
- minimumEnvironments DoubleBefore Promotion 
- The minimum number of environments before promotion.
- name String
- The name of the phase.
- optionalDeployment List<String>Targets 
- The optional deployment targets for this phase.
- releaseRetention List<GetPolicies Lifecycles Lifecycle Phase Release Retention Policy> 
- tentacleRetention List<GetPolicies Lifecycles Lifecycle Phase Tentacle Retention Policy> 
- automaticDeployment string[]Targets 
- The automatic deployment targets for this phase.
- id string
- The ID of the phase.
- isOptional booleanPhase 
- Whether this phase is optional.
- isPriority booleanPhase 
- Deployments will be prioritized in this phase
- minimumEnvironments numberBefore Promotion 
- The minimum number of environments before promotion.
- name string
- The name of the phase.
- optionalDeployment string[]Targets 
- The optional deployment targets for this phase.
- releaseRetention GetPolicies Lifecycles Lifecycle Phase Release Retention Policy[] 
- tentacleRetention GetPolicies Lifecycles Lifecycle Phase Tentacle Retention Policy[] 
- automatic_deployment_ Sequence[str]targets 
- The automatic deployment targets for this phase.
- id str
- The ID of the phase.
- is_optional_ boolphase 
- Whether this phase is optional.
- is_priority_ boolphase 
- Deployments will be prioritized in this phase
- minimum_environments_ floatbefore_ promotion 
- The minimum number of environments before promotion.
- name str
- The name of the phase.
- optional_deployment_ Sequence[str]targets 
- The optional deployment targets for this phase.
- release_retention_ Sequence[Getpolicies Lifecycles Lifecycle Phase Release Retention Policy] 
- tentacle_retention_ Sequence[Getpolicies Lifecycles Lifecycle Phase Tentacle Retention Policy] 
- automaticDeployment List<String>Targets 
- The automatic deployment targets for this phase.
- id String
- The ID of the phase.
- isOptional BooleanPhase 
- Whether this phase is optional.
- isPriority BooleanPhase 
- Deployments will be prioritized in this phase
- minimumEnvironments NumberBefore Promotion 
- The minimum number of environments before promotion.
- name String
- The name of the phase.
- optionalDeployment List<String>Targets 
- The optional deployment targets for this phase.
- releaseRetention List<Property Map>Policies 
- tentacleRetention List<Property Map>Policies 
GetLifecyclesLifecyclePhaseReleaseRetentionPolicy      
- QuantityTo doubleKeep 
- The quantity of releases to keep.
- ShouldKeep boolForever 
- Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- QuantityTo float64Keep 
- The quantity of releases to keep.
- ShouldKeep boolForever 
- Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- quantityTo DoubleKeep 
- The quantity of releases to keep.
- shouldKeep BooleanForever 
- Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
- quantityTo numberKeep 
- The quantity of releases to keep.
- shouldKeep booleanForever 
- Whether releases should be kept forever.
- unit string
- The unit of time for the retention policy.
- quantity_to_ floatkeep 
- The quantity of releases to keep.
- should_keep_ boolforever 
- Whether releases should be kept forever.
- unit str
- The unit of time for the retention policy.
- quantityTo NumberKeep 
- The quantity of releases to keep.
- shouldKeep BooleanForever 
- Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
GetLifecyclesLifecyclePhaseTentacleRetentionPolicy      
- QuantityTo doubleKeep 
- The quantity of releases to keep.
- ShouldKeep boolForever 
- Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- QuantityTo float64Keep 
- The quantity of releases to keep.
- ShouldKeep boolForever 
- Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- quantityTo DoubleKeep 
- The quantity of releases to keep.
- shouldKeep BooleanForever 
- Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
- quantityTo numberKeep 
- The quantity of releases to keep.
- shouldKeep booleanForever 
- Whether releases should be kept forever.
- unit string
- The unit of time for the retention policy.
- quantity_to_ floatkeep 
- The quantity of releases to keep.
- should_keep_ boolforever 
- Whether releases should be kept forever.
- unit str
- The unit of time for the retention policy.
- quantityTo NumberKeep 
- The quantity of releases to keep.
- shouldKeep BooleanForever 
- Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
GetLifecyclesLifecycleReleaseRetentionPolicy     
- QuantityTo doubleKeep 
- The quantity of releases to keep.
- ShouldKeep boolForever 
- Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- QuantityTo float64Keep 
- The quantity of releases to keep.
- ShouldKeep boolForever 
- Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- quantityTo DoubleKeep 
- The quantity of releases to keep.
- shouldKeep BooleanForever 
- Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
- quantityTo numberKeep 
- The quantity of releases to keep.
- shouldKeep booleanForever 
- Whether releases should be kept forever.
- unit string
- The unit of time for the retention policy.
- quantity_to_ floatkeep 
- The quantity of releases to keep.
- should_keep_ boolforever 
- Whether releases should be kept forever.
- unit str
- The unit of time for the retention policy.
- quantityTo NumberKeep 
- The quantity of releases to keep.
- shouldKeep BooleanForever 
- Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
GetLifecyclesLifecycleTentacleRetentionPolicy     
- QuantityTo doubleKeep 
- The quantity of releases to keep.
- ShouldKeep boolForever 
- Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- QuantityTo float64Keep 
- The quantity of releases to keep.
- ShouldKeep boolForever 
- Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- quantityTo DoubleKeep 
- The quantity of releases to keep.
- shouldKeep BooleanForever 
- Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
- quantityTo numberKeep 
- The quantity of releases to keep.
- shouldKeep booleanForever 
- Whether releases should be kept forever.
- unit string
- The unit of time for the retention policy.
- quantity_to_ floatkeep 
- The quantity of releases to keep.
- should_keep_ boolforever 
- Whether releases should be kept forever.
- unit str
- The unit of time for the retention policy.
- quantityTo NumberKeep 
- The quantity of releases to keep.
- shouldKeep BooleanForever 
- Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the octopusdeployTerraform Provider.
octopusdeploy 0.43.0 published on Thursday, Apr 17, 2025 by octopusdeploylabs