1. Packages
  2. Grafana Cloud
  3. API Docs
  4. k6
  5. getSchedules
Grafana v2.12.0 published on Friday, Oct 17, 2025 by pulumiverse

grafana.k6.getSchedules

Deploy with Pulumi
grafana logo
Grafana v2.12.0 published on Friday, Oct 17, 2025 by pulumiverse

    Retrieves all k6 schedules.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    resources:
      schedulesProject:
        type: grafana:k6:Project
        name: schedules_project
        properties:
          name: Terraform Schedules Test Project
      schedulesLoadTest:
        type: grafana:k6:LoadTest
        name: schedules_load_test
        properties:
          projectId: ${schedulesProject.id}
          name: Terraform Test Load Test for Schedules
          script: |
            export default function() {
              console.log('Hello from k6 schedules test!');
            }        
        options:
          dependsOn:
            - ${schedulesProject}
      schedulesLoadTest2:
        type: grafana:k6:LoadTest
        name: schedules_load_test_2
        properties:
          projectId: ${schedulesProject.id}
          name: Terraform Test Load Test for Schedules (2)
          script: |
            export default function() {
              console.log('Hello from k6 schedules test!');
            }        
        options:
          dependsOn:
            - ${schedulesProject}
      testSchedule1:
        type: grafana:k6:Schedule
        name: test_schedule_1
        properties:
          loadTestId: ${schedulesLoadTest.id}
          starts: 2029-12-25T10:00:00Z
          recurrenceRule:
            - frequency: MONTHLY
              interval: 15
              count: 100
        options:
          dependsOn:
            - ${schedulesLoadTest}
      testSchedule2:
        type: grafana:k6:Schedule
        name: test_schedule_2
        properties:
          loadTestId: ${schedulesLoadTest2.id}
          starts: 2023-12-26T14:00:00Z
          recurrenceRule:
            - frequency: WEEKLY
              interval: 2
              until: 2047-01-31T23:59:59Z
        options:
          dependsOn:
            - ${schedulesLoadTest2}
    variables:
      fromLoadTestId:
        fn::invoke:
          function: grafana:k6:getSchedules
          arguments: {}
    

    Using getSchedules

    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 getSchedules(opts?: InvokeOptions): Promise<GetSchedulesResult>
    function getSchedulesOutput(opts?: InvokeOptions): Output<GetSchedulesResult>
    def get_schedules(opts: Optional[InvokeOptions] = None) -> GetSchedulesResult
    def get_schedules_output(opts: Optional[InvokeOptions] = None) -> Output[GetSchedulesResult]
    func GetSchedules(ctx *Context, opts ...InvokeOption) (*GetSchedulesResult, error)
    func GetSchedulesOutput(ctx *Context, opts ...InvokeOption) GetSchedulesResultOutput

    > Note: This function is named GetSchedules in the Go SDK.

    public static class GetSchedules 
    {
        public static Task<GetSchedulesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetSchedulesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchedulesResult> getSchedules(InvokeOptions options)
    public static Output<GetSchedulesResult> getSchedules(InvokeOptions options)
    
    fn::invoke:
      function: grafana:k6/getSchedules:getSchedules
      arguments:
        # arguments dictionary

    getSchedules Result

    The following output properties are available:

    Id string
    The identifier for this data source.
    Schedules List<Pulumiverse.Grafana.K6.Outputs.GetSchedulesSchedule>
    List of k6 schedules.
    Id string
    The identifier for this data source.
    Schedules []GetSchedulesSchedule
    List of k6 schedules.
    id String
    The identifier for this data source.
    schedules List<GetSchedulesSchedule>
    List of k6 schedules.
    id string
    The identifier for this data source.
    schedules GetSchedulesSchedule[]
    List of k6 schedules.
    id str
    The identifier for this data source.
    schedules Sequence[GetSchedulesSchedule]
    List of k6 schedules.
    id String
    The identifier for this data source.
    schedules List<Property Map>
    List of k6 schedules.

    Supporting Types

    GetSchedulesSchedule

    GetSchedulesScheduleRecurrenceRule

    Bydays List<string>
    Count int
    Frequency string
    Interval int
    Until string
    Bydays []string
    Count int
    Frequency string
    Interval int
    Until string
    bydays List<String>
    count Integer
    frequency String
    interval Integer
    until String
    bydays string[]
    count number
    frequency string
    interval number
    until string
    bydays Sequence[str]
    count int
    frequency str
    interval int
    until str
    bydays List<String>
    count Number
    frequency String
    interval Number
    until String

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v2.12.0 published on Friday, Oct 17, 2025 by pulumiverse
      Meet Neo: Your AI Platform Teammate