octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs
octopusdeploy.getWorkers
Explore with Pulumi AI
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs
Provides information about existing workers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const example = octopusdeploy.getWorkers({
communicationStyles: ["TentaclePassive"],
healthStatuses: ["Unavailable"],
ids: ["Workers-123"],
isDisabled: true,
name: "Exact name",
partialName: "Test",
skip: 5,
take: 100,
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.get_workers(communication_styles=["TentaclePassive"],
health_statuses=["Unavailable"],
ids=["Workers-123"],
is_disabled=True,
name="Exact name",
partial_name="Test",
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.GetWorkers(ctx, &octopusdeploy.GetWorkersArgs{
CommunicationStyles: []string{
"TentaclePassive",
},
HealthStatuses: []string{
"Unavailable",
},
Ids: []string{
"Workers-123",
},
IsDisabled: pulumi.BoolRef(true),
Name: pulumi.StringRef("Exact name"),
PartialName: pulumi.StringRef("Test"),
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.GetWorkers.Invoke(new()
{
CommunicationStyles = new[]
{
"TentaclePassive",
},
HealthStatuses = new[]
{
"Unavailable",
},
Ids = new[]
{
"Workers-123",
},
IsDisabled = true,
Name = "Exact name",
PartialName = "Test",
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.GetWorkersArgs;
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.getWorkers(GetWorkersArgs.builder()
.communicationStyles("TentaclePassive")
.healthStatuses("Unavailable")
.ids("Workers-123")
.isDisabled(true)
.name("Exact name")
.partialName("Test")
.skip(5)
.take(100)
.build());
}
}
variables:
example:
fn::invoke:
function: octopusdeploy:getWorkers
arguments:
communicationStyles:
- TentaclePassive
healthStatuses:
- Unavailable
ids:
- Workers-123
isDisabled: true
name: Exact name
partialName: Test
skip: 5
take: 100
Using getWorkers
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 getWorkers(args: GetWorkersArgs, opts?: InvokeOptions): Promise<GetWorkersResult>
function getWorkersOutput(args: GetWorkersOutputArgs, opts?: InvokeOptions): Output<GetWorkersResult>
def get_workers(communication_styles: Optional[Sequence[str]] = None,
health_statuses: Optional[Sequence[str]] = None,
ids: Optional[Sequence[str]] = None,
is_disabled: Optional[bool] = None,
name: Optional[str] = None,
partial_name: Optional[str] = None,
skip: Optional[float] = None,
space_id: Optional[str] = None,
take: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetWorkersResult
def get_workers_output(communication_styles: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
health_statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
is_disabled: Optional[pulumi.Input[bool]] = None,
name: Optional[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[GetWorkersResult]
func GetWorkers(ctx *Context, args *GetWorkersArgs, opts ...InvokeOption) (*GetWorkersResult, error)
func GetWorkersOutput(ctx *Context, args *GetWorkersOutputArgs, opts ...InvokeOption) GetWorkersResultOutput
> Note: This function is named GetWorkers
in the Go SDK.
public static class GetWorkers
{
public static Task<GetWorkersResult> InvokeAsync(GetWorkersArgs args, InvokeOptions? opts = null)
public static Output<GetWorkersResult> Invoke(GetWorkersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetWorkersResult> getWorkers(GetWorkersArgs args, InvokeOptions options)
public static Output<GetWorkersResult> getWorkers(GetWorkersArgs args, InvokeOptions options)
fn::invoke:
function: octopusdeploy:index/getWorkers:getWorkers
arguments:
# arguments dictionary
The following arguments are supported:
- Communication
Styles List<string> - A filter to search by communication styles
- Health
Statuses List<string> - A filter to search by health statuses
- Ids List<string>
- A filter to search by a list of IDs.
- Is
Disabled bool - Name string
- The name of this resource.
- 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.
- Space
Id string - The space ID associated with this workers.
- Take double
- A filter to specify the number of items to take (or return) in the response.
- Communication
Styles []string - A filter to search by communication styles
- Health
Statuses []string - A filter to search by health statuses
- Ids []string
- A filter to search by a list of IDs.
- Is
Disabled bool - Name string
- The name of this resource.
- 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.
- Space
Id string - The space ID associated with this workers.
- Take float64
- A filter to specify the number of items to take (or return) in the response.
- communication
Styles List<String> - A filter to search by communication styles
- health
Statuses List<String> - A filter to search by health statuses
- ids List<String>
- A filter to search by a list of IDs.
- is
Disabled Boolean - name String
- The name of this resource.
- 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.
- space
Id String - The space ID associated with this workers.
- take Double
- A filter to specify the number of items to take (or return) in the response.
- communication
Styles string[] - A filter to search by communication styles
- health
Statuses string[] - A filter to search by health statuses
- ids string[]
- A filter to search by a list of IDs.
- is
Disabled boolean - name string
- The name of this resource.
- 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.
- space
Id string - The space ID associated with this workers.
- take number
- A filter to specify the number of items to take (or return) in the response.
- communication_
styles Sequence[str] - A filter to search by communication styles
- health_
statuses Sequence[str] - A filter to search by health statuses
- ids Sequence[str]
- A filter to search by a list of IDs.
- is_
disabled bool - name str
- The name of this resource.
- 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.
- space_
id str - The space ID associated with this workers.
- take float
- A filter to specify the number of items to take (or return) in the response.
- communication
Styles List<String> - A filter to search by communication styles
- health
Statuses List<String> - A filter to search by health statuses
- ids List<String>
- A filter to search by a list of IDs.
- is
Disabled Boolean - name String
- The name of this resource.
- 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.
- space
Id String - The space ID associated with this workers.
- take Number
- A filter to specify the number of items to take (or return) in the response.
getWorkers Result
The following output properties are available:
- Id string
- The unique ID for this resource.
- Is
Disabled bool - Space
Id string - The space ID associated with this workers.
- Workers
List<Get
Workers Worker> - Communication
Styles List<string> - A filter to search by communication styles
- Health
Statuses List<string> - A filter to search by health statuses
- Ids List<string>
- A filter to search by a list of IDs.
- Name string
- The name of this resource.
- 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.
- Is
Disabled bool - Space
Id string - The space ID associated with this workers.
- Workers
[]Get
Workers Worker - Communication
Styles []string - A filter to search by communication styles
- Health
Statuses []string - A filter to search by health statuses
- Ids []string
- A filter to search by a list of IDs.
- Name string
- The name of this resource.
- 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.
- is
Disabled Boolean - space
Id String - The space ID associated with this workers.
- workers
List<Get
Workers Worker> - communication
Styles List<String> - A filter to search by communication styles
- health
Statuses List<String> - A filter to search by health statuses
- ids List<String>
- A filter to search by a list of IDs.
- name String
- The name of this resource.
- 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.
- is
Disabled boolean - space
Id string - The space ID associated with this workers.
- workers
Get
Workers Worker[] - communication
Styles string[] - A filter to search by communication styles
- health
Statuses string[] - A filter to search by health statuses
- ids string[]
- A filter to search by a list of IDs.
- name string
- The name of this resource.
- 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.
- is_
disabled bool - space_
id str - The space ID associated with this workers.
- workers
Sequence[Get
Workers Worker] - communication_
styles Sequence[str] - A filter to search by communication styles
- health_
statuses Sequence[str] - A filter to search by health statuses
- ids Sequence[str]
- A filter to search by a list of IDs.
- name str
- The name of this resource.
- 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.
- is
Disabled Boolean - space
Id String - The space ID associated with this workers.
- workers List<Property Map>
- communication
Styles List<String> - A filter to search by communication styles
- health
Statuses List<String> - A filter to search by health statuses
- ids List<String>
- A filter to search by a list of IDs.
- name String
- The name of this resource.
- 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
GetWorkersWorker
- Account
Id string - Communication
Style string - Dotnet
Platform string - Fingerprint string
- Health
Status string - Host string
- Id string
- The unique ID for this resource.
- Is
Disabled bool - Machine
Policy stringId - Name string
- The name of this resource.
- Port double
- Proxy
Id string - Space
Id string - The space ID associated with this workers.
- Thumbprint string
- Uri string
- Worker
Pool List<string>Ids
- Account
Id string - Communication
Style string - Dotnet
Platform string - Fingerprint string
- Health
Status string - Host string
- Id string
- The unique ID for this resource.
- Is
Disabled bool - Machine
Policy stringId - Name string
- The name of this resource.
- Port float64
- Proxy
Id string - Space
Id string - The space ID associated with this workers.
- Thumbprint string
- Uri string
- Worker
Pool []stringIds
- account
Id String - communication
Style String - dotnet
Platform String - fingerprint String
- health
Status String - host String
- id String
- The unique ID for this resource.
- is
Disabled Boolean - machine
Policy StringId - name String
- The name of this resource.
- port Double
- proxy
Id String - space
Id String - The space ID associated with this workers.
- thumbprint String
- uri String
- worker
Pool List<String>Ids
- account
Id string - communication
Style string - dotnet
Platform string - fingerprint string
- health
Status string - host string
- id string
- The unique ID for this resource.
- is
Disabled boolean - machine
Policy stringId - name string
- The name of this resource.
- port number
- proxy
Id string - space
Id string - The space ID associated with this workers.
- thumbprint string
- uri string
- worker
Pool string[]Ids
- account_
id str - communication_
style str - dotnet_
platform str - fingerprint str
- health_
status str - host str
- id str
- The unique ID for this resource.
- is_
disabled bool - machine_
policy_ strid - name str
- The name of this resource.
- port float
- proxy_
id str - space_
id str - The space ID associated with this workers.
- thumbprint str
- uri str
- worker_
pool_ Sequence[str]ids
- account
Id String - communication
Style String - dotnet
Platform String - fingerprint String
- health
Status String - host String
- id String
- The unique ID for this resource.
- is
Disabled Boolean - machine
Policy StringId - name String
- The name of this resource.
- port Number
- proxy
Id String - space
Id String - The space ID associated with this workers.
- thumbprint String
- uri String
- worker
Pool List<String>Ids
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