@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 3.53 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Gets the managed instance's Start/Stop schedule.
*
* Uses Azure REST API version 2023-08-01.
*
* Other available API versions: 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview, 2024-11-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native sql [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getStartStopManagedInstanceSchedule(args: GetStartStopManagedInstanceScheduleArgs, opts?: pulumi.InvokeOptions): Promise<GetStartStopManagedInstanceScheduleResult>;
export interface GetStartStopManagedInstanceScheduleArgs {
/**
* The name of the managed instance.
*/
managedInstanceName: string;
/**
* The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
*/
resourceGroupName: string;
/**
* Name of the managed instance Start/Stop schedule.
*/
startStopScheduleName: string;
}
/**
* Managed instance's Start/Stop schedule.
*/
export interface GetStartStopManagedInstanceScheduleResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* The description of the schedule.
*/
readonly description?: string;
/**
* Resource ID.
*/
readonly id: string;
/**
* Resource name.
*/
readonly name: string;
/**
* Timestamp when the next action will be executed in the corresponding schedule time zone.
*/
readonly nextExecutionTime: string;
/**
* Next action to be executed (Start or Stop)
*/
readonly nextRunAction: string;
/**
* Schedule list.
*/
readonly scheduleList: outputs.sql.ScheduleItemResponse[];
/**
* System data of the scheduled resource.
*/
readonly systemData: outputs.sql.SystemDataResponse;
/**
* The time zone of the schedule.
*/
readonly timeZoneId?: string;
/**
* Resource type.
*/
readonly type: string;
}
/**
* Gets the managed instance's Start/Stop schedule.
*
* Uses Azure REST API version 2023-08-01.
*
* Other available API versions: 2022-08-01-preview, 2022-11-01-preview, 2023-02-01-preview, 2023-05-01-preview, 2023-08-01-preview, 2024-05-01-preview, 2024-11-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native sql [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details.
*/
export declare function getStartStopManagedInstanceScheduleOutput(args: GetStartStopManagedInstanceScheduleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStartStopManagedInstanceScheduleResult>;
export interface GetStartStopManagedInstanceScheduleOutputArgs {
/**
* The name of the managed instance.
*/
managedInstanceName: pulumi.Input<string>;
/**
* The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Name of the managed instance Start/Stop schedule.
*/
startStopScheduleName: pulumi.Input<string>;
}