Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg
nutanix.getNdbMaintenanceWindow
Explore with Pulumi AI
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 dictionaryThe following arguments are supported:
- Id string
- Maintenance window id.
- 
List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Maintenance Window Tag> 
- tags of maintenance window
- Id string
- Maintenance window id.
- 
[]GetNdb Maintenance Window Tag 
- tags of maintenance window
- id String
- Maintenance window id.
- 
List<GetNdb Maintenance Window Tag> 
- tags of maintenance window
- id string
- Maintenance window id.
- 
GetNdb Maintenance Window Tag[] 
- tags of maintenance window
- id str
- Maintenance window id.
- 
Sequence[GetNdb Maintenance Window Tag] 
- tags of maintenance window
- id String
- Maintenance window id.
- 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
- EntityTask List<PiersAssocs Karsenbarg. Nutanix. Outputs. Get Ndb Maintenance Window Entity Task Assoc> 
- entity task association for maintenance window
- Id string
- Name string
- name of maintenance window
- NextRun stringTime 
- next run time for maintenance window to trigger
- OwnerId string
- owner id of maintenance window
- Properties
List<PiersKarsenbarg. Nutanix. Outputs. Get Ndb Maintenance Window Property> 
- properties of maintenance window
- Schedules
List<PiersKarsenbarg. Nutanix. Outputs. Get Ndb Maintenance Window Schedule> 
- schedule of maintenance window
- Status string
- status of maintennace window
- 
List<PiersKarsenbarg. Nutanix. Outputs. Get Ndb Maintenance Window Tag> 
- 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
- EntityTask []GetAssocs Ndb Maintenance Window Entity Task Assoc 
- entity task association for maintenance window
- Id string
- Name string
- name of maintenance window
- NextRun stringTime 
- next run time for maintenance window to trigger
- OwnerId string
- owner id of maintenance window
- Properties
[]GetNdb Maintenance Window Property 
- properties of maintenance window
- Schedules
[]GetNdb Maintenance Window Schedule 
- schedule of maintenance window
- Status string
- status of maintennace window
- 
[]GetNdb Maintenance Window Tag 
- 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
- entityTask List<GetAssocs Ndb Maintenance Window Entity Task Assoc> 
- entity task association for maintenance window
- id String
- name String
- name of maintenance window
- nextRun StringTime 
- next run time for maintenance window to trigger
- ownerId String
- owner id of maintenance window
- properties
List<GetNdb Maintenance Window Property> 
- properties of maintenance window
- schedules
List<GetNdb Maintenance Window Schedule> 
- schedule of maintenance window
- status String
- status of maintennace window
- 
List<GetNdb Maintenance Window Tag> 
- 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
- entityTask GetAssocs Ndb Maintenance Window Entity Task Assoc[] 
- entity task association for maintenance window
- id string
- name string
- name of maintenance window
- nextRun stringTime 
- next run time for maintenance window to trigger
- ownerId string
- owner id of maintenance window
- properties
GetNdb Maintenance Window Property[] 
- properties of maintenance window
- schedules
GetNdb Maintenance Window Schedule[] 
- schedule of maintenance window
- status string
- status of maintennace window
- 
GetNdb Maintenance Window Tag[] 
- 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_ Sequence[Getassocs Ndb Maintenance Window Entity Task Assoc] 
- entity task association for maintenance window
- id str
- name str
- name of maintenance window
- next_run_ strtime 
- next run time for maintenance window to trigger
- owner_id str
- owner id of maintenance window
- properties
Sequence[GetNdb Maintenance Window Property] 
- properties of maintenance window
- schedules
Sequence[GetNdb Maintenance Window Schedule] 
- schedule of maintenance window
- status str
- status of maintennace window
- 
Sequence[GetNdb Maintenance Window Tag] 
- 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
- entityTask List<Property Map>Assocs 
- entity task association for maintenance window
- id String
- name String
- name of maintenance window
- nextRun StringTime 
- 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
- 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.
- MaintenanceWindow stringId 
- MaintenanceWindow stringOwner Id 
- Name string
- name of maintenance window
- OwnerId string
- owner id of maintenance window
- Payloads
List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Maintenance Window Entity Task Assoc Payload> 
- Properties
List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Maintenance Window Entity Task Assoc Property> 
- properties of maintenance window
- Status string
- status of maintennace window
- 
List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Maintenance Window Entity Task Assoc Tag> 
- 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.
- MaintenanceWindow stringId 
- MaintenanceWindow stringOwner Id 
- Name string
- name of maintenance window
- OwnerId string
- owner id of maintenance window
- Payloads
[]GetNdb Maintenance Window Entity Task Assoc Payload 
- Properties
[]GetNdb Maintenance Window Entity Task Assoc Property 
- properties of maintenance window
- Status string
- status of maintennace window
- 
[]GetNdb Maintenance Window Entity Task Assoc Tag 
- 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.
- maintenanceWindow StringId 
- maintenanceWindow StringOwner Id 
- name String
- name of maintenance window
- ownerId String
- owner id of maintenance window
- payloads
List<GetNdb Maintenance Window Entity Task Assoc Payload> 
- properties
List<GetNdb Maintenance Window Entity Task Assoc Property> 
- properties of maintenance window
- status String
- status of maintennace window
- 
List<GetNdb Maintenance Window Entity Task Assoc Tag> 
- 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.
- maintenanceWindow stringId 
- maintenanceWindow stringOwner Id 
- name string
- name of maintenance window
- ownerId string
- owner id of maintenance window
- payloads
GetNdb Maintenance Window Entity Task Assoc Payload[] 
- properties
GetNdb Maintenance Window Entity Task Assoc Property[] 
- properties of maintenance window
- status string
- status of maintennace window
- 
GetNdb Maintenance Window Entity Task Assoc Tag[] 
- 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_ strid 
- maintenance_window_ strowner_ id 
- name str
- name of maintenance window
- owner_id str
- owner id of maintenance window
- payloads
Sequence[GetNdb Maintenance Window Entity Task Assoc Payload] 
- properties
Sequence[GetNdb Maintenance Window Entity Task Assoc Property] 
- properties of maintenance window
- status str
- status of maintennace window
- 
Sequence[GetNdb Maintenance Window Entity Task Assoc Tag] 
- 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.
- maintenanceWindow StringId 
- maintenanceWindow StringOwner Id 
- 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
- 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
- post_command str
- pre_command str
- postCommand String
- preCommand String
GetNdbMaintenanceWindowEntityTaskAssocProperty       
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
- entity_id str
- entity_type str
- tag_id str
- tag_name str
- value str
- entityId String
- entityType String
- tagId String
- tagName String
- value String
GetNdbMaintenanceWindowProperty    
GetNdbMaintenanceWindowSchedule    
- DayOf stringWeek 
- Duration int
- Hour int
- Minute int
- Recurrence string
- Threshold string
- Timezone string
- timezone
- WeekOf intMonth 
- StartTime string
- DayOf stringWeek 
- Duration int
- Hour int
- Minute int
- Recurrence string
- Threshold string
- Timezone string
- timezone
- WeekOf intMonth 
- StartTime string
- dayOf StringWeek 
- duration Integer
- hour Integer
- minute Integer
- recurrence String
- threshold String
- timezone String
- timezone
- weekOf IntegerMonth 
- startTime String
- dayOf stringWeek 
- duration number
- hour number
- minute number
- recurrence string
- threshold string
- timezone string
- timezone
- weekOf numberMonth 
- startTime string
- day_of_ strweek 
- duration int
- hour int
- minute int
- recurrence str
- threshold str
- timezone str
- timezone
- week_of_ intmonth 
- start_time str
- dayOf StringWeek 
- duration Number
- hour Number
- minute Number
- recurrence String
- threshold String
- timezone String
- timezone
- weekOf NumberMonth 
- 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
- entity_id str
- entity_type str
- tag_id str
- tag_name str
- value str
- 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 nutanixTerraform Provider.
