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 dictionary
The following arguments are supported:
- Id string
- Maintenance window id.
- List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Maintenance Window Tag> - tags of maintenance window
- Id string
- Maintenance window id.
- []Get
Ndb Maintenance Window Tag - tags of maintenance window
- id String
- Maintenance window id.
- List<Get
Ndb Maintenance Window Tag> - tags of maintenance window
- id string
- Maintenance window id.
- Get
Ndb Maintenance Window Tag[] - tags of maintenance window
- id str
- Maintenance window id.
- Sequence[Get
Ndb 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:
- Access
Level string - access level
- Date
Created string - created date of maintenance window
- Date
Modified string - modified date of maintenance window
- Description string
- description of maintenance window
- Entity
Task 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
- Next
Run stringTime - next run time for maintenance window to trigger
- Owner
Id string - owner id of maintenance window
- Properties
List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Maintenance Window Property> - properties of maintenance window
- Schedules
List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Maintenance Window Schedule> - schedule of maintenance window
- Status string
- status of maintennace window
- List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Maintenance Window Tag> - tags of maintenance window
- Timezone string
- timezone
- Access
Level string - access level
- Date
Created string - created date of maintenance window
- Date
Modified string - modified date of maintenance window
- Description string
- description of maintenance window
- Entity
Task []GetAssocs Ndb Maintenance Window Entity Task Assoc - entity task association for maintenance window
- Id string
- Name string
- name of maintenance window
- Next
Run stringTime - next run time for maintenance window to trigger
- Owner
Id string - owner id of maintenance window
- Properties
[]Get
Ndb Maintenance Window Property - properties of maintenance window
- Schedules
[]Get
Ndb Maintenance Window Schedule - schedule of maintenance window
- Status string
- status of maintennace window
- []Get
Ndb Maintenance Window Tag - tags of maintenance window
- Timezone string
- timezone
- access
Level String - access level
- date
Created String - created date of maintenance window
- date
Modified String - modified date of maintenance window
- description String
- description of maintenance window
- entity
Task List<GetAssocs Ndb Maintenance Window Entity Task Assoc> - entity task association for maintenance window
- id String
- name String
- name of maintenance window
- next
Run StringTime - next run time for maintenance window to trigger
- owner
Id String - owner id of maintenance window
- properties
List<Get
Ndb Maintenance Window Property> - properties of maintenance window
- schedules
List<Get
Ndb Maintenance Window Schedule> - schedule of maintenance window
- status String
- status of maintennace window
- List<Get
Ndb Maintenance Window Tag> - tags of maintenance window
- timezone String
- timezone
- access
Level string - access level
- date
Created string - created date of maintenance window
- date
Modified string - modified date of maintenance window
- description string
- description of maintenance window
- entity
Task GetAssocs Ndb Maintenance Window Entity Task Assoc[] - entity task association for maintenance window
- id string
- name string
- name of maintenance window
- next
Run stringTime - next run time for maintenance window to trigger
- owner
Id string - owner id of maintenance window
- properties
Get
Ndb Maintenance Window Property[] - properties of maintenance window
- schedules
Get
Ndb Maintenance Window Schedule[] - schedule of maintenance window
- status string
- status of maintennace window
- Get
Ndb 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[Get
Ndb Maintenance Window Property] - properties of maintenance window
- schedules
Sequence[Get
Ndb Maintenance Window Schedule] - schedule of maintenance window
- status str
- status of maintennace window
- Sequence[Get
Ndb Maintenance Window Tag] - tags of maintenance window
- timezone str
- timezone
- access
Level String - access level
- date
Created String - created date of maintenance window
- date
Modified String - modified date of maintenance window
- description String
- description of maintenance window
- entity
Task List<Property Map>Assocs - entity task association for maintenance window
- id String
- name String
- name of maintenance window
- next
Run StringTime - next run time for maintenance window to trigger
- owner
Id 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
- Access
Level string - access level
- Date
Created string - created date of maintenance window
- Date
Modified string - modified date of maintenance window
- Description string
- description of maintenance window
- Entity string
- Entity
Id string - Entity
Type string - Id string
- Maintenance window id.
- Maintenance
Window stringId - Maintenance
Window stringOwner Id - Name string
- name of maintenance window
- Owner
Id string - owner id of maintenance window
- Payloads
List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Maintenance Window Entity Task Assoc Payload> - Properties
List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Maintenance Window Entity Task Assoc Property> - properties of maintenance window
- Status string
- status of maintennace window
- List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Maintenance Window Entity Task Assoc Tag> - tags of maintenance window
- Task
Type string
- Access
Level string - access level
- Date
Created string - created date of maintenance window
- Date
Modified string - modified date of maintenance window
- Description string
- description of maintenance window
- Entity string
- Entity
Id string - Entity
Type string - Id string
- Maintenance window id.
- Maintenance
Window stringId - Maintenance
Window stringOwner Id - Name string
- name of maintenance window
- Owner
Id string - owner id of maintenance window
- Payloads
[]Get
Ndb Maintenance Window Entity Task Assoc Payload - Properties
[]Get
Ndb Maintenance Window Entity Task Assoc Property - properties of maintenance window
- Status string
- status of maintennace window
- []Get
Ndb Maintenance Window Entity Task Assoc Tag - tags of maintenance window
- Task
Type string
- access
Level String - access level
- date
Created String - created date of maintenance window
- date
Modified String - modified date of maintenance window
- description String
- description of maintenance window
- entity String
- entity
Id String - entity
Type String - id String
- Maintenance window id.
- maintenance
Window StringId - maintenance
Window StringOwner Id - name String
- name of maintenance window
- owner
Id String - owner id of maintenance window
- payloads
List<Get
Ndb Maintenance Window Entity Task Assoc Payload> - properties
List<Get
Ndb Maintenance Window Entity Task Assoc Property> - properties of maintenance window
- status String
- status of maintennace window
- List<Get
Ndb Maintenance Window Entity Task Assoc Tag> - tags of maintenance window
- task
Type String
- access
Level string - access level
- date
Created string - created date of maintenance window
- date
Modified string - modified date of maintenance window
- description string
- description of maintenance window
- entity string
- entity
Id string - entity
Type string - id string
- Maintenance window id.
- maintenance
Window stringId - maintenance
Window stringOwner Id - name string
- name of maintenance window
- owner
Id string - owner id of maintenance window
- payloads
Get
Ndb Maintenance Window Entity Task Assoc Payload[] - properties
Get
Ndb Maintenance Window Entity Task Assoc Property[] - properties of maintenance window
- status string
- status of maintennace window
- Get
Ndb Maintenance Window Entity Task Assoc Tag[] - tags of maintenance window
- task
Type 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[Get
Ndb Maintenance Window Entity Task Assoc Payload] - properties
Sequence[Get
Ndb Maintenance Window Entity Task Assoc Property] - properties of maintenance window
- status str
- status of maintennace window
- Sequence[Get
Ndb Maintenance Window Entity Task Assoc Tag] - tags of maintenance window
- task_
type str
- access
Level String - access level
- date
Created String - created date of maintenance window
- date
Modified String - modified date of maintenance window
- description String
- description of maintenance window
- entity String
- entity
Id String - entity
Type String - id String
- Maintenance window id.
- maintenance
Window StringId - maintenance
Window StringOwner Id - name String
- name of maintenance window
- owner
Id 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
- task
Type String
GetNdbMaintenanceWindowEntityTaskAssocPayload
GetNdbMaintenanceWindowEntityTaskAssocPayloadPrePostCommand
- Post
Command string - Pre
Command string
- Post
Command string - Pre
Command string
- post
Command String - pre
Command String
- post
Command string - pre
Command string
- post_
command str - pre_
command str
- post
Command String - pre
Command String
GetNdbMaintenanceWindowEntityTaskAssocProperty
GetNdbMaintenanceWindowEntityTaskAssocTag
- Entity
Id string - Entity
Type string - Tag
Id string - Tag
Name string - Value string
- Entity
Id string - Entity
Type string - Tag
Id string - Tag
Name string - Value string
- entity
Id String - entity
Type String - tag
Id String - tag
Name String - value String
- entity
Id string - entity
Type string - tag
Id string - tag
Name string - value string
- entity_
id str - entity_
type str - tag_
id str - tag_
name str - value str
- entity
Id String - entity
Type String - tag
Id String - tag
Name String - value String
GetNdbMaintenanceWindowProperty
GetNdbMaintenanceWindowSchedule
- Day
Of stringWeek - Duration int
- Hour int
- Minute int
- Recurrence string
- Threshold string
- Timezone string
- timezone
- Week
Of intMonth - Start
Time string
- Day
Of stringWeek - Duration int
- Hour int
- Minute int
- Recurrence string
- Threshold string
- Timezone string
- timezone
- Week
Of intMonth - Start
Time string
- day
Of StringWeek - duration Integer
- hour Integer
- minute Integer
- recurrence String
- threshold String
- timezone String
- timezone
- week
Of IntegerMonth - start
Time String
- day
Of stringWeek - duration number
- hour number
- minute number
- recurrence string
- threshold string
- timezone string
- timezone
- week
Of numberMonth - start
Time string
- day_
of_ strweek - duration int
- hour int
- minute int
- recurrence str
- threshold str
- timezone str
- timezone
- week_
of_ intmonth - start_
time str
- day
Of StringWeek - duration Number
- hour Number
- minute Number
- recurrence String
- threshold String
- timezone String
- timezone
- week
Of NumberMonth - start
Time String
GetNdbMaintenanceWindowTag
- Entity
Id string - Entity
Type string - Tag
Id string - Tag
Name string - Value string
- Entity
Id string - Entity
Type string - Tag
Id string - Tag
Name string - Value string
- entity
Id String - entity
Type String - tag
Id String - tag
Name String - value String
- entity
Id string - entity
Type string - tag
Id string - tag
Name string - value string
- entity_
id str - entity_
type str - tag_
id str - tag_
name str - value str
- entity
Id String - entity
Type String - tag
Id String - tag
Name 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.