1. Packages
  2. Octopusdeploy Provider
  3. API Docs
  4. StaticWorkerPool
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs

octopusdeploy.StaticWorkerPool

Explore with Pulumi AI

octopusdeploy logo
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs

    This resource manages static worker pools in Octopus Deploy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as octopusdeploy from "@pulumi/octopusdeploy";
    
    const example = new octopusdeploy.StaticWorkerPool("example", {
        description: "Description for the static worker pool.",
        isDefault: true,
        sortOrder: 5,
    });
    
    import pulumi
    import pulumi_octopusdeploy as octopusdeploy
    
    example = octopusdeploy.StaticWorkerPool("example",
        description="Description for the static worker pool.",
        is_default=True,
        sort_order=5)
    
    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.NewStaticWorkerPool(ctx, "example", &octopusdeploy.StaticWorkerPoolArgs{
    			Description: pulumi.String("Description for the static worker pool."),
    			IsDefault:   pulumi.Bool(true),
    			SortOrder:   pulumi.Float64(5),
    		})
    		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 = new Octopusdeploy.StaticWorkerPool("example", new()
        {
            Description = "Description for the static worker pool.",
            IsDefault = true,
            SortOrder = 5,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.octopusdeploy.StaticWorkerPool;
    import com.pulumi.octopusdeploy.StaticWorkerPoolArgs;
    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 example = new StaticWorkerPool("example", StaticWorkerPoolArgs.builder()
                .description("Description for the static worker pool.")
                .isDefault(true)
                .sortOrder(5)
                .build());
    
        }
    }
    
    resources:
      example:
        type: octopusdeploy:StaticWorkerPool
        properties:
          description: Description for the static worker pool.
          isDefault: true
          sortOrder: 5
    

    Create StaticWorkerPool Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new StaticWorkerPool(name: string, args?: StaticWorkerPoolArgs, opts?: CustomResourceOptions);
    @overload
    def StaticWorkerPool(resource_name: str,
                         args: Optional[StaticWorkerPoolArgs] = None,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def StaticWorkerPool(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         description: Optional[str] = None,
                         is_default: Optional[bool] = None,
                         name: Optional[str] = None,
                         sort_order: Optional[float] = None,
                         space_id: Optional[str] = None,
                         static_worker_pool_id: Optional[str] = None)
    func NewStaticWorkerPool(ctx *Context, name string, args *StaticWorkerPoolArgs, opts ...ResourceOption) (*StaticWorkerPool, error)
    public StaticWorkerPool(string name, StaticWorkerPoolArgs? args = null, CustomResourceOptions? opts = null)
    public StaticWorkerPool(String name, StaticWorkerPoolArgs args)
    public StaticWorkerPool(String name, StaticWorkerPoolArgs args, CustomResourceOptions options)
    
    type: octopusdeploy:StaticWorkerPool
    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 StaticWorkerPoolArgs
    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 StaticWorkerPoolArgs
    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 StaticWorkerPoolArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args StaticWorkerPoolArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args StaticWorkerPoolArgs
    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 staticWorkerPoolResource = new Octopusdeploy.StaticWorkerPool("staticWorkerPoolResource", new()
    {
        Description = "string",
        IsDefault = false,
        Name = "string",
        SortOrder = 0,
        SpaceId = "string",
        StaticWorkerPoolId = "string",
    });
    
    example, err := octopusdeploy.NewStaticWorkerPool(ctx, "staticWorkerPoolResource", &octopusdeploy.StaticWorkerPoolArgs{
    	Description:        pulumi.String("string"),
    	IsDefault:          pulumi.Bool(false),
    	Name:               pulumi.String("string"),
    	SortOrder:          pulumi.Float64(0),
    	SpaceId:            pulumi.String("string"),
    	StaticWorkerPoolId: pulumi.String("string"),
    })
    
    var staticWorkerPoolResource = new StaticWorkerPool("staticWorkerPoolResource", StaticWorkerPoolArgs.builder()
        .description("string")
        .isDefault(false)
        .name("string")
        .sortOrder(0)
        .spaceId("string")
        .staticWorkerPoolId("string")
        .build());
    
    static_worker_pool_resource = octopusdeploy.StaticWorkerPool("staticWorkerPoolResource",
        description="string",
        is_default=False,
        name="string",
        sort_order=0,
        space_id="string",
        static_worker_pool_id="string")
    
    const staticWorkerPoolResource = new octopusdeploy.StaticWorkerPool("staticWorkerPoolResource", {
        description: "string",
        isDefault: false,
        name: "string",
        sortOrder: 0,
        spaceId: "string",
        staticWorkerPoolId: "string",
    });
    
    type: octopusdeploy:StaticWorkerPool
    properties:
        description: string
        isDefault: false
        name: string
        sortOrder: 0
        spaceId: string
        staticWorkerPoolId: string
    

    StaticWorkerPool Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The StaticWorkerPool resource accepts the following input properties:

    Description string
    The description of this static worker pool.
    IsDefault bool
    Name string
    The name of this resource.
    SortOrder double
    The order number to sort a dynamic worker pool.
    SpaceId string
    The space ID associated with this resource.
    StaticWorkerPoolId string
    The unique ID for this resource.
    Description string
    The description of this static worker pool.
    IsDefault bool
    Name string
    The name of this resource.
    SortOrder float64
    The order number to sort a dynamic worker pool.
    SpaceId string
    The space ID associated with this resource.
    StaticWorkerPoolId string
    The unique ID for this resource.
    description String
    The description of this static worker pool.
    isDefault Boolean
    name String
    The name of this resource.
    sortOrder Double
    The order number to sort a dynamic worker pool.
    spaceId String
    The space ID associated with this resource.
    staticWorkerPoolId String
    The unique ID for this resource.
    description string
    The description of this static worker pool.
    isDefault boolean
    name string
    The name of this resource.
    sortOrder number
    The order number to sort a dynamic worker pool.
    spaceId string
    The space ID associated with this resource.
    staticWorkerPoolId string
    The unique ID for this resource.
    description str
    The description of this static worker pool.
    is_default bool
    name str
    The name of this resource.
    sort_order float
    The order number to sort a dynamic worker pool.
    space_id str
    The space ID associated with this resource.
    static_worker_pool_id str
    The unique ID for this resource.
    description String
    The description of this static worker pool.
    isDefault Boolean
    name String
    The name of this resource.
    sortOrder Number
    The order number to sort a dynamic worker pool.
    spaceId String
    The space ID associated with this resource.
    staticWorkerPoolId String
    The unique ID for this resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the StaticWorkerPool resource produces the following output properties:

    CanAddWorkers bool
    Id string
    The provider-assigned unique ID for this managed resource.
    CanAddWorkers bool
    Id string
    The provider-assigned unique ID for this managed resource.
    canAddWorkers Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    canAddWorkers boolean
    id string
    The provider-assigned unique ID for this managed resource.
    can_add_workers bool
    id str
    The provider-assigned unique ID for this managed resource.
    canAddWorkers Boolean
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing StaticWorkerPool Resource

    Get an existing StaticWorkerPool 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?: StaticWorkerPoolState, opts?: CustomResourceOptions): StaticWorkerPool
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            can_add_workers: Optional[bool] = None,
            description: Optional[str] = None,
            is_default: Optional[bool] = None,
            name: Optional[str] = None,
            sort_order: Optional[float] = None,
            space_id: Optional[str] = None,
            static_worker_pool_id: Optional[str] = None) -> StaticWorkerPool
    func GetStaticWorkerPool(ctx *Context, name string, id IDInput, state *StaticWorkerPoolState, opts ...ResourceOption) (*StaticWorkerPool, error)
    public static StaticWorkerPool Get(string name, Input<string> id, StaticWorkerPoolState? state, CustomResourceOptions? opts = null)
    public static StaticWorkerPool get(String name, Output<String> id, StaticWorkerPoolState state, CustomResourceOptions options)
    resources:  _:    type: octopusdeploy:StaticWorkerPool    get:      id: ${id}
    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.
    The following state arguments are supported:
    CanAddWorkers bool
    Description string
    The description of this static worker pool.
    IsDefault bool
    Name string
    The name of this resource.
    SortOrder double
    The order number to sort a dynamic worker pool.
    SpaceId string
    The space ID associated with this resource.
    StaticWorkerPoolId string
    The unique ID for this resource.
    CanAddWorkers bool
    Description string
    The description of this static worker pool.
    IsDefault bool
    Name string
    The name of this resource.
    SortOrder float64
    The order number to sort a dynamic worker pool.
    SpaceId string
    The space ID associated with this resource.
    StaticWorkerPoolId string
    The unique ID for this resource.
    canAddWorkers Boolean
    description String
    The description of this static worker pool.
    isDefault Boolean
    name String
    The name of this resource.
    sortOrder Double
    The order number to sort a dynamic worker pool.
    spaceId String
    The space ID associated with this resource.
    staticWorkerPoolId String
    The unique ID for this resource.
    canAddWorkers boolean
    description string
    The description of this static worker pool.
    isDefault boolean
    name string
    The name of this resource.
    sortOrder number
    The order number to sort a dynamic worker pool.
    spaceId string
    The space ID associated with this resource.
    staticWorkerPoolId string
    The unique ID for this resource.
    can_add_workers bool
    description str
    The description of this static worker pool.
    is_default bool
    name str
    The name of this resource.
    sort_order float
    The order number to sort a dynamic worker pool.
    space_id str
    The space ID associated with this resource.
    static_worker_pool_id str
    The unique ID for this resource.
    canAddWorkers Boolean
    description String
    The description of this static worker pool.
    isDefault Boolean
    name String
    The name of this resource.
    sortOrder Number
    The order number to sort a dynamic worker pool.
    spaceId String
    The space ID associated with this resource.
    staticWorkerPoolId String
    The unique ID for this resource.

    Package Details

    Repository
    octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
    License
    Notes
    This Pulumi package is based on the octopusdeploy Terraform Provider.
    octopusdeploy logo
    octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs