1. Packages
  2. Wavefront
  3. API Docs
  4. getMaintenanceWindow
Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi

wavefront.getMaintenanceWindow

Explore with Pulumi AI

wavefront logo
Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: wavefront:index/getMaintenanceWindow:getMaintenanceWindow
      arguments:
        # arguments dictionary

    The 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:

    CreatedEpochMillis int
    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.
    EndTimeInSeconds int
    The end time in seconds after 1 Jan 1970 GMT.
    EventName string
    The event name of the maintenance window.
    HostTagGroupHostNamesGroupAnded bool
    If set to true, the source or host must be in relevant_host_names and must have tags matching the specification formed by relevant_host_tags and relevant_host_tags_anded in for this maintenance window to apply. If set to false, the source or host must either be in relevant_host_names or match relevant_host_tags and relevant_host_tags_anded. Default value is false.
    Id string
    The ID of the maintenance window.
    Reason string
    The reason for the maintenance window.
    RelevantCustomerTags 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, or relevant_host_names is required.
    RelevantHostNames List<string>
    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, or relevant_host_names is required.
    RelevantHostTags 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, or relevant_host_names is required.
    RelevantHostTagsAnded bool
    Whether to AND source or host tags listed in relevant_host_tags. If set to true, the source or host must contain all tags for the maintenance window to apply. If set to false, the tags are OR'ed, and the source or host must contain one of the tags. Default value is false.
    RunningState string
    The running state of the maintenance window.
    SortAttr int
    StartTimeInSeconds int
    The start time in seconds after 1 Jan 1970 GMT.
    Title string
    The title of the maintenance window.
    UpdatedEpochMillis int
    The timestamp in epoch milliseconds indicating when the maintenance window is updated.
    UpdaterId string
    The ID of the user who updated the maintenance window.
    CreatedEpochMillis int
    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.
    EndTimeInSeconds int
    The end time in seconds after 1 Jan 1970 GMT.
    EventName string
    The event name of the maintenance window.
    HostTagGroupHostNamesGroupAnded bool
    If set to true, the source or host must be in relevant_host_names and must have tags matching the specification formed by relevant_host_tags and relevant_host_tags_anded in for this maintenance window to apply. If set to false, the source or host must either be in relevant_host_names or match relevant_host_tags and relevant_host_tags_anded. Default value is false.
    Id string
    The ID of the maintenance window.
    Reason string
    The reason for the maintenance window.
    RelevantCustomerTags []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, or relevant_host_names is required.
    RelevantHostNames []string
    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, or relevant_host_names is required.
    RelevantHostTags []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, or relevant_host_names is required.
    RelevantHostTagsAnded bool
    Whether to AND source or host tags listed in relevant_host_tags. If set to true, the source or host must contain all tags for the maintenance window to apply. If set to false, the tags are OR'ed, and the source or host must contain one of the tags. Default value is false.
    RunningState string
    The running state of the maintenance window.
    SortAttr int
    StartTimeInSeconds int
    The start time in seconds after 1 Jan 1970 GMT.
    Title string
    The title of the maintenance window.
    UpdatedEpochMillis int
    The timestamp in epoch milliseconds indicating when the maintenance window is updated.
    UpdaterId string
    The ID of the user who updated the maintenance window.
    createdEpochMillis Integer
    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.
    endTimeInSeconds Integer
    The end time in seconds after 1 Jan 1970 GMT.
    eventName String
    The event name of the maintenance window.
    hostTagGroupHostNamesGroupAnded Boolean
    If set to true, the source or host must be in relevant_host_names and must have tags matching the specification formed by relevant_host_tags and relevant_host_tags_anded in for this maintenance window to apply. If set to false, the source or host must either be in relevant_host_names or match relevant_host_tags and relevant_host_tags_anded. Default value is false.
    id String
    The ID of the maintenance window.
    reason String
    The reason for the maintenance window.
    relevantCustomerTags 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, or relevant_host_names is required.
    relevantHostNames List<String>
    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, or relevant_host_names is required.
    relevantHostTags 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, or relevant_host_names is required.
    relevantHostTagsAnded Boolean
    Whether to AND source or host tags listed in relevant_host_tags. If set to true, the source or host must contain all tags for the maintenance window to apply. If set to false, the tags are OR'ed, and the source or host must contain one of the tags. Default value is false.
    runningState String
    The running state of the maintenance window.
    sortAttr Integer
    startTimeInSeconds Integer
    The start time in seconds after 1 Jan 1970 GMT.
    title String
    The title of the maintenance window.
    updatedEpochMillis Integer
    The timestamp in epoch milliseconds indicating when the maintenance window is updated.
    updaterId String
    The ID of the user who updated the maintenance window.
    createdEpochMillis number
    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.
    endTimeInSeconds number
    The end time in seconds after 1 Jan 1970 GMT.
    eventName string
    The event name of the maintenance window.
    hostTagGroupHostNamesGroupAnded boolean
    If set to true, the source or host must be in relevant_host_names and must have tags matching the specification formed by relevant_host_tags and relevant_host_tags_anded in for this maintenance window to apply. If set to false, the source or host must either be in relevant_host_names or match relevant_host_tags and relevant_host_tags_anded. Default value is false.
    id string
    The ID of the maintenance window.
    reason string
    The reason for the maintenance window.
    relevantCustomerTags 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, or relevant_host_names is required.
    relevantHostNames string[]
    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, or relevant_host_names is required.
    relevantHostTags 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, or relevant_host_names is required.
    relevantHostTagsAnded boolean
    Whether to AND source or host tags listed in relevant_host_tags. If set to true, the source or host must contain all tags for the maintenance window to apply. If set to false, the tags are OR'ed, and the source or host must contain one of the tags. Default value is false.
    runningState string
    The running state of the maintenance window.
    sortAttr number
    startTimeInSeconds number
    The start time in seconds after 1 Jan 1970 GMT.
    title string
    The title of the maintenance window.
    updatedEpochMillis number
    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_millis int
    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_in_seconds int
    The end time in seconds after 1 Jan 1970 GMT.
    event_name str
    The event name of the maintenance window.
    host_tag_group_host_names_group_anded bool
    If set to true, the source or host must be in relevant_host_names and must have tags matching the specification formed by relevant_host_tags and relevant_host_tags_anded in for this maintenance window to apply. If set to false, the source or host must either be in relevant_host_names or match relevant_host_tags and relevant_host_tags_anded. Default value is false.
    id str
    The ID of the maintenance window.
    reason str
    The reason for the maintenance window.
    relevant_customer_tags 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, or relevant_host_names is required.
    relevant_host_names Sequence[str]
    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, or relevant_host_names is required.
    relevant_host_tags 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, or relevant_host_names is required.
    relevant_host_tags_anded bool
    Whether to AND source or host tags listed in relevant_host_tags. If set to true, the source or host must contain all tags for the maintenance window to apply. If set to false, the tags are OR'ed, and the source or host must contain one of the tags. Default value is false.
    running_state str
    The running state of the maintenance window.
    sort_attr int
    start_time_in_seconds int
    The start time in seconds after 1 Jan 1970 GMT.
    title str
    The title of the maintenance window.
    updated_epoch_millis int
    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.
    createdEpochMillis Number
    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.
    endTimeInSeconds Number
    The end time in seconds after 1 Jan 1970 GMT.
    eventName String
    The event name of the maintenance window.
    hostTagGroupHostNamesGroupAnded Boolean
    If set to true, the source or host must be in relevant_host_names and must have tags matching the specification formed by relevant_host_tags and relevant_host_tags_anded in for this maintenance window to apply. If set to false, the source or host must either be in relevant_host_names or match relevant_host_tags and relevant_host_tags_anded. Default value is false.
    id String
    The ID of the maintenance window.
    reason String
    The reason for the maintenance window.
    relevantCustomerTags 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, or relevant_host_names is required.
    relevantHostNames List<String>
    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, or relevant_host_names is required.
    relevantHostTags 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, or relevant_host_names is required.
    relevantHostTagsAnded Boolean
    Whether to AND source or host tags listed in relevant_host_tags. If set to true, the source or host must contain all tags for the maintenance window to apply. If set to false, the tags are OR'ed, and the source or host must contain one of the tags. Default value is false.
    runningState String
    The running state of the maintenance window.
    sortAttr Number
    startTimeInSeconds Number
    The start time in seconds after 1 Jan 1970 GMT.
    title String
    The title of the maintenance window.
    updatedEpochMillis Number
    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 wavefront Terraform Provider.
    wavefront logo
    Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi