@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.94 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Returns the properties of a lab Schedule.
*
* Uses Azure REST API version 2023-06-07.
*
* Other available API versions: 2021-10-01-preview, 2021-11-15-preview, 2022-08-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native labservices [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getSchedule(args: GetScheduleArgs, opts?: pulumi.InvokeOptions): Promise<GetScheduleResult>;
export interface GetScheduleArgs {
/**
* The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
*/
labName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
*/
scheduleName: string;
}
/**
* Schedule for automatically turning virtual machines in a lab on and off at specified times.
*/
export interface GetScheduleResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* Notes for this schedule.
*/
readonly notes?: string;
/**
* Current provisioning state of the schedule.
*/
readonly provisioningState: string;
/**
* The recurrence pattern of the scheduled actions.
*/
readonly recurrencePattern?: outputs.labservices.RecurrencePatternResponse;
/**
* Error details of last operation done on schedule.
*/
readonly resourceOperationError: outputs.labservices.ResourceOperationErrorResponse;
/**
* When lab user virtual machines will be started. Timestamp offsets will be ignored and timeZoneId is used instead.
*/
readonly startAt?: string;
/**
* When lab user virtual machines will be stopped. Timestamp offsets will be ignored and timeZoneId is used instead.
*/
readonly stopAt: string;
/**
* Metadata pertaining to creation and last modification of the schedule.
*/
readonly systemData: outputs.labservices.SystemDataResponse;
/**
* The IANA timezone id for the schedule.
*/
readonly timeZoneId: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Returns the properties of a lab Schedule.
*
* Uses Azure REST API version 2023-06-07.
*
* Other available API versions: 2021-10-01-preview, 2021-11-15-preview, 2022-08-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native labservices [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getScheduleOutput(args: GetScheduleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetScheduleResult>;
export interface GetScheduleOutputArgs {
/**
* The name of the lab that uniquely identifies it within containing lab plan. Used in resource URIs.
*/
labName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The name of the schedule that uniquely identifies it within containing lab. Used in resource URIs.
*/
scheduleName: pulumi.Input<string>;
}