GetMaintenanceWindow
mongodbatlas..MaintenanceWindow provides a Maintenance Window entry datasource. Gets information regarding the configured maintenance window for a MongoDB Atlas project.
NOTE: Groups and projects are synonymous terms. You may find
groupIdin the official documentation.
Examples Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testMongodbatlasMaintenanceWindow = new mongodbatlas.MaintenanceWindow("test", {
dayOfWeek: 3,
hourOfDay: 4,
projectId: "<your-project-id>",
});
const testMaintenanceWindow = testMongodbatlasMaintenanceWindow.id.apply(id => mongodbatlas.getMaintenanceWindow({
projectId: id,
}, { async: true }));import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testMongodbatlasMaintenanceWindow = new mongodbatlas.MaintenanceWindow("test", {
projectId: "<your-project-id>",
startAsap: true,
});
const testMaintenanceWindow = testMongodbatlasMaintenanceWindow.id.apply(id => mongodbatlas.getMaintenanceWindow({
projectId: id,
}, { async: true }));Using GetMaintenanceWindow
function getMaintenanceWindow(args: GetMaintenanceWindowArgs, opts?: InvokeOptions): Promise<GetMaintenanceWindowResult>function get_maintenance_window(project_id=None, opts=None)func LookupMaintenanceWindow(ctx *Context, args *LookupMaintenanceWindowArgs, opts ...InvokeOption) (*LookupMaintenanceWindowResult, error)Note: This function is named
LookupMaintenanceWindowin the Go SDK.
public static class GetMaintenanceWindow {
public static Task<GetMaintenanceWindowResult> InvokeAsync(GetMaintenanceWindowArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- project_
id str The unique identifier of the project for the Maintenance Window.
GetMaintenanceWindow Result
The following output properties are available:
- Day
Of intWeek Day of the week when you would like the maintenance window to start as a 1-based integer: S=1, M=2, T=3, W=4, T=5, F=6, S=7.
- Hour
Of intDay Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC).
- Id string
The provider-assigned unique ID for this managed resource.
- Number
Of intDeferrals Number of times the current maintenance event for this project has been deferred, you can set a maximum of 2 deferrals.
- Project
Id string - Start
Asap bool Flag indicating whether project maintenance has been directed to start immediately. If you request that maintenance begin immediately, this field returns true from the time the request was made until the time the maintenance event completes.
- Day
Of intWeek Day of the week when you would like the maintenance window to start as a 1-based integer: S=1, M=2, T=3, W=4, T=5, F=6, S=7.
- Hour
Of intDay Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC).
- Id string
The provider-assigned unique ID for this managed resource.
- Number
Of intDeferrals Number of times the current maintenance event for this project has been deferred, you can set a maximum of 2 deferrals.
- Project
Id string - Start
Asap bool Flag indicating whether project maintenance has been directed to start immediately. If you request that maintenance begin immediately, this field returns true from the time the request was made until the time the maintenance event completes.
- day
Of numberWeek Day of the week when you would like the maintenance window to start as a 1-based integer: S=1, M=2, T=3, W=4, T=5, F=6, S=7.
- hour
Of numberDay Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC).
- id string
The provider-assigned unique ID for this managed resource.
- number
Of numberDeferrals Number of times the current maintenance event for this project has been deferred, you can set a maximum of 2 deferrals.
- project
Id string - start
Asap boolean Flag indicating whether project maintenance has been directed to start immediately. If you request that maintenance begin immediately, this field returns true from the time the request was made until the time the maintenance event completes.
- day_
of_ floatweek Day of the week when you would like the maintenance window to start as a 1-based integer: S=1, M=2, T=3, W=4, T=5, F=6, S=7.
- hour_
of_ floatday Hour of the day when you would like the maintenance window to start. This parameter uses the 24-hour clock, where midnight is 0, noon is 12 (Time zone is UTC).
- id str
The provider-assigned unique ID for this managed resource.
- number_
of_ floatdeferrals Number of times the current maintenance event for this project has been deferred, you can set a maximum of 2 deferrals.
- project_
id str - start_
asap bool Flag indicating whether project maintenance has been directed to start immediately. If you request that maintenance begin immediately, this field returns true from the time the request was made until the time the maintenance event completes.
Package Details
- Repository
- https://github.com/pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
mongodbatlasTerraform Provider.