GitLab v8.5.0 published on Friday, Oct 18, 2024 by Pulumi
gitlab.getPipelineSchedule
Explore with Pulumi AI
The gitlab.PipelineSchedule
data source retrieves information about a gitlab pipeline schedule for a project.
Upstream API: GitLab REST API docs
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const example = gitlab.getPipelineSchedule({
project: "12345",
pipelineScheduleId: 1,
});
import pulumi
import pulumi_gitlab as gitlab
example = gitlab.get_pipeline_schedule(project="12345",
pipeline_schedule_id=1)
package main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := gitlab.LookupPipelineSchedule(ctx, &gitlab.LookupPipelineScheduleArgs{
Project: "12345",
PipelineScheduleId: 1,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var example = GitLab.GetPipelineSchedule.Invoke(new()
{
Project = "12345",
PipelineScheduleId = 1,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.GitlabFunctions;
import com.pulumi.gitlab.inputs.GetPipelineScheduleArgs;
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 = GitlabFunctions.getPipelineSchedule(GetPipelineScheduleArgs.builder()
.project("12345")
.pipelineScheduleId(1)
.build());
}
}
variables:
example:
fn::invoke:
Function: gitlab:getPipelineSchedule
Arguments:
project: '12345'
pipelineScheduleId: 1
Using getPipelineSchedule
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 getPipelineSchedule(args: GetPipelineScheduleArgs, opts?: InvokeOptions): Promise<GetPipelineScheduleResult>
function getPipelineScheduleOutput(args: GetPipelineScheduleOutputArgs, opts?: InvokeOptions): Output<GetPipelineScheduleResult>
def get_pipeline_schedule(cron_timezone: Optional[str] = None,
pipeline_schedule_id: Optional[int] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPipelineScheduleResult
def get_pipeline_schedule_output(cron_timezone: Optional[pulumi.Input[str]] = None,
pipeline_schedule_id: Optional[pulumi.Input[int]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPipelineScheduleResult]
func LookupPipelineSchedule(ctx *Context, args *LookupPipelineScheduleArgs, opts ...InvokeOption) (*LookupPipelineScheduleResult, error)
func LookupPipelineScheduleOutput(ctx *Context, args *LookupPipelineScheduleOutputArgs, opts ...InvokeOption) LookupPipelineScheduleResultOutput
> Note: This function is named LookupPipelineSchedule
in the Go SDK.
public static class GetPipelineSchedule
{
public static Task<GetPipelineScheduleResult> InvokeAsync(GetPipelineScheduleArgs args, InvokeOptions? opts = null)
public static Output<GetPipelineScheduleResult> Invoke(GetPipelineScheduleInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPipelineScheduleResult> getPipelineSchedule(GetPipelineScheduleArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: gitlab:index/getPipelineSchedule:getPipelineSchedule
arguments:
# arguments dictionary
The following arguments are supported:
- Pipeline
Schedule intId - The pipeline schedule id.
- Project string
- The name or id of the project to add the schedule to.
- Cron
Timezone string - The timezone.
- Pipeline
Schedule intId - The pipeline schedule id.
- Project string
- The name or id of the project to add the schedule to.
- Cron
Timezone string - The timezone.
- pipeline
Schedule IntegerId - The pipeline schedule id.
- project String
- The name or id of the project to add the schedule to.
- cron
Timezone String - The timezone.
- pipeline
Schedule numberId - The pipeline schedule id.
- project string
- The name or id of the project to add the schedule to.
- cron
Timezone string - The timezone.
- pipeline_
schedule_ intid - The pipeline schedule id.
- project str
- The name or id of the project to add the schedule to.
- cron_
timezone str - The timezone.
- pipeline
Schedule NumberId - The pipeline schedule id.
- project String
- The name or id of the project to add the schedule to.
- cron
Timezone String - The timezone.
getPipelineSchedule Result
The following output properties are available:
- Active bool
- The activation status of pipeline schedule.
- Created
At string - The datetime of when the schedule was created.
- Cron string
- The cron (e.g.
0 1 * * *
). - Cron
Timezone string - The timezone.
- Description string
- The description of the pipeline schedule.
- Id string
- Last
Pipeline Pulumi.Git Lab. Outputs. Get Pipeline Schedule Last Pipeline - The details of the last pipeline run by the schedule.
- Next
Run stringAt - The datetime of when the schedule will next run.
- Owner
Pulumi.
Git Lab. Outputs. Get Pipeline Schedule Owner - The details of the pipeline schedule owner.
- Pipeline
Schedule intId - The pipeline schedule id.
- Project string
- The name or id of the project to add the schedule to.
- Ref string
- The branch/tag name to be triggered. This will be the full branch reference, for example:
refs/heads/main
, notmain
. - Updated
At string - The datetime of when the schedule was last updated.
- Variables
List<Pulumi.
Git Lab. Outputs. Get Pipeline Schedule Variable> - The list of the pipeline schedule variables.
- Active bool
- The activation status of pipeline schedule.
- Created
At string - The datetime of when the schedule was created.
- Cron string
- The cron (e.g.
0 1 * * *
). - Cron
Timezone string - The timezone.
- Description string
- The description of the pipeline schedule.
- Id string
- Last
Pipeline GetPipeline Schedule Last Pipeline - The details of the last pipeline run by the schedule.
- Next
Run stringAt - The datetime of when the schedule will next run.
- Owner
Get
Pipeline Schedule Owner - The details of the pipeline schedule owner.
- Pipeline
Schedule intId - The pipeline schedule id.
- Project string
- The name or id of the project to add the schedule to.
- Ref string
- The branch/tag name to be triggered. This will be the full branch reference, for example:
refs/heads/main
, notmain
. - Updated
At string - The datetime of when the schedule was last updated.
- Variables
[]Get
Pipeline Schedule Variable Type - The list of the pipeline schedule variables.
- active Boolean
- The activation status of pipeline schedule.
- created
At String - The datetime of when the schedule was created.
- cron String
- The cron (e.g.
0 1 * * *
). - cron
Timezone String - The timezone.
- description String
- The description of the pipeline schedule.
- id String
- last
Pipeline GetPipeline Schedule Last Pipeline - The details of the last pipeline run by the schedule.
- next
Run StringAt - The datetime of when the schedule will next run.
- owner
Get
Pipeline Schedule Owner - The details of the pipeline schedule owner.
- pipeline
Schedule IntegerId - The pipeline schedule id.
- project String
- The name or id of the project to add the schedule to.
- ref String
- The branch/tag name to be triggered. This will be the full branch reference, for example:
refs/heads/main
, notmain
. - updated
At String - The datetime of when the schedule was last updated.
- variables
List<Get
Pipeline Schedule Variable> - The list of the pipeline schedule variables.
- active boolean
- The activation status of pipeline schedule.
- created
At string - The datetime of when the schedule was created.
- cron string
- The cron (e.g.
0 1 * * *
). - cron
Timezone string - The timezone.
- description string
- The description of the pipeline schedule.
- id string
- last
Pipeline GetPipeline Schedule Last Pipeline - The details of the last pipeline run by the schedule.
- next
Run stringAt - The datetime of when the schedule will next run.
- owner
Get
Pipeline Schedule Owner - The details of the pipeline schedule owner.
- pipeline
Schedule numberId - The pipeline schedule id.
- project string
- The name or id of the project to add the schedule to.
- ref string
- The branch/tag name to be triggered. This will be the full branch reference, for example:
refs/heads/main
, notmain
. - updated
At string - The datetime of when the schedule was last updated.
- variables
Get
Pipeline Schedule Variable[] - The list of the pipeline schedule variables.
- active bool
- The activation status of pipeline schedule.
- created_
at str - The datetime of when the schedule was created.
- cron str
- The cron (e.g.
0 1 * * *
). - cron_
timezone str - The timezone.
- description str
- The description of the pipeline schedule.
- id str
- last_
pipeline GetPipeline Schedule Last Pipeline - The details of the last pipeline run by the schedule.
- next_
run_ strat - The datetime of when the schedule will next run.
- owner
Get
Pipeline Schedule Owner - The details of the pipeline schedule owner.
- pipeline_
schedule_ intid - The pipeline schedule id.
- project str
- The name or id of the project to add the schedule to.
- ref str
- The branch/tag name to be triggered. This will be the full branch reference, for example:
refs/heads/main
, notmain
. - updated_
at str - The datetime of when the schedule was last updated.
- variables
Sequence[Get
Pipeline Schedule Variable] - The list of the pipeline schedule variables.
- active Boolean
- The activation status of pipeline schedule.
- created
At String - The datetime of when the schedule was created.
- cron String
- The cron (e.g.
0 1 * * *
). - cron
Timezone String - The timezone.
- description String
- The description of the pipeline schedule.
- id String
- last
Pipeline Property Map - The details of the last pipeline run by the schedule.
- next
Run StringAt - The datetime of when the schedule will next run.
- owner Property Map
- The details of the pipeline schedule owner.
- pipeline
Schedule NumberId - The pipeline schedule id.
- project String
- The name or id of the project to add the schedule to.
- ref String
- The branch/tag name to be triggered. This will be the full branch reference, for example:
refs/heads/main
, notmain
. - updated
At String - The datetime of when the schedule was last updated.
- variables List<Property Map>
- The list of the pipeline schedule variables.
Supporting Types
GetPipelineScheduleLastPipeline
GetPipelineScheduleOwner
GetPipelineScheduleVariable
- Key string
- The key of a variable.
- Value string
- The value of a variable.
- Variable
Type string - The type of a variable, one of: env_var and file.
- Key string
- The key of a variable.
- Value string
- The value of a variable.
- Variable
Type string - The type of a variable, one of: env_var and file.
- key String
- The key of a variable.
- value String
- The value of a variable.
- variable
Type String - The type of a variable, one of: env_var and file.
- key string
- The key of a variable.
- value string
- The value of a variable.
- variable
Type string - The type of a variable, one of: env_var and file.
- key str
- The key of a variable.
- value str
- The value of a variable.
- variable_
type str - The type of a variable, one of: env_var and file.
- key String
- The key of a variable.
- value String
- The value of a variable.
- variable
Type String - The type of a variable, one of: env_var and file.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlab
Terraform Provider.