Wavefront v3.1.8 published on Tuesday, Mar 4, 2025 by Pulumi
wavefront.getMaintenanceWindow
Explore with Pulumi AI
Use this data source to get information about a Wavefront maintenance window by its ID.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";
// Get the information about specific maintenance window.
const example = wavefront.getMaintenanceWindow({
    id: "sample-maintenance-window-id",
});
import pulumi
import pulumi_wavefront as wavefront
# Get the information about specific maintenance window.
example = wavefront.get_maintenance_window(id="sample-maintenance-window-id")
package main
import (
	"github.com/pulumi/pulumi-wavefront/sdk/v3/go/wavefront"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get the information about specific maintenance window.
		_, err := wavefront.LookupMaintenanceWindow(ctx, &wavefront.LookupMaintenanceWindowArgs{
			Id: "sample-maintenance-window-id",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Wavefront = Pulumi.Wavefront;
return await Deployment.RunAsync(() => 
{
    // Get the information about specific maintenance window.
    var example = Wavefront.GetMaintenanceWindow.Invoke(new()
    {
        Id = "sample-maintenance-window-id",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.wavefront.WavefrontFunctions;
import com.pulumi.wavefront.inputs.GetMaintenanceWindowArgs;
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) {
        // Get the information about specific maintenance window.
        final var example = WavefrontFunctions.getMaintenanceWindow(GetMaintenanceWindowArgs.builder()
            .id("sample-maintenance-window-id")
            .build());
    }
}
variables:
  # Get the information about specific maintenance window.
  example:
    fn::invoke:
      function: wavefront:getMaintenanceWindow
      arguments:
        id: sample-maintenance-window-id
Using getMaintenanceWindow
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 getMaintenanceWindow(args: GetMaintenanceWindowArgs, opts?: InvokeOptions): Promise<GetMaintenanceWindowResult>
function getMaintenanceWindowOutput(args: GetMaintenanceWindowOutputArgs, opts?: InvokeOptions): Output<GetMaintenanceWindowResult>def get_maintenance_window(id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetMaintenanceWindowResult
def get_maintenance_window_output(id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetMaintenanceWindowResult]func LookupMaintenanceWindow(ctx *Context, args *LookupMaintenanceWindowArgs, opts ...InvokeOption) (*LookupMaintenanceWindowResult, error)
func LookupMaintenanceWindowOutput(ctx *Context, args *LookupMaintenanceWindowOutputArgs, opts ...InvokeOption) LookupMaintenanceWindowResultOutput> Note: This function is named LookupMaintenanceWindow in the Go SDK.
public static class GetMaintenanceWindow 
{
    public static Task<GetMaintenanceWindowResult> InvokeAsync(GetMaintenanceWindowArgs args, InvokeOptions? opts = null)
    public static Output<GetMaintenanceWindowResult> Invoke(GetMaintenanceWindowInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMaintenanceWindowResult> getMaintenanceWindow(GetMaintenanceWindowArgs args, InvokeOptions options)
public static Output<GetMaintenanceWindowResult> getMaintenanceWindow(GetMaintenanceWindowArgs args, InvokeOptions options)
fn::invoke:
  function: wavefront:index/getMaintenanceWindow:getMaintenanceWindow
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Id string
- The ID of the maintenance window.
- Id string
- The ID of the maintenance window.
- id String
- The ID of the maintenance window.
- id string
- The ID of the maintenance window.
- id str
- The ID of the maintenance window.
- id String
- The ID of the maintenance window.
getMaintenanceWindow Result
The following output properties are available:
- CreatedEpoch intMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is created.
- CreatorId string
- The ID of the user who created the maintenance window.
- CustomerId string
- The ID of the customer in Wavefront.
- EndTime intIn Seconds 
- The end time in seconds after 1 Jan 1970 GMT.
- EventName string
- The event name of the maintenance window.
- HostTag boolGroup Host Names Group Anded 
- If set to true, the source or host must be inrelevant_host_namesand must have tags matching the specification formed byrelevant_host_tagsandrelevant_host_tags_andedin for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_namesor matchrelevant_host_tagsandrelevant_host_tags_anded. Default value isfalse.
- Id string
- The ID of the maintenance window.
- Reason string
- The reason for the maintenance window.
- List<string>
- The list of alert tags whose matching alerts will be put into maintenance because
of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- RelevantHost List<string>Names 
- The list of source or host names that will be put into maintenance because of this
maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- List<string>
- The list of source or host tags whose matching sources or hosts will be put into maintenance
because of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- bool
- Whether to AND source or host tags listed in relevant_host_tags. If set totrue, the source or host must contain all tags for the maintenance window to apply. If set tofalse, the tags are OR'ed, and the source or host must contain one of the tags. Default value isfalse.
- RunningState string
- The running state of the maintenance window.
- SortAttr int
- StartTime intIn Seconds 
- The start time in seconds after 1 Jan 1970 GMT.
- Title string
- The title of the maintenance window.
- UpdatedEpoch intMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- UpdaterId string
- The ID of the user who updated the maintenance window.
- CreatedEpoch intMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is created.
- CreatorId string
- The ID of the user who created the maintenance window.
- CustomerId string
- The ID of the customer in Wavefront.
- EndTime intIn Seconds 
- The end time in seconds after 1 Jan 1970 GMT.
- EventName string
- The event name of the maintenance window.
- HostTag boolGroup Host Names Group Anded 
- If set to true, the source or host must be inrelevant_host_namesand must have tags matching the specification formed byrelevant_host_tagsandrelevant_host_tags_andedin for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_namesor matchrelevant_host_tagsandrelevant_host_tags_anded. Default value isfalse.
- Id string
- The ID of the maintenance window.
- Reason string
- The reason for the maintenance window.
- []string
- The list of alert tags whose matching alerts will be put into maintenance because
of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- RelevantHost []stringNames 
- The list of source or host names that will be put into maintenance because of this
maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- []string
- The list of source or host tags whose matching sources or hosts will be put into maintenance
because of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- bool
- Whether to AND source or host tags listed in relevant_host_tags. If set totrue, the source or host must contain all tags for the maintenance window to apply. If set tofalse, the tags are OR'ed, and the source or host must contain one of the tags. Default value isfalse.
- RunningState string
- The running state of the maintenance window.
- SortAttr int
- StartTime intIn Seconds 
- The start time in seconds after 1 Jan 1970 GMT.
- Title string
- The title of the maintenance window.
- UpdatedEpoch intMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- UpdaterId string
- The ID of the user who updated the maintenance window.
- createdEpoch IntegerMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is created.
- creatorId String
- The ID of the user who created the maintenance window.
- customerId String
- The ID of the customer in Wavefront.
- endTime IntegerIn Seconds 
- The end time in seconds after 1 Jan 1970 GMT.
- eventName String
- The event name of the maintenance window.
- hostTag BooleanGroup Host Names Group Anded 
- If set to true, the source or host must be inrelevant_host_namesand must have tags matching the specification formed byrelevant_host_tagsandrelevant_host_tags_andedin for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_namesor matchrelevant_host_tagsandrelevant_host_tags_anded. Default value isfalse.
- id String
- The ID of the maintenance window.
- reason String
- The reason for the maintenance window.
- List<String>
- The list of alert tags whose matching alerts will be put into maintenance because
of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- relevantHost List<String>Names 
- The list of source or host names that will be put into maintenance because of this
maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- List<String>
- The list of source or host tags whose matching sources or hosts will be put into maintenance
because of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- Boolean
- Whether to AND source or host tags listed in relevant_host_tags. If set totrue, the source or host must contain all tags for the maintenance window to apply. If set tofalse, the tags are OR'ed, and the source or host must contain one of the tags. Default value isfalse.
- runningState String
- The running state of the maintenance window.
- sortAttr Integer
- startTime IntegerIn Seconds 
- The start time in seconds after 1 Jan 1970 GMT.
- title String
- The title of the maintenance window.
- updatedEpoch IntegerMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- updaterId String
- The ID of the user who updated the maintenance window.
- createdEpoch numberMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is created.
- creatorId string
- The ID of the user who created the maintenance window.
- customerId string
- The ID of the customer in Wavefront.
- endTime numberIn Seconds 
- The end time in seconds after 1 Jan 1970 GMT.
- eventName string
- The event name of the maintenance window.
- hostTag booleanGroup Host Names Group Anded 
- If set to true, the source or host must be inrelevant_host_namesand must have tags matching the specification formed byrelevant_host_tagsandrelevant_host_tags_andedin for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_namesor matchrelevant_host_tagsandrelevant_host_tags_anded. Default value isfalse.
- id string
- The ID of the maintenance window.
- reason string
- The reason for the maintenance window.
- string[]
- The list of alert tags whose matching alerts will be put into maintenance because
of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- relevantHost string[]Names 
- The list of source or host names that will be put into maintenance because of this
maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- string[]
- The list of source or host tags whose matching sources or hosts will be put into maintenance
because of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- boolean
- Whether to AND source or host tags listed in relevant_host_tags. If set totrue, the source or host must contain all tags for the maintenance window to apply. If set tofalse, the tags are OR'ed, and the source or host must contain one of the tags. Default value isfalse.
- runningState string
- The running state of the maintenance window.
- sortAttr number
- startTime numberIn Seconds 
- The start time in seconds after 1 Jan 1970 GMT.
- title string
- The title of the maintenance window.
- updatedEpoch numberMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- updaterId string
- The ID of the user who updated the maintenance window.
- created_epoch_ intmillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is created.
- creator_id str
- The ID of the user who created the maintenance window.
- customer_id str
- The ID of the customer in Wavefront.
- end_time_ intin_ seconds 
- The end time in seconds after 1 Jan 1970 GMT.
- event_name str
- The event name of the maintenance window.
- host_tag_ boolgroup_ host_ names_ group_ anded 
- If set to true, the source or host must be inrelevant_host_namesand must have tags matching the specification formed byrelevant_host_tagsandrelevant_host_tags_andedin for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_namesor matchrelevant_host_tagsandrelevant_host_tags_anded. Default value isfalse.
- id str
- The ID of the maintenance window.
- reason str
- The reason for the maintenance window.
- Sequence[str]
- The list of alert tags whose matching alerts will be put into maintenance because
of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- relevant_host_ Sequence[str]names 
- The list of source or host names that will be put into maintenance because of this
maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- Sequence[str]
- The list of source or host tags whose matching sources or hosts will be put into maintenance
because of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- bool
- Whether to AND source or host tags listed in relevant_host_tags. If set totrue, the source or host must contain all tags for the maintenance window to apply. If set tofalse, the tags are OR'ed, and the source or host must contain one of the tags. Default value isfalse.
- running_state str
- The running state of the maintenance window.
- sort_attr int
- start_time_ intin_ seconds 
- The start time in seconds after 1 Jan 1970 GMT.
- title str
- The title of the maintenance window.
- updated_epoch_ intmillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- updater_id str
- The ID of the user who updated the maintenance window.
- createdEpoch NumberMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is created.
- creatorId String
- The ID of the user who created the maintenance window.
- customerId String
- The ID of the customer in Wavefront.
- endTime NumberIn Seconds 
- The end time in seconds after 1 Jan 1970 GMT.
- eventName String
- The event name of the maintenance window.
- hostTag BooleanGroup Host Names Group Anded 
- If set to true, the source or host must be inrelevant_host_namesand must have tags matching the specification formed byrelevant_host_tagsandrelevant_host_tags_andedin for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_namesor matchrelevant_host_tagsandrelevant_host_tags_anded. Default value isfalse.
- id String
- The ID of the maintenance window.
- reason String
- The reason for the maintenance window.
- List<String>
- The list of alert tags whose matching alerts will be put into maintenance because
of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- relevantHost List<String>Names 
- The list of source or host names that will be put into maintenance because of this
maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- List<String>
- The list of source or host tags whose matching sources or hosts will be put into maintenance
because of this maintenance window. At least one of relevant_customer_tags,relevant_host_tags, orrelevant_host_namesis required.
- Boolean
- Whether to AND source or host tags listed in relevant_host_tags. If set totrue, the source or host must contain all tags for the maintenance window to apply. If set tofalse, the tags are OR'ed, and the source or host must contain one of the tags. Default value isfalse.
- runningState String
- The running state of the maintenance window.
- sortAttr Number
- startTime NumberIn Seconds 
- The start time in seconds after 1 Jan 1970 GMT.
- title String
- The title of the maintenance window.
- updatedEpoch NumberMillis 
- The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- updaterId String
- The ID of the user who updated the maintenance window.
Package Details
- Repository
- Wavefront pulumi/pulumi-wavefront
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the wavefrontTerraform Provider.