octopusdeploy 0.43.2 published on Friday, May 30, 2025 by octopusdeploylabs
octopusdeploy.getLifecycles
Start a Neo task
Explain and create an octopusdeploy.getLifecycles resource
octopusdeploy 0.43.2 published on Friday, May 30, 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.
- Partial
Name string - A partial name to filter lifecycles by.
- Skip double
- A filter to specify the number of items to skip in the response.
- Space
Id 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.
- Partial
Name string - A partial name to filter lifecycles by.
- Skip float64
- A filter to specify the number of items to skip in the response.
- Space
Id 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.
- partial
Name String - A partial name to filter lifecycles by.
- skip Double
- A filter to specify the number of items to skip in the response.
- space
Id 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.
- partial
Name string - A partial name to filter lifecycles by.
- skip number
- A filter to specify the number of items to skip in the response.
- space
Id 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.
- partial
Name String - A partial name to filter lifecycles by.
- skip Number
- A filter to specify the number of items to skip in the response.
- space
Id 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<Get
Lifecycles Lifecycle> - Ids List<string>
- A list of lifecycle IDs to filter by.
- Partial
Name string - A partial name to filter lifecycles by.
- Skip double
- A filter to specify the number of items to skip in the response.
- Space
Id 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
[]Get
Lifecycles Lifecycle - Ids []string
- A list of lifecycle IDs to filter by.
- Partial
Name string - A partial name to filter lifecycles by.
- Skip float64
- A filter to specify the number of items to skip in the response.
- Space
Id 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<Get
Lifecycles Lifecycle> - ids List<String>
- A list of lifecycle IDs to filter by.
- partial
Name String - A partial name to filter lifecycles by.
- skip Double
- A filter to specify the number of items to skip in the response.
- space
Id 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
Get
Lifecycles Lifecycle[] - ids string[]
- A list of lifecycle IDs to filter by.
- partial
Name string - A partial name to filter lifecycles by.
- skip number
- A filter to specify the number of items to skip in the response.
- space
Id 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[Get
Lifecycles 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.
- partial
Name String - A partial name to filter lifecycles by.
- skip Number
- A filter to specify the number of items to skip in the response.
- space
Id 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<Get
Lifecycles Lifecycle Phase> - Release
Retention List<GetPolicies Lifecycles Lifecycle Release Retention Policy> - Space
Id string - The space ID associated with this lifecycle.
- Tentacle
Retention 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
[]Get
Lifecycles Lifecycle Phase - Release
Retention []GetPolicies Lifecycles Lifecycle Release Retention Policy - Space
Id string - The space ID associated with this lifecycle.
- Tentacle
Retention []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<Get
Lifecycles Lifecycle Phase> - release
Retention List<GetPolicies Lifecycles Lifecycle Release Retention Policy> - space
Id String - The space ID associated with this lifecycle.
- tentacle
Retention 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
Get
Lifecycles Lifecycle Phase[] - release
Retention GetPolicies Lifecycles Lifecycle Release Retention Policy[] - space
Id string - The space ID associated with this lifecycle.
- tentacle
Retention 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[Get
Lifecycles 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>
- release
Retention List<Property Map>Policies - space
Id String - The space ID associated with this lifecycle.
- tentacle
Retention List<Property Map>Policies
GetLifecyclesLifecyclePhase
- Automatic
Deployment List<string>Targets - The automatic deployment targets for this phase.
- Id string
- 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 doubleBefore Promotion - The minimum number of environments before promotion.
- Name string
- The name of the phase.
- Optional
Deployment List<string>Targets - The optional deployment targets for this phase.
- Release
Retention List<GetPolicies Lifecycles Lifecycle Phase Release Retention Policy> - Tentacle
Retention List<GetPolicies Lifecycles Lifecycle Phase Tentacle Retention Policy>
- Automatic
Deployment []stringTargets - The automatic deployment targets for this phase.
- Id string
- 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 float64Before Promotion - The minimum number of environments before promotion.
- Name string
- The name of the phase.
- Optional
Deployment []stringTargets - The optional deployment targets for this phase.
- Release
Retention []GetPolicies Lifecycles Lifecycle Phase Release Retention Policy - Tentacle
Retention []GetPolicies Lifecycles Lifecycle Phase Tentacle Retention Policy
- automatic
Deployment List<String>Targets - The automatic deployment targets for this phase.
- id String
- The ID of the phase.
- is
Optional BooleanPhase - Whether this phase is optional.
- is
Priority BooleanPhase - Deployments will be prioritized in this phase
- minimum
Environments DoubleBefore Promotion - The minimum number of environments before promotion.
- name String
- The name of the phase.
- optional
Deployment List<String>Targets - The optional deployment targets for this phase.
- release
Retention List<GetPolicies Lifecycles Lifecycle Phase Release Retention Policy> - tentacle
Retention List<GetPolicies Lifecycles Lifecycle Phase Tentacle Retention Policy>
- automatic
Deployment string[]Targets - The automatic deployment targets for this phase.
- id string
- The ID of the phase.
- is
Optional booleanPhase - Whether this phase is optional.
- is
Priority booleanPhase - Deployments will be prioritized in this phase
- minimum
Environments numberBefore Promotion - The minimum number of environments before promotion.
- name string
- The name of the phase.
- optional
Deployment string[]Targets - The optional deployment targets for this phase.
- release
Retention GetPolicies Lifecycles Lifecycle Phase Release Retention Policy[] - tentacle
Retention 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]
- automatic
Deployment List<String>Targets - The automatic deployment targets for this phase.
- id String
- The ID of the phase.
- is
Optional BooleanPhase - Whether this phase is optional.
- is
Priority BooleanPhase - Deployments will be prioritized in this phase
- minimum
Environments NumberBefore Promotion - The minimum number of environments before promotion.
- name String
- The name of the phase.
- optional
Deployment List<String>Targets - The optional deployment targets for this phase.
- release
Retention List<Property Map>Policies - tentacle
Retention List<Property Map>Policies
GetLifecyclesLifecyclePhaseReleaseRetentionPolicy
- Quantity
To doubleKeep - The quantity of releases to keep.
- Should
Keep boolForever - Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- Quantity
To float64Keep - The quantity of releases to keep.
- Should
Keep boolForever - Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- quantity
To DoubleKeep - The quantity of releases to keep.
- should
Keep BooleanForever - Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
- quantity
To numberKeep - The quantity of releases to keep.
- should
Keep 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.
- quantity
To NumberKeep - The quantity of releases to keep.
- should
Keep BooleanForever - Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
GetLifecyclesLifecyclePhaseTentacleRetentionPolicy
- Quantity
To doubleKeep - The quantity of releases to keep.
- Should
Keep boolForever - Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- Quantity
To float64Keep - The quantity of releases to keep.
- Should
Keep boolForever - Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- quantity
To DoubleKeep - The quantity of releases to keep.
- should
Keep BooleanForever - Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
- quantity
To numberKeep - The quantity of releases to keep.
- should
Keep 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.
- quantity
To NumberKeep - The quantity of releases to keep.
- should
Keep BooleanForever - Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
GetLifecyclesLifecycleReleaseRetentionPolicy
- Quantity
To doubleKeep - The quantity of releases to keep.
- Should
Keep boolForever - Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- Quantity
To float64Keep - The quantity of releases to keep.
- Should
Keep boolForever - Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- quantity
To DoubleKeep - The quantity of releases to keep.
- should
Keep BooleanForever - Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
- quantity
To numberKeep - The quantity of releases to keep.
- should
Keep 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.
- quantity
To NumberKeep - The quantity of releases to keep.
- should
Keep BooleanForever - Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
GetLifecyclesLifecycleTentacleRetentionPolicy
- Quantity
To doubleKeep - The quantity of releases to keep.
- Should
Keep boolForever - Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- Quantity
To float64Keep - The quantity of releases to keep.
- Should
Keep boolForever - Whether releases should be kept forever.
- Unit string
- The unit of time for the retention policy.
- quantity
To DoubleKeep - The quantity of releases to keep.
- should
Keep BooleanForever - Whether releases should be kept forever.
- unit String
- The unit of time for the retention policy.
- quantity
To numberKeep - The quantity of releases to keep.
- should
Keep 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.
- quantity
To NumberKeep - The quantity of releases to keep.
- should
Keep 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.2 published on Friday, May 30, 2025 by octopusdeploylabs
