avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getScheduler
Explore with Pulumi AI
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI: avi.Scheduler” sidebar_current: “docs-avi-datasource-scheduler” description: |- Get information of Avi Scheduler.
avi.Scheduler
This data source is used to to get avi.Scheduler objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const fooScheduler = avi.getScheduler({
name: "foo",
uuid: "scheduler-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
import pulumi
import pulumi_avi as avi
foo_scheduler = avi.get_scheduler(name="foo",
uuid="scheduler-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avi.LookupScheduler(ctx, &avi.LookupSchedulerArgs{
Name: pulumi.StringRef("foo"),
Uuid: pulumi.StringRef("scheduler-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Avi = Pulumi.Avi;
return await Deployment.RunAsync(() =>
{
var fooScheduler = Avi.GetScheduler.Invoke(new()
{
Name = "foo",
Uuid = "scheduler-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.avi.AviFunctions;
import com.pulumi.avi.inputs.GetSchedulerArgs;
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 fooScheduler = AviFunctions.getScheduler(GetSchedulerArgs.builder()
.name("foo")
.uuid("scheduler-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.build());
}
}
variables:
fooScheduler:
fn::invoke:
function: avi:getScheduler
arguments:
name: foo
uuid: scheduler-f9cf6b3e-a411-436f-95e2-2982ba2b217b
Using getScheduler
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 getScheduler(args: GetSchedulerArgs, opts?: InvokeOptions): Promise<GetSchedulerResult>
function getSchedulerOutput(args: GetSchedulerOutputArgs, opts?: InvokeOptions): Output<GetSchedulerResult>
def get_scheduler(id: Optional[str] = None,
name: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSchedulerResult
def get_scheduler_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tenant_ref: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSchedulerResult]
func LookupScheduler(ctx *Context, args *LookupSchedulerArgs, opts ...InvokeOption) (*LookupSchedulerResult, error)
func LookupSchedulerOutput(ctx *Context, args *LookupSchedulerOutputArgs, opts ...InvokeOption) LookupSchedulerResultOutput
> Note: This function is named LookupScheduler
in the Go SDK.
public static class GetScheduler
{
public static Task<GetSchedulerResult> InvokeAsync(GetSchedulerArgs args, InvokeOptions? opts = null)
public static Output<GetSchedulerResult> Invoke(GetSchedulerInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetSchedulerResult> getScheduler(GetSchedulerArgs args, InvokeOptions options)
public static Output<GetSchedulerResult> getScheduler(GetSchedulerArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getScheduler:getScheduler
arguments:
# arguments dictionary
The following arguments are supported:
- id str
- name str
- Search Scheduler by name.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Search Scheduler by uuid.
getScheduler Result
The following output properties are available:
- Backup
Config stringRef - Backup configuration to be executed by this scheduler. It is a reference to an object of type backupconfiguration. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes List<GetScheduler Configpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Enabled string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- End
Date stringTime - Scheduler end date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Frequency string
- Frequency at which custom scheduler will run. Allowed values are 0-60. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Frequency
Unit string - Unit at which custom scheduler will run. Enum options - SCHEDULER_FREQUENCY_UNIT_MIN, SCHEDULER_FREQUENCY_UNIT_HOUR, SCHEDULER_FREQUENCY_UNIT_DAY, SCHEDULER_FREQUENCY_UNIT_WEEK, SCHEDULER_FREQUENCY_UNIT_MONTH. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Name string
- Name of scheduler. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Run
Mode string - Scheduler run mode. Enum options - RUN_MODE_PERIODIC, RUN_MODE_AT, RUN_MODE_NOW. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Run
Script stringRef - Control script to be executed by this scheduler. It is a reference to an object of type alertscriptconfig. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Scheduler
Action string - Define scheduler action. Enum options - SCHEDULER_ACTION_RUN_A_SCRIPT, SCHEDULER_ACTION_BACKUP. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Start
Date stringTime - Scheduler start date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Backup
Config stringRef - Backup configuration to be executed by this scheduler. It is a reference to an object of type backupconfiguration. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes []GetScheduler Configpb Attribute - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Enabled string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- End
Date stringTime - Scheduler end date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Frequency string
- Frequency at which custom scheduler will run. Allowed values are 0-60. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Frequency
Unit string - Unit at which custom scheduler will run. Enum options - SCHEDULER_FREQUENCY_UNIT_MIN, SCHEDULER_FREQUENCY_UNIT_HOUR, SCHEDULER_FREQUENCY_UNIT_DAY, SCHEDULER_FREQUENCY_UNIT_WEEK, SCHEDULER_FREQUENCY_UNIT_MONTH. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Name string
- Name of scheduler. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Run
Mode string - Scheduler run mode. Enum options - RUN_MODE_PERIODIC, RUN_MODE_AT, RUN_MODE_NOW. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Run
Script stringRef - Control script to be executed by this scheduler. It is a reference to an object of type alertscriptconfig. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Scheduler
Action string - Define scheduler action. Enum options - SCHEDULER_ACTION_RUN_A_SCRIPT, SCHEDULER_ACTION_BACKUP. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Start
Date stringTime - Scheduler start date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- backup
Config StringRef - Backup configuration to be executed by this scheduler. It is a reference to an object of type backupconfiguration. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<GetScheduler Configpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- enabled String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- end
Date StringTime - Scheduler end date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- frequency String
- Frequency at which custom scheduler will run. Allowed values are 0-60. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- frequency
Unit String - Unit at which custom scheduler will run. Enum options - SCHEDULER_FREQUENCY_UNIT_MIN, SCHEDULER_FREQUENCY_UNIT_HOUR, SCHEDULER_FREQUENCY_UNIT_DAY, SCHEDULER_FREQUENCY_UNIT_WEEK, SCHEDULER_FREQUENCY_UNIT_MONTH. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- name String
- Name of scheduler. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- run
Mode String - Scheduler run mode. Enum options - RUN_MODE_PERIODIC, RUN_MODE_AT, RUN_MODE_NOW. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- run
Script StringRef - Control script to be executed by this scheduler. It is a reference to an object of type alertscriptconfig. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- scheduler
Action String - Define scheduler action. Enum options - SCHEDULER_ACTION_RUN_A_SCRIPT, SCHEDULER_ACTION_BACKUP. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- start
Date StringTime - Scheduler start date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- backup
Config stringRef - Backup configuration to be executed by this scheduler. It is a reference to an object of type backupconfiguration. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes GetScheduler Configpb Attribute[] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- enabled string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- end
Date stringTime - Scheduler end date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- frequency string
- Frequency at which custom scheduler will run. Allowed values are 0-60. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- frequency
Unit string - Unit at which custom scheduler will run. Enum options - SCHEDULER_FREQUENCY_UNIT_MIN, SCHEDULER_FREQUENCY_UNIT_HOUR, SCHEDULER_FREQUENCY_UNIT_DAY, SCHEDULER_FREQUENCY_UNIT_WEEK, SCHEDULER_FREQUENCY_UNIT_MONTH. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id string
- name string
- Name of scheduler. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- run
Mode string - Scheduler run mode. Enum options - RUN_MODE_PERIODIC, RUN_MODE_AT, RUN_MODE_NOW. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- run
Script stringRef - Control script to be executed by this scheduler. It is a reference to an object of type alertscriptconfig. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- scheduler
Action string - Define scheduler action. Enum options - SCHEDULER_ACTION_RUN_A_SCRIPT, SCHEDULER_ACTION_BACKUP. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- start
Date stringTime - Scheduler start date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- backup_
config_ strref - Backup configuration to be executed by this scheduler. It is a reference to an object of type backupconfiguration. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb_
attributes Sequence[GetScheduler Configpb Attribute] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- enabled str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- end_
date_ strtime - Scheduler end date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- frequency str
- Frequency at which custom scheduler will run. Allowed values are 0-60. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- frequency_
unit str - Unit at which custom scheduler will run. Enum options - SCHEDULER_FREQUENCY_UNIT_MIN, SCHEDULER_FREQUENCY_UNIT_HOUR, SCHEDULER_FREQUENCY_UNIT_DAY, SCHEDULER_FREQUENCY_UNIT_WEEK, SCHEDULER_FREQUENCY_UNIT_MONTH. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id str
- name str
- Name of scheduler. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- run_
mode str - Scheduler run mode. Enum options - RUN_MODE_PERIODIC, RUN_MODE_AT, RUN_MODE_NOW. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- run_
script_ strref - Control script to be executed by this scheduler. It is a reference to an object of type alertscriptconfig. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- scheduler_
action str - Define scheduler action. Enum options - SCHEDULER_ACTION_RUN_A_SCRIPT, SCHEDULER_ACTION_BACKUP. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- start_
date_ strtime - Scheduler start date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- backup
Config StringRef - Backup configuration to be executed by this scheduler. It is a reference to an object of type backupconfiguration. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<Property Map> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- enabled String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- end
Date StringTime - Scheduler end date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- frequency String
- Frequency at which custom scheduler will run. Allowed values are 0-60. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- frequency
Unit String - Unit at which custom scheduler will run. Enum options - SCHEDULER_FREQUENCY_UNIT_MIN, SCHEDULER_FREQUENCY_UNIT_HOUR, SCHEDULER_FREQUENCY_UNIT_DAY, SCHEDULER_FREQUENCY_UNIT_WEEK, SCHEDULER_FREQUENCY_UNIT_MONTH. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- name String
- Name of scheduler. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- run
Mode String - Scheduler run mode. Enum options - RUN_MODE_PERIODIC, RUN_MODE_AT, RUN_MODE_NOW. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- run
Script StringRef - Control script to be executed by this scheduler. It is a reference to an object of type alertscriptconfig. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- scheduler
Action String - Define scheduler action. Enum options - SCHEDULER_ACTION_RUN_A_SCRIPT, SCHEDULER_ACTION_BACKUP. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- start
Date StringTime - Scheduler start date and time. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
Supporting Types
GetSchedulerConfigpbAttribute
- Version string
- Version string
- version String
- version string
- version str
- version String
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.