1. Packages
  2. Nutanix
  3. API Docs
  4. getNdbMaintenanceWindow
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

nutanix.getNdbMaintenanceWindow

Explore with Pulumi AI

nutanix logo
Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg

    Describes a maintenance window in Nutanix Database Service

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pulumi/nutanix";
    
    const window = nutanix.getNdbMaintenanceWindow({
        id: "{{ maintenance_window_id }}",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    window = nutanix.get_ndb_maintenance_window(id="{{ maintenance_window_id }}")
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := nutanix.LookupNdbMaintenanceWindow(ctx, &nutanix.LookupNdbMaintenanceWindowArgs{
    			Id: "{{ maintenance_window_id }}",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = Pulumi.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var window = Nutanix.GetNdbMaintenanceWindow.Invoke(new()
        {
            Id = "{{ maintenance_window_id }}",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NutanixFunctions;
    import com.pulumi.nutanix.inputs.GetNdbMaintenanceWindowArgs;
    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 window = NutanixFunctions.getNdbMaintenanceWindow(GetNdbMaintenanceWindowArgs.builder()
                .id("{{ maintenance_window_id }}")
                .build());
    
        }
    }
    
    variables:
      window:
        fn::invoke:
          Function: nutanix:getNdbMaintenanceWindow
          Arguments:
            id: '{{ maintenance_window_id }}'
    

    Using getNdbMaintenanceWindow

    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 getNdbMaintenanceWindow(args: GetNdbMaintenanceWindowArgs, opts?: InvokeOptions): Promise<GetNdbMaintenanceWindowResult>
    function getNdbMaintenanceWindowOutput(args: GetNdbMaintenanceWindowOutputArgs, opts?: InvokeOptions): Output<GetNdbMaintenanceWindowResult>
    def get_ndb_maintenance_window(id: Optional[str] = None,
                                   tags: Optional[Sequence[GetNdbMaintenanceWindowTag]] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetNdbMaintenanceWindowResult
    def get_ndb_maintenance_window_output(id: Optional[pulumi.Input[str]] = None,
                                   tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetNdbMaintenanceWindowTagArgs]]]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetNdbMaintenanceWindowResult]
    func LookupNdbMaintenanceWindow(ctx *Context, args *LookupNdbMaintenanceWindowArgs, opts ...InvokeOption) (*LookupNdbMaintenanceWindowResult, error)
    func LookupNdbMaintenanceWindowOutput(ctx *Context, args *LookupNdbMaintenanceWindowOutputArgs, opts ...InvokeOption) LookupNdbMaintenanceWindowResultOutput

    > Note: This function is named LookupNdbMaintenanceWindow in the Go SDK.

    public static class GetNdbMaintenanceWindow 
    {
        public static Task<GetNdbMaintenanceWindowResult> InvokeAsync(GetNdbMaintenanceWindowArgs args, InvokeOptions? opts = null)
        public static Output<GetNdbMaintenanceWindowResult> Invoke(GetNdbMaintenanceWindowInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNdbMaintenanceWindowResult> getNdbMaintenanceWindow(GetNdbMaintenanceWindowArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: nutanix:index/getNdbMaintenanceWindow:getNdbMaintenanceWindow
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Maintenance window id.
    Tags List<PiersKarsenbarg.Nutanix.Inputs.GetNdbMaintenanceWindowTag>
    tags of maintenance window
    Id string
    Maintenance window id.
    Tags []GetNdbMaintenanceWindowTag
    tags of maintenance window
    id String
    Maintenance window id.
    tags List<GetNdbMaintenanceWindowTag>
    tags of maintenance window
    id string
    Maintenance window id.
    tags GetNdbMaintenanceWindowTag[]
    tags of maintenance window
    id str
    Maintenance window id.
    tags Sequence[GetNdbMaintenanceWindowTag]
    tags of maintenance window
    id String
    Maintenance window id.
    tags List<Property Map>
    tags of maintenance window

    getNdbMaintenanceWindow Result

    The following output properties are available:

    AccessLevel string
    access level
    DateCreated string
    created date of maintenance window
    DateModified string
    modified date of maintenance window
    Description string
    description of maintenance window
    EntityTaskAssocs List<PiersKarsenbarg.Nutanix.Outputs.GetNdbMaintenanceWindowEntityTaskAssoc>
    entity task association for maintenance window
    Id string
    Name string
    name of maintenance window
    NextRunTime string
    next run time for maintenance window to trigger
    OwnerId string
    owner id of maintenance window
    Properties List<PiersKarsenbarg.Nutanix.Outputs.GetNdbMaintenanceWindowProperty>
    properties of maintenance window
    Schedules List<PiersKarsenbarg.Nutanix.Outputs.GetNdbMaintenanceWindowSchedule>
    schedule of maintenance window
    Status string
    status of maintennace window
    Tags List<PiersKarsenbarg.Nutanix.Outputs.GetNdbMaintenanceWindowTag>
    tags of maintenance window
    Timezone string
    timezone
    AccessLevel string
    access level
    DateCreated string
    created date of maintenance window
    DateModified string
    modified date of maintenance window
    Description string
    description of maintenance window
    EntityTaskAssocs []GetNdbMaintenanceWindowEntityTaskAssoc
    entity task association for maintenance window
    Id string
    Name string
    name of maintenance window
    NextRunTime string
    next run time for maintenance window to trigger
    OwnerId string
    owner id of maintenance window
    Properties []GetNdbMaintenanceWindowProperty
    properties of maintenance window
    Schedules []GetNdbMaintenanceWindowSchedule
    schedule of maintenance window
    Status string
    status of maintennace window
    Tags []GetNdbMaintenanceWindowTag
    tags of maintenance window
    Timezone string
    timezone
    accessLevel String
    access level
    dateCreated String
    created date of maintenance window
    dateModified String
    modified date of maintenance window
    description String
    description of maintenance window
    entityTaskAssocs List<GetNdbMaintenanceWindowEntityTaskAssoc>
    entity task association for maintenance window
    id String
    name String
    name of maintenance window
    nextRunTime String
    next run time for maintenance window to trigger
    ownerId String
    owner id of maintenance window
    properties List<GetNdbMaintenanceWindowProperty>
    properties of maintenance window
    schedules List<GetNdbMaintenanceWindowSchedule>
    schedule of maintenance window
    status String
    status of maintennace window
    tags List<GetNdbMaintenanceWindowTag>
    tags of maintenance window
    timezone String
    timezone
    accessLevel string
    access level
    dateCreated string
    created date of maintenance window
    dateModified string
    modified date of maintenance window
    description string
    description of maintenance window
    entityTaskAssocs GetNdbMaintenanceWindowEntityTaskAssoc[]
    entity task association for maintenance window
    id string
    name string
    name of maintenance window
    nextRunTime string
    next run time for maintenance window to trigger
    ownerId string
    owner id of maintenance window
    properties GetNdbMaintenanceWindowProperty[]
    properties of maintenance window
    schedules GetNdbMaintenanceWindowSchedule[]
    schedule of maintenance window
    status string
    status of maintennace window
    tags GetNdbMaintenanceWindowTag[]
    tags of maintenance window
    timezone string
    timezone
    access_level str
    access level
    date_created str
    created date of maintenance window
    date_modified str
    modified date of maintenance window
    description str
    description of maintenance window
    entity_task_assocs Sequence[GetNdbMaintenanceWindowEntityTaskAssoc]
    entity task association for maintenance window
    id str
    name str
    name of maintenance window
    next_run_time str
    next run time for maintenance window to trigger
    owner_id str
    owner id of maintenance window
    properties Sequence[GetNdbMaintenanceWindowProperty]
    properties of maintenance window
    schedules Sequence[GetNdbMaintenanceWindowSchedule]
    schedule of maintenance window
    status str
    status of maintennace window
    tags Sequence[GetNdbMaintenanceWindowTag]
    tags of maintenance window
    timezone str
    timezone
    accessLevel String
    access level
    dateCreated String
    created date of maintenance window
    dateModified String
    modified date of maintenance window
    description String
    description of maintenance window
    entityTaskAssocs List<Property Map>
    entity task association for maintenance window
    id String
    name String
    name of maintenance window
    nextRunTime String
    next run time for maintenance window to trigger
    ownerId String
    owner id of maintenance window
    properties List<Property Map>
    properties of maintenance window
    schedules List<Property Map>
    schedule of maintenance window
    status String
    status of maintennace window
    tags List<Property Map>
    tags of maintenance window
    timezone String
    timezone

    Supporting Types

    GetNdbMaintenanceWindowEntityTaskAssoc

    AccessLevel string
    access level
    DateCreated string
    created date of maintenance window
    DateModified string
    modified date of maintenance window
    Description string
    description of maintenance window
    Entity string
    EntityId string
    EntityType string
    Id string
    Maintenance window id.
    MaintenanceWindowId string
    MaintenanceWindowOwnerId string
    Name string
    name of maintenance window
    OwnerId string
    owner id of maintenance window
    Payloads List<PiersKarsenbarg.Nutanix.Inputs.GetNdbMaintenanceWindowEntityTaskAssocPayload>
    Properties List<PiersKarsenbarg.Nutanix.Inputs.GetNdbMaintenanceWindowEntityTaskAssocProperty>
    properties of maintenance window
    Status string
    status of maintennace window
    Tags List<PiersKarsenbarg.Nutanix.Inputs.GetNdbMaintenanceWindowEntityTaskAssocTag>
    tags of maintenance window
    TaskType string
    AccessLevel string
    access level
    DateCreated string
    created date of maintenance window
    DateModified string
    modified date of maintenance window
    Description string
    description of maintenance window
    Entity string
    EntityId string
    EntityType string
    Id string
    Maintenance window id.
    MaintenanceWindowId string
    MaintenanceWindowOwnerId string
    Name string
    name of maintenance window
    OwnerId string
    owner id of maintenance window
    Payloads []GetNdbMaintenanceWindowEntityTaskAssocPayload
    Properties []GetNdbMaintenanceWindowEntityTaskAssocProperty
    properties of maintenance window
    Status string
    status of maintennace window
    Tags []GetNdbMaintenanceWindowEntityTaskAssocTag
    tags of maintenance window
    TaskType string
    accessLevel String
    access level
    dateCreated String
    created date of maintenance window
    dateModified String
    modified date of maintenance window
    description String
    description of maintenance window
    entity String
    entityId String
    entityType String
    id String
    Maintenance window id.
    maintenanceWindowId String
    maintenanceWindowOwnerId String
    name String
    name of maintenance window
    ownerId String
    owner id of maintenance window
    payloads List<GetNdbMaintenanceWindowEntityTaskAssocPayload>
    properties List<GetNdbMaintenanceWindowEntityTaskAssocProperty>
    properties of maintenance window
    status String
    status of maintennace window
    tags List<GetNdbMaintenanceWindowEntityTaskAssocTag>
    tags of maintenance window
    taskType String
    accessLevel string
    access level
    dateCreated string
    created date of maintenance window
    dateModified string
    modified date of maintenance window
    description string
    description of maintenance window
    entity string
    entityId string
    entityType string
    id string
    Maintenance window id.
    maintenanceWindowId string
    maintenanceWindowOwnerId string
    name string
    name of maintenance window
    ownerId string
    owner id of maintenance window
    payloads GetNdbMaintenanceWindowEntityTaskAssocPayload[]
    properties GetNdbMaintenanceWindowEntityTaskAssocProperty[]
    properties of maintenance window
    status string
    status of maintennace window
    tags GetNdbMaintenanceWindowEntityTaskAssocTag[]
    tags of maintenance window
    taskType string
    access_level str
    access level
    date_created str
    created date of maintenance window
    date_modified str
    modified date of maintenance window
    description str
    description of maintenance window
    entity str
    entity_id str
    entity_type str
    id str
    Maintenance window id.
    maintenance_window_id str
    maintenance_window_owner_id str
    name str
    name of maintenance window
    owner_id str
    owner id of maintenance window
    payloads Sequence[GetNdbMaintenanceWindowEntityTaskAssocPayload]
    properties Sequence[GetNdbMaintenanceWindowEntityTaskAssocProperty]
    properties of maintenance window
    status str
    status of maintennace window
    tags Sequence[GetNdbMaintenanceWindowEntityTaskAssocTag]
    tags of maintenance window
    task_type str
    accessLevel String
    access level
    dateCreated String
    created date of maintenance window
    dateModified String
    modified date of maintenance window
    description String
    description of maintenance window
    entity String
    entityId String
    entityType String
    id String
    Maintenance window id.
    maintenanceWindowId String
    maintenanceWindowOwnerId String
    name String
    name of maintenance window
    ownerId String
    owner id of maintenance window
    payloads List<Property Map>
    properties List<Property Map>
    properties of maintenance window
    status String
    status of maintennace window
    tags List<Property Map>
    tags of maintenance window
    taskType String

    GetNdbMaintenanceWindowEntityTaskAssocPayload

    GetNdbMaintenanceWindowEntityTaskAssocPayloadPrePostCommand

    PostCommand string
    PreCommand string
    PostCommand string
    PreCommand string
    postCommand String
    preCommand String
    postCommand string
    preCommand string
    postCommand String
    preCommand String

    GetNdbMaintenanceWindowEntityTaskAssocProperty

    Name string
    name of maintenance window
    Value string
    Name string
    name of maintenance window
    Value string
    name String
    name of maintenance window
    value String
    name string
    name of maintenance window
    value string
    name str
    name of maintenance window
    value str
    name String
    name of maintenance window
    value String

    GetNdbMaintenanceWindowEntityTaskAssocTag

    EntityId string
    EntityType string
    TagId string
    TagName string
    Value string
    EntityId string
    EntityType string
    TagId string
    TagName string
    Value string
    entityId String
    entityType String
    tagId String
    tagName String
    value String
    entityId string
    entityType string
    tagId string
    tagName string
    value string
    entityId String
    entityType String
    tagId String
    tagName String
    value String

    GetNdbMaintenanceWindowProperty

    Name string
    name of maintenance window
    Value string
    Name string
    name of maintenance window
    Value string
    name String
    name of maintenance window
    value String
    name string
    name of maintenance window
    value string
    name str
    name of maintenance window
    value str
    name String
    name of maintenance window
    value String

    GetNdbMaintenanceWindowSchedule

    DayOfWeek string
    Duration int
    Hour int
    Minute int
    Recurrence string
    Threshold string
    Timezone string
    timezone
    WeekOfMonth int
    StartTime string
    DayOfWeek string
    Duration int
    Hour int
    Minute int
    Recurrence string
    Threshold string
    Timezone string
    timezone
    WeekOfMonth int
    StartTime string
    dayOfWeek String
    duration Integer
    hour Integer
    minute Integer
    recurrence String
    threshold String
    timezone String
    timezone
    weekOfMonth Integer
    startTime String
    dayOfWeek string
    duration number
    hour number
    minute number
    recurrence string
    threshold string
    timezone string
    timezone
    weekOfMonth number
    startTime string
    dayOfWeek String
    duration Number
    hour Number
    minute Number
    recurrence String
    threshold String
    timezone String
    timezone
    weekOfMonth Number
    startTime String

    GetNdbMaintenanceWindowTag

    EntityId string
    EntityType string
    TagId string
    TagName string
    Value string
    EntityId string
    EntityType string
    TagId string
    TagName string
    Value string
    entityId String
    entityType String
    tagId String
    tagName String
    value String
    entityId string
    entityType string
    tagId string
    tagName string
    value string
    entityId String
    entityType String
    tagId String
    tagName String
    value String

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg