octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs
octopusdeploy.getSpaces
Explore with Pulumi AI
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const spaces = octopusdeploy.getSpaces({
ids: [
"Spaces-123",
"Spaces-321",
],
partialName: "Defau",
skip: 5,
take: 100,
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
spaces = octopusdeploy.get_spaces(ids=[
"Spaces-123",
"Spaces-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.GetSpaces(ctx, &octopusdeploy.GetSpacesArgs{
Ids: []string{
"Spaces-123",
"Spaces-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 spaces = Octopusdeploy.GetSpaces.Invoke(new()
{
Ids = new[]
{
"Spaces-123",
"Spaces-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.GetSpacesArgs;
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 spaces = OctopusdeployFunctions.getSpaces(GetSpacesArgs.builder()
.ids(
"Spaces-123",
"Spaces-321")
.partialName("Defau")
.skip(5)
.take(100)
.build());
}
}
variables:
spaces:
fn::invoke:
function: octopusdeploy:getSpaces
arguments:
ids:
- Spaces-123
- Spaces-321
partialName: Defau
skip: 5
take: 100
Using getSpaces
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 getSpaces(args: GetSpacesArgs, opts?: InvokeOptions): Promise<GetSpacesResult>
function getSpacesOutput(args: GetSpacesOutputArgs, opts?: InvokeOptions): Output<GetSpacesResult>
def get_spaces(ids: Optional[Sequence[str]] = None,
partial_name: Optional[str] = None,
skip: Optional[float] = None,
take: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetSpacesResult
def get_spaces_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
partial_name: Optional[pulumi.Input[str]] = None,
skip: Optional[pulumi.Input[float]] = None,
take: Optional[pulumi.Input[float]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSpacesResult]
func GetSpaces(ctx *Context, args *GetSpacesArgs, opts ...InvokeOption) (*GetSpacesResult, error)
func GetSpacesOutput(ctx *Context, args *GetSpacesOutputArgs, opts ...InvokeOption) GetSpacesResultOutput
> Note: This function is named GetSpaces
in the Go SDK.
public static class GetSpaces
{
public static Task<GetSpacesResult> InvokeAsync(GetSpacesArgs args, InvokeOptions? opts = null)
public static Output<GetSpacesResult> Invoke(GetSpacesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSpacesResult> getSpaces(GetSpacesArgs args, InvokeOptions options)
public static Output<GetSpacesResult> getSpaces(GetSpacesArgs args, InvokeOptions options)
fn::invoke:
function: octopusdeploy:index/getSpaces:getSpaces
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A filter to search by a list of IDs.
- Partial
Name string - A filter to search by a partial name.
- Skip double
- A filter to specify the number of items to skip in the response.
- Take double
- A filter to specify the number of items to take (or return) in the response.
- Ids []string
- A filter to search by a list of IDs.
- Partial
Name string - A filter to search by a partial name.
- Skip float64
- A filter to specify the number of items to skip in the response.
- Take float64
- A filter to specify the number of items to take (or return) in the response.
- ids List<String>
- A filter to search by a list of IDs.
- partial
Name String - A filter to search by a partial name.
- skip Double
- A filter to specify the number of items to skip in the response.
- take Double
- A filter to specify the number of items to take (or return) in the response.
- ids string[]
- A filter to search by a list of IDs.
- partial
Name string - A filter to search by a partial name.
- skip number
- A filter to specify the number of items to skip in the response.
- take number
- A filter to specify the number of items to take (or return) in the response.
- ids Sequence[str]
- A filter to search by a list of IDs.
- partial_
name str - A filter to search by a partial name.
- skip float
- A filter to specify the number of items to skip in the response.
- take float
- A filter to specify the number of items to take (or return) in the response.
- ids List<String>
- A filter to search by a list of IDs.
- partial
Name String - A filter to search by a partial name.
- skip Number
- A filter to specify the number of items to skip in the response.
- take Number
- A filter to specify the number of items to take (or return) in the response.
getSpaces Result
The following output properties are available:
- Id string
- The unique ID for this resource.
- Spaces
List<Get
Spaces Space> - Ids List<string>
- A filter to search by a list of IDs.
- Partial
Name string - A filter to search by a partial name.
- Skip double
- A filter to specify the number of items to skip in the response.
- Take double
- A filter to specify the number of items to take (or return) in the response.
- Id string
- The unique ID for this resource.
- Spaces
[]Get
Spaces Space - Ids []string
- A filter to search by a list of IDs.
- Partial
Name string - A filter to search by a partial name.
- Skip float64
- A filter to specify the number of items to skip in the response.
- Take float64
- A filter to specify the number of items to take (or return) in the response.
- id String
- The unique ID for this resource.
- spaces
List<Get
Spaces Space> - ids List<String>
- A filter to search by a list of IDs.
- partial
Name String - A filter to search by a partial name.
- skip Double
- A filter to specify the number of items to skip in the response.
- take Double
- A filter to specify the number of items to take (or return) in the response.
- id string
- The unique ID for this resource.
- spaces
Get
Spaces Space[] - ids string[]
- A filter to search by a list of IDs.
- partial
Name string - A filter to search by a partial name.
- skip number
- A filter to specify the number of items to skip in the response.
- take number
- A filter to specify the number of items to take (or return) in the response.
- id str
- The unique ID for this resource.
- spaces
Sequence[Get
Spaces Space] - ids Sequence[str]
- A filter to search by a list of IDs.
- partial_
name str - A filter to search by a partial name.
- skip float
- A filter to specify the number of items to skip in the response.
- take float
- A filter to specify the number of items to take (or return) in the response.
- id String
- The unique ID for this resource.
- spaces List<Property Map>
- ids List<String>
- A filter to search by a list of IDs.
- partial
Name String - A filter to search by a partial name.
- skip Number
- A filter to specify the number of items to skip in the response.
- take Number
- A filter to specify the number of items to take (or return) in the response.
Supporting Types
GetSpacesSpace
- Description string
- The description of this space.
- Id string
- The unique ID for this resource.
- Is
Default bool - Specifies if this space is the default space in Octopus.
- Is
Task boolQueue Stopped - Specifies the status of the task queue for this space.
- Name string
- The name of this resource, no more than 20 characters long
- Slug string
- The unique slug of this space
- Space
Managers List<string>Team Members - A list of user IDs designated to be managers of this space.
- Space
Managers List<string>Teams - A list of team IDs designated to be managers of this space.
- Description string
- The description of this space.
- Id string
- The unique ID for this resource.
- Is
Default bool - Specifies if this space is the default space in Octopus.
- Is
Task boolQueue Stopped - Specifies the status of the task queue for this space.
- Name string
- The name of this resource, no more than 20 characters long
- Slug string
- The unique slug of this space
- Space
Managers []stringTeam Members - A list of user IDs designated to be managers of this space.
- Space
Managers []stringTeams - A list of team IDs designated to be managers of this space.
- description String
- The description of this space.
- id String
- The unique ID for this resource.
- is
Default Boolean - Specifies if this space is the default space in Octopus.
- is
Task BooleanQueue Stopped - Specifies the status of the task queue for this space.
- name String
- The name of this resource, no more than 20 characters long
- slug String
- The unique slug of this space
- space
Managers List<String>Team Members - A list of user IDs designated to be managers of this space.
- space
Managers List<String>Teams - A list of team IDs designated to be managers of this space.
- description string
- The description of this space.
- id string
- The unique ID for this resource.
- is
Default boolean - Specifies if this space is the default space in Octopus.
- is
Task booleanQueue Stopped - Specifies the status of the task queue for this space.
- name string
- The name of this resource, no more than 20 characters long
- slug string
- The unique slug of this space
- space
Managers string[]Team Members - A list of user IDs designated to be managers of this space.
- space
Managers string[]Teams - A list of team IDs designated to be managers of this space.
- description str
- The description of this space.
- id str
- The unique ID for this resource.
- is_
default bool - Specifies if this space is the default space in Octopus.
- is_
task_ boolqueue_ stopped - Specifies the status of the task queue for this space.
- name str
- The name of this resource, no more than 20 characters long
- slug str
- The unique slug of this space
- space_
managers_ Sequence[str]team_ members - A list of user IDs designated to be managers of this space.
- space_
managers_ Sequence[str]teams - A list of team IDs designated to be managers of this space.
- description String
- The description of this space.
- id String
- The unique ID for this resource.
- is
Default Boolean - Specifies if this space is the default space in Octopus.
- is
Task BooleanQueue Stopped - Specifies the status of the task queue for this space.
- name String
- The name of this resource, no more than 20 characters long
- slug String
- The unique slug of this space
- space
Managers List<String>Team Members - A list of user IDs designated to be managers of this space.
- space
Managers List<String>Teams - A list of team IDs designated to be managers of this space.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeploy
Terraform Provider.
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs