Wavefront v1.4.0, May 19 23
Wavefront v1.4.0, May 19 23
wavefront.getMaintenanceWindow
Explore with Pulumi AI
Use this data source to get information about a Wavefront maintenance window by its ID.
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Wavefront = Pulumi.Wavefront;
return await Deployment.RunAsync(() =>
{
var example = Wavefront.GetMaintenanceWindow.Invoke(new()
{
Id = "sample-maintenance-window-id",
});
});
package main
import (
"github.com/pulumi/pulumi-wavefront/sdk/go/wavefront"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := wavefront.LookupMaintenanceWindow(ctx, &wavefront.LookupMaintenanceWindowArgs{
Id: "sample-maintenance-window-id",
}, nil)
if err != nil {
return err
}
return nil
})
}
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) {
final var example = WavefrontFunctions.getMaintenanceWindow(GetMaintenanceWindowArgs.builder()
.id("sample-maintenance-window-id")
.build());
}
}
import pulumi
import pulumi_wavefront as wavefront
example = wavefront.get_maintenance_window(id="sample-maintenance-window-id")
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";
const example = wavefront.getMaintenanceWindow({
id: "sample-maintenance-window-id",
});
variables:
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:
- Created
Epoch intMillis The timestamp in epoch milliseconds indicating when the maintenance window is created.
- Creator
Id string The ID of the user who created the maintenance window.
- Customer
Id string The ID of the customer in Wavefront.
- End
Time intIn Seconds The end time in seconds after 1 Jan 1970 GMT.
- Event
Name string 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_names
and must have tags matching the specification formed byrelevant_host_tags
andrelevant_host_tags_anded
in for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_names
or matchrelevant_host_tags
andrelevant_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_names
is required.- Relevant
Host 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_names
is 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_names
is 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 string 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 string
The title of the maintenance window.
- Updated
Epoch intMillis The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- Updater
Id 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 string The ID of the user who created the maintenance window.
- Customer
Id string The ID of the customer in Wavefront.
- End
Time intIn Seconds The end time in seconds after 1 Jan 1970 GMT.
- Event
Name string 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_names
and must have tags matching the specification formed byrelevant_host_tags
andrelevant_host_tags_anded
in for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_names
or matchrelevant_host_tags
andrelevant_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_names
is required.- Relevant
Host []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_names
is 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_names
is 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 string 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 string
The title of the maintenance window.
- Updated
Epoch intMillis The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- Updater
Id string The ID of the user who updated the maintenance window.
- created
Epoch IntegerMillis The timestamp in epoch milliseconds indicating when the maintenance window is created.
- creator
Id String The ID of the user who created the maintenance window.
- customer
Id String The ID of the customer in Wavefront.
- end
Time IntegerIn Seconds The end time in seconds after 1 Jan 1970 GMT.
- event
Name String The event name of the maintenance window.
- host
Tag BooleanGroup Host Names Group Anded If set to
true
, the source or host must be inrelevant_host_names
and must have tags matching the specification formed byrelevant_host_tags
andrelevant_host_tags_anded
in for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_names
or matchrelevant_host_tags
andrelevant_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_names
is required.- relevant
Host 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_names
is 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_names
is 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
.- running
State String The running state of the maintenance window.
- sort
Attr Integer - start
Time IntegerIn Seconds The start time in seconds after 1 Jan 1970 GMT.
- title String
The title of the maintenance window.
- updated
Epoch IntegerMillis The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- updater
Id String The ID of the user who updated the maintenance window.
- created
Epoch numberMillis The timestamp in epoch milliseconds indicating when the maintenance window is created.
- creator
Id string The ID of the user who created the maintenance window.
- customer
Id string The ID of the customer in Wavefront.
- end
Time numberIn Seconds The end time in seconds after 1 Jan 1970 GMT.
- event
Name string The event name of the maintenance window.
- host
Tag booleanGroup Host Names Group Anded If set to
true
, the source or host must be inrelevant_host_names
and must have tags matching the specification formed byrelevant_host_tags
andrelevant_host_tags_anded
in for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_names
or matchrelevant_host_tags
andrelevant_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_names
is required.- relevant
Host 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_names
is 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_names
is 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
.- running
State string The running state of the maintenance window.
- sort
Attr number - start
Time numberIn Seconds The start time in seconds after 1 Jan 1970 GMT.
- title string
The title of the maintenance window.
- updated
Epoch numberMillis The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- updater
Id 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_names
and must have tags matching the specification formed byrelevant_host_tags
andrelevant_host_tags_anded
in for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_names
or matchrelevant_host_tags
andrelevant_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_names
is 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_names
is 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_names
is 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.
- created
Epoch NumberMillis The timestamp in epoch milliseconds indicating when the maintenance window is created.
- creator
Id String The ID of the user who created the maintenance window.
- customer
Id String The ID of the customer in Wavefront.
- end
Time NumberIn Seconds The end time in seconds after 1 Jan 1970 GMT.
- event
Name String The event name of the maintenance window.
- host
Tag BooleanGroup Host Names Group Anded If set to
true
, the source or host must be inrelevant_host_names
and must have tags matching the specification formed byrelevant_host_tags
andrelevant_host_tags_anded
in for this maintenance window to apply. If set to false, the source or host must either be inrelevant_host_names
or matchrelevant_host_tags
andrelevant_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_names
is required.- relevant
Host 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_names
is 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_names
is 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
.- running
State String The running state of the maintenance window.
- sort
Attr Number - start
Time NumberIn Seconds The start time in seconds after 1 Jan 1970 GMT.
- title String
The title of the maintenance window.
- updated
Epoch NumberMillis The timestamp in epoch milliseconds indicating when the maintenance window is updated.
- updater
Id 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.