octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs
octopusdeploy.getChannels
Explore with Pulumi AI
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs
Provides information about existing channels.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const example = octopusdeploy.getChannels({
ids: [
"Channels-123",
"Channels-321",
],
partialName: "Defau",
skip: 5,
take: 100,
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.get_channels(ids=[
"Channels-123",
"Channels-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.GetChannels(ctx, &octopusdeploy.GetChannelsArgs{
Ids: []string{
"Channels-123",
"Channels-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.GetChannels.Invoke(new()
{
Ids = new[]
{
"Channels-123",
"Channels-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.GetChannelsArgs;
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.getChannels(GetChannelsArgs.builder()
.ids(
"Channels-123",
"Channels-321")
.partialName("Defau")
.skip(5)
.take(100)
.build());
}
}
variables:
example:
fn::invoke:
function: octopusdeploy:getChannels
arguments:
ids:
- Channels-123
- Channels-321
partialName: Defau
skip: 5
take: 100
Using getChannels
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 getChannels(args: GetChannelsArgs, opts?: InvokeOptions): Promise<GetChannelsResult>
function getChannelsOutput(args: GetChannelsOutputArgs, opts?: InvokeOptions): Output<GetChannelsResult>
def get_channels(id: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
partial_name: Optional[str] = None,
project_id: Optional[str] = None,
skip: Optional[float] = None,
space_id: Optional[str] = None,
take: Optional[float] = None,
opts: Optional[InvokeOptions] = None) -> GetChannelsResult
def get_channels_output(id: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
partial_name: Optional[pulumi.Input[str]] = None,
project_id: 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[GetChannelsResult]
func GetChannels(ctx *Context, args *GetChannelsArgs, opts ...InvokeOption) (*GetChannelsResult, error)
func GetChannelsOutput(ctx *Context, args *GetChannelsOutputArgs, opts ...InvokeOption) GetChannelsResultOutput
> Note: This function is named GetChannels
in the Go SDK.
public static class GetChannels
{
public static Task<GetChannelsResult> InvokeAsync(GetChannelsArgs args, InvokeOptions? opts = null)
public static Output<GetChannelsResult> Invoke(GetChannelsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetChannelsResult> getChannels(GetChannelsArgs args, InvokeOptions options)
public static Output<GetChannelsResult> getChannels(GetChannelsArgs args, InvokeOptions options)
fn::invoke:
function: octopusdeploy:index/getChannels:getChannels
arguments:
# arguments dictionary
The following arguments are supported:
- Id string
- The ID of this resource.
- Ids List<string>
- A filter to search by a list of IDs.
- Partial
Name string - A filter to search by the partial match of a name.
- Project
Id string - A filter to search by a project ID.
- Skip double
- A filter to specify the number of items to skip in the response.
- Space
Id string - The space ID associated with this resource.
- Take double
- A filter to specify the number of items to take (or return) in the response.
- Id string
- The ID of this resource.
- Ids []string
- A filter to search by a list of IDs.
- Partial
Name string - A filter to search by the partial match of a name.
- Project
Id string - A filter to search by a project ID.
- Skip float64
- A filter to specify the number of items to skip in the response.
- Space
Id string - The space ID associated with this resource.
- Take float64
- A filter to specify the number of items to take (or return) in the response.
- id String
- The ID of this resource.
- ids List<String>
- A filter to search by a list of IDs.
- partial
Name String - A filter to search by the partial match of a name.
- project
Id String - A filter to search by a project ID.
- skip Double
- A filter to specify the number of items to skip in the response.
- space
Id String - The space ID associated with this resource.
- take Double
- A filter to specify the number of items to take (or return) in the response.
- id string
- The ID of this resource.
- ids string[]
- A filter to search by a list of IDs.
- partial
Name string - A filter to search by the partial match of a name.
- project
Id string - A filter to search by a project ID.
- skip number
- A filter to specify the number of items to skip in the response.
- space
Id string - The space ID associated with this resource.
- take number
- A filter to specify the number of items to take (or return) in the response.
- id str
- The ID of this resource.
- ids Sequence[str]
- A filter to search by a list of IDs.
- partial_
name str - A filter to search by the partial match of a name.
- project_
id str - A filter to search by a project ID.
- skip float
- A filter to specify the number of items to skip in the response.
- space_
id str - The space ID associated with this resource.
- take float
- A filter to specify the number of items to take (or return) in the response.
- id String
- The ID of this resource.
- ids List<String>
- A filter to search by a list of IDs.
- partial
Name String - A filter to search by the partial match of a name.
- project
Id String - A filter to search by a project ID.
- skip Number
- A filter to specify the number of items to skip in the response.
- space
Id String - The space ID associated with this resource.
- take Number
- A filter to specify the number of items to take (or return) in the response.
getChannels Result
The following output properties are available:
- Channels
List<Get
Channels Channel> - A channel that matches the specified filter(s).
- Id string
- The ID of this resource.
- Space
Id string - The space ID associated with this resource.
- Ids List<string>
- A filter to search by a list of IDs.
- Partial
Name string - A filter to search by the partial match of a name.
- Project
Id string - A filter to search by a project ID.
- 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.
- Channels
[]Get
Channels Channel - A channel that matches the specified filter(s).
- Id string
- The ID of this resource.
- Space
Id string - The space ID associated with this resource.
- Ids []string
- A filter to search by a list of IDs.
- Partial
Name string - A filter to search by the partial match of a name.
- Project
Id string - A filter to search by a project ID.
- 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.
- channels
List<Get
Channels Channel> - A channel that matches the specified filter(s).
- id String
- The ID of this resource.
- space
Id String - The space ID associated with this resource.
- ids List<String>
- A filter to search by a list of IDs.
- partial
Name String - A filter to search by the partial match of a name.
- project
Id String - A filter to search by a project ID.
- 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.
- channels
Get
Channels Channel[] - A channel that matches the specified filter(s).
- id string
- The ID of this resource.
- space
Id string - The space ID associated with this resource.
- ids string[]
- A filter to search by a list of IDs.
- partial
Name string - A filter to search by the partial match of a name.
- project
Id string - A filter to search by a project ID.
- 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.
- channels
Sequence[Get
Channels Channel] - A channel that matches the specified filter(s).
- id str
- The ID of this resource.
- space_
id str - The space ID associated with this resource.
- ids Sequence[str]
- A filter to search by a list of IDs.
- partial_
name str - A filter to search by the partial match of a name.
- project_
id str - A filter to search by a project ID.
- 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.
- channels List<Property Map>
- A channel that matches the specified filter(s).
- id String
- The ID of this resource.
- space
Id String - The space ID associated with this resource.
- ids List<String>
- A filter to search by a list of IDs.
- partial
Name String - A filter to search by the partial match of a name.
- project
Id String - A filter to search by a project ID.
- 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
GetChannelsChannel
- Description string
- Id string
- Is
Default bool - Lifecycle
Id string - Name string
- Project
Id string - Rules
List<Get
Channels Channel Rule> - Space
Id string - List<string>
- Description string
- Id string
- Is
Default bool - Lifecycle
Id string - Name string
- Project
Id string - Rules
[]Get
Channels Channel Rule - Space
Id string - []string
- description String
- id String
- is
Default Boolean - lifecycle
Id String - name String
- project
Id String - rules
List<Get
Channels Channel Rule> - space
Id String - List<String>
- description string
- id string
- is
Default boolean - lifecycle
Id string - name string
- project
Id string - rules
Get
Channels Channel Rule[] - space
Id string - string[]
- description str
- id str
- is_
default bool - lifecycle_
id str - name str
- project_
id str - rules
Sequence[Get
Channels Channel Rule] - space_
id str - Sequence[str]
- description String
- id String
- is
Default Boolean - lifecycle
Id String - name String
- project
Id String - rules List<Property Map>
- space
Id String - List<String>
GetChannelsChannelRule
- Action
Packages List<GetChannels Channel Rule Action Package> - Id string
- Tag string
- Version
Range string
- Action
Packages []GetChannels Channel Rule Action Package - Id string
- Tag string
- Version
Range string
- action
Packages List<GetChannels Channel Rule Action Package> - id String
- tag String
- version
Range String
- action
Packages GetChannels Channel Rule Action Package[] - id string
- tag string
- version
Range string
- action
Packages List<Property Map> - id String
- tag String
- version
Range String
GetChannelsChannelRuleActionPackage
- Deployment
Action string - Package
Reference string
- Deployment
Action string - Package
Reference string
- deployment
Action String - package
Reference String
- deployment
Action string - package
Reference string
- deployment
Action String - package
Reference String
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