Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getNdbSnapshots
Explore with Pulumi AI
List all snapshots present in Nutanix Database Service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const snaps = nutanix.getNdbSnapshots({
filters: [{
timeMachineId: "{{ time_machine_id }}",
}],
});
import pulumi
import pulumi_nutanix as nutanix
snaps = nutanix.get_ndb_snapshots(filters=[{
"time_machine_id": "{{ time_machine_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.GetNdbSnapshots(ctx, &nutanix.GetNdbSnapshotsArgs{
Filters: []nutanix.GetNdbSnapshotsFilter{
{
TimeMachineId: pulumi.StringRef("{{ time_machine_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 snaps = Nutanix.GetNdbSnapshots.Invoke(new()
{
Filters = new[]
{
new Nutanix.Inputs.GetNdbSnapshotsFilterInputArgs
{
TimeMachineId = "{{ time_machine_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.GetNdbSnapshotsArgs;
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 snaps = NutanixFunctions.getNdbSnapshots(GetNdbSnapshotsArgs.builder()
.filters(GetNdbSnapshotsFilterArgs.builder()
.timeMachineId("{{ time_machine_id }}")
.build())
.build());
}
}
variables:
snaps:
fn::invoke:
Function: nutanix:getNdbSnapshots
Arguments:
filters:
- timeMachineId: '{{ time_machine_id }}'
Attribute Reference
snapshots
: List of snapshots
snapshots
id
: name of snapshotdescription
: description of snapshotproperties
: propertiesowner_id
: owner iddate_created
: created datedate_modified
: modified dateproperties
: propertiestags
: tagssnapshot_uuid
: snapshot uuidnx_cluster_id
: nx cluster idprotection_domain_id
: protection domainparent_snapshot_id
: parent snapshot iddatabase_node_id
: database node idapp_info_version
: App info versionstatus
: statustype
: typeapplicable_types
: Applicable typessnapshot_timestamp
: snapshot timeStampmetadata
: metadata of snapshotsoftware_snapshot_id
: software snapshot idsoftware_database_snapshot
: software database snapshotdbserver_storage_metadata_version
: dbserver storage metadata versionsantised_from_snapshot_id
: sanitized snapshot idtimezone
: timezoneprocessed
: processeddatabase_snapshot
: database snapshotfrom_timestamp
: from timestampto_timestamp
: to timestampdbserver_id
: dbserver iddbserver_name
: dbserver namedbserver_ip
:dbserver ipreplicated_snapshots
: replicated snapshotssoftware_snapshot
: software snapshotsantised_snapshots
:santised snapshotssnapshot_family
: snapshot familysnapshot_timestamp_date
: snapshot timestamp datelcm_config
: LCM configparent_snapshot
: parent snapshotsnapshot_size
: snapshot size
See detailed information in NDB Snapshots.
Using getNdbSnapshots
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 getNdbSnapshots(args: GetNdbSnapshotsArgs, opts?: InvokeOptions): Promise<GetNdbSnapshotsResult>
function getNdbSnapshotsOutput(args: GetNdbSnapshotsOutputArgs, opts?: InvokeOptions): Output<GetNdbSnapshotsResult>
def get_ndb_snapshots(filters: Optional[Sequence[GetNdbSnapshotsFilter]] = None,
opts: Optional[InvokeOptions] = None) -> GetNdbSnapshotsResult
def get_ndb_snapshots_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNdbSnapshotsFilterArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNdbSnapshotsResult]
func GetNdbSnapshots(ctx *Context, args *GetNdbSnapshotsArgs, opts ...InvokeOption) (*GetNdbSnapshotsResult, error)
func GetNdbSnapshotsOutput(ctx *Context, args *GetNdbSnapshotsOutputArgs, opts ...InvokeOption) GetNdbSnapshotsResultOutput
> Note: This function is named GetNdbSnapshots
in the Go SDK.
public static class GetNdbSnapshots
{
public static Task<GetNdbSnapshotsResult> InvokeAsync(GetNdbSnapshotsArgs args, InvokeOptions? opts = null)
public static Output<GetNdbSnapshotsResult> Invoke(GetNdbSnapshotsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNdbSnapshotsResult> getNdbSnapshots(GetNdbSnapshotsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nutanix:index/getNdbSnapshots:getNdbSnapshots
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Snapshots Filter> - filters help to fetch the snapshots based on input
- Filters
[]Get
Ndb Snapshots Filter - filters help to fetch the snapshots based on input
- filters
List<Get
Ndb Snapshots Filter> - filters help to fetch the snapshots based on input
- filters
Get
Ndb Snapshots Filter[] - filters help to fetch the snapshots based on input
- filters
Sequence[Get
Ndb Snapshots Filter] - filters help to fetch the snapshots based on input
- filters List<Property Map>
- filters help to fetch the snapshots based on input
getNdbSnapshots Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Snapshots
List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Snapshots Snapshot> - Filters
List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Snapshots Filter>
- Id string
- The provider-assigned unique ID for this managed resource.
- Snapshots
[]Get
Ndb Snapshots Snapshot - Filters
[]Get
Ndb Snapshots Filter
- id String
- The provider-assigned unique ID for this managed resource.
- snapshots
List<Get
Ndb Snapshots Snapshot> - filters
List<Get
Ndb Snapshots Filter>
- id string
- The provider-assigned unique ID for this managed resource.
- snapshots
Get
Ndb Snapshots Snapshot[] - filters
Get
Ndb Snapshots Filter[]
- id str
- The provider-assigned unique ID for this managed resource.
- snapshots
Sequence[Get
Ndb Snapshots Snapshot] - filters
Sequence[Get
Ndb Snapshots Filter]
- id String
- The provider-assigned unique ID for this managed resource.
- snapshots List<Property Map>
- filters List<Property Map>
Supporting Types
GetNdbSnapshotsFilter
- Time
Machine stringId - Fetches all the snapshots for a given time machine
- Time
Machine stringId - Fetches all the snapshots for a given time machine
- time
Machine StringId - Fetches all the snapshots for a given time machine
- time
Machine stringId - Fetches all the snapshots for a given time machine
- time_
machine_ strid - Fetches all the snapshots for a given time machine
- time
Machine StringId - Fetches all the snapshots for a given time machine
GetNdbSnapshotsSnapshot
- App
Info stringVersion - Applicable
Types List<string> - Database
Node stringId - Database
Snapshot bool - Date
Created string - Date
Modified string - Dbserver
Id string - Dbserver
Ip string - Dbserver
Name string - Dbserver
Storage intMetadata Version - Description string
- From
Timestamp string - Id string
- Lcm
Configs List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Snapshots Snapshot Lcm Config> - Name string
- Nx
Cluster stringId - Parent
Snapshot bool - Parent
Snapshot stringId - Processed bool
- Properties
List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Snapshots Snapshot Property> - List of all the properties
- Protection
Domain stringId - Replicated
Snapshots List<string> - Santized bool
- Santized
From stringSnapshot Id - Santized
Snapshots string - Snapshot
Family string - Snapshot
Size double - Snapshot
Timestamp string - Snapshot
Timestamp intDate - Snapshot
Uuid string - Software
Database boolSnapshot - Software
Snapshot string - Software
Snapshot stringId - Status string
- List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Snapshots Snapshot Tag> - Time
Machine stringId - Fetches all the snapshots for a given time machine
- Timezone string
- To
Timestamp string - Type string
- App
Info stringVersion - Applicable
Types []string - Database
Node stringId - Database
Snapshot bool - Date
Created string - Date
Modified string - Dbserver
Id string - Dbserver
Ip string - Dbserver
Name string - Dbserver
Storage intMetadata Version - Description string
- From
Timestamp string - Id string
- Lcm
Configs []GetNdb Snapshots Snapshot Lcm Config - Name string
- Nx
Cluster stringId - Parent
Snapshot bool - Parent
Snapshot stringId - Processed bool
- Properties
[]Get
Ndb Snapshots Snapshot Property - List of all the properties
- Protection
Domain stringId - Replicated
Snapshots []string - Santized bool
- Santized
From stringSnapshot Id - Santized
Snapshots string - Snapshot
Family string - Snapshot
Size float64 - Snapshot
Timestamp string - Snapshot
Timestamp intDate - Snapshot
Uuid string - Software
Database boolSnapshot - Software
Snapshot string - Software
Snapshot stringId - Status string
- []Get
Ndb Snapshots Snapshot Tag - Time
Machine stringId - Fetches all the snapshots for a given time machine
- Timezone string
- To
Timestamp string - Type string
- app
Info StringVersion - applicable
Types List<String> - database
Node StringId - database
Snapshot Boolean - date
Created String - date
Modified String - dbserver
Id String - dbserver
Ip String - dbserver
Name String - dbserver
Storage IntegerMetadata Version - description String
- from
Timestamp String - id String
- lcm
Configs List<GetNdb Snapshots Snapshot Lcm Config> - name String
- nx
Cluster StringId - parent
Snapshot Boolean - parent
Snapshot StringId - processed Boolean
- properties
List<Get
Ndb Snapshots Snapshot Property> - List of all the properties
- protection
Domain StringId - replicated
Snapshots List<String> - santized Boolean
- santized
From StringSnapshot Id - santized
Snapshots String - snapshot
Family String - snapshot
Size Double - snapshot
Timestamp String - snapshot
Timestamp IntegerDate - snapshot
Uuid String - software
Database BooleanSnapshot - software
Snapshot String - software
Snapshot StringId - status String
- List<Get
Ndb Snapshots Snapshot Tag> - time
Machine StringId - Fetches all the snapshots for a given time machine
- timezone String
- to
Timestamp String - type String
- app
Info stringVersion - applicable
Types string[] - database
Node stringId - database
Snapshot boolean - date
Created string - date
Modified string - dbserver
Id string - dbserver
Ip string - dbserver
Name string - dbserver
Storage numberMetadata Version - description string
- from
Timestamp string - id string
- lcm
Configs GetNdb Snapshots Snapshot Lcm Config[] - name string
- nx
Cluster stringId - parent
Snapshot boolean - parent
Snapshot stringId - processed boolean
- properties
Get
Ndb Snapshots Snapshot Property[] - List of all the properties
- protection
Domain stringId - replicated
Snapshots string[] - santized boolean
- santized
From stringSnapshot Id - santized
Snapshots string - snapshot
Family string - snapshot
Size number - snapshot
Timestamp string - snapshot
Timestamp numberDate - snapshot
Uuid string - software
Database booleanSnapshot - software
Snapshot string - software
Snapshot stringId - status string
- Get
Ndb Snapshots Snapshot Tag[] - time
Machine stringId - Fetches all the snapshots for a given time machine
- timezone string
- to
Timestamp string - type string
- app_
info_ strversion - applicable_
types Sequence[str] - database_
node_ strid - database_
snapshot bool - date_
created str - date_
modified str - dbserver_
id str - dbserver_
ip str - dbserver_
name str - dbserver_
storage_ intmetadata_ version - description str
- from_
timestamp str - id str
- lcm_
configs Sequence[GetNdb Snapshots Snapshot Lcm Config] - name str
- nx_
cluster_ strid - parent_
snapshot bool - parent_
snapshot_ strid - processed bool
- properties
Sequence[Get
Ndb Snapshots Snapshot Property] - List of all the properties
- protection_
domain_ strid - replicated_
snapshots Sequence[str] - santized bool
- santized_
from_ strsnapshot_ id - santized_
snapshots str - snapshot_
family str - snapshot_
size float - snapshot_
timestamp str - snapshot_
timestamp_ intdate - snapshot_
uuid str - software_
database_ boolsnapshot - software_
snapshot str - software_
snapshot_ strid - status str
- Sequence[Get
Ndb Snapshots Snapshot Tag] - time_
machine_ strid - Fetches all the snapshots for a given time machine
- timezone str
- to_
timestamp str - type str
- app
Info StringVersion - applicable
Types List<String> - database
Node StringId - database
Snapshot Boolean - date
Created String - date
Modified String - dbserver
Id String - dbserver
Ip String - dbserver
Name String - dbserver
Storage NumberMetadata Version - description String
- from
Timestamp String - id String
- lcm
Configs List<Property Map> - name String
- nx
Cluster StringId - parent
Snapshot Boolean - parent
Snapshot StringId - processed Boolean
- properties List<Property Map>
- List of all the properties
- protection
Domain StringId - replicated
Snapshots List<String> - santized Boolean
- santized
From StringSnapshot Id - santized
Snapshots String - snapshot
Family String - snapshot
Size Number - snapshot
Timestamp String - snapshot
Timestamp NumberDate - snapshot
Uuid String - software
Database BooleanSnapshot - software
Snapshot String - software
Snapshot StringId - status String
- List<Property Map>
- time
Machine StringId - Fetches all the snapshots for a given time machine
- timezone String
- to
Timestamp String - type String
GetNdbSnapshotsSnapshotLcmConfig
- Expiry
Details List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Snapshots Snapshot Lcm Config Expiry Detail> - Post
Delete List<PiersCommands Karsenbarg. Nutanix. Inputs. Get Ndb Snapshots Snapshot Lcm Config Post Delete Command> - Pre
Delete List<PiersCommands Karsenbarg. Nutanix. Inputs. Get Ndb Snapshots Snapshot Lcm Config Pre Delete Command> - Refresh
Details List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Snapshots Snapshot Lcm Config Refresh Detail>
GetNdbSnapshotsSnapshotLcmConfigExpiryDetail
- Delete
Database bool - Delete
Time boolMachine - Delete
Vm bool - Effective
Timestamp string - Expire
In intDays - Expiry
Date stringTimezone - Expiry
Timestamp string - Remind
Before intIn Days - User
Created bool
- Delete
Database bool - Delete
Time boolMachine - Delete
Vm bool - Effective
Timestamp string - Expire
In intDays - Expiry
Date stringTimezone - Expiry
Timestamp string - Remind
Before intIn Days - User
Created bool
- delete
Database Boolean - delete
Time BooleanMachine - delete
Vm Boolean - effective
Timestamp String - expire
In IntegerDays - expiry
Date StringTimezone - expiry
Timestamp String - remind
Before IntegerIn Days - user
Created Boolean
- delete
Database boolean - delete
Time booleanMachine - delete
Vm boolean - effective
Timestamp string - expire
In numberDays - expiry
Date stringTimezone - expiry
Timestamp string - remind
Before numberIn Days - user
Created boolean
- delete_
database bool - delete_
time_ boolmachine - delete_
vm bool - effective_
timestamp str - expire_
in_ intdays - expiry_
date_ strtimezone - expiry_
timestamp str - remind_
before_ intin_ days - user_
created bool
- delete
Database Boolean - delete
Time BooleanMachine - delete
Vm Boolean - effective
Timestamp String - expire
In NumberDays - expiry
Date StringTimezone - expiry
Timestamp String - remind
Before NumberIn Days - user
Created Boolean
GetNdbSnapshotsSnapshotLcmConfigPostDeleteCommand
- Command string
- Command string
- command String
- command string
- command str
- command String
GetNdbSnapshotsSnapshotLcmConfigPreDeleteCommand
- Command string
- Command string
- command String
- command string
- command str
- command String
GetNdbSnapshotsSnapshotLcmConfigRefreshDetail
- Last
Refresh stringDate - Next
Refresh stringDate - Refresh
Date stringTimezone - Refresh
In intDays - Refresh
In intHours - Refresh
In intMonths - Refresh
Time string
- Last
Refresh stringDate - Next
Refresh stringDate - Refresh
Date stringTimezone - Refresh
In intDays - Refresh
In intHours - Refresh
In intMonths - Refresh
Time string
- last
Refresh StringDate - next
Refresh StringDate - refresh
Date StringTimezone - refresh
In IntegerDays - refresh
In IntegerHours - refresh
In IntegerMonths - refresh
Time String
- last
Refresh stringDate - next
Refresh stringDate - refresh
Date stringTimezone - refresh
In numberDays - refresh
In numberHours - refresh
In numberMonths - refresh
Time string
- last
Refresh StringDate - next
Refresh StringDate - refresh
Date StringTimezone - refresh
In NumberDays - refresh
In NumberHours - refresh
In NumberMonths - refresh
Time String
GetNdbSnapshotsSnapshotProperty
- Description string
- Name string
- Ref
Id string - Secure bool
- Value string
- Description string
- Name string
- Ref
Id string - Secure bool
- Value string
- description String
- name String
- ref
Id String - secure Boolean
- value String
- description string
- name string
- ref
Id string - secure boolean
- value string
- description str
- name str
- ref_
id str - secure bool
- value str
- description String
- name String
- ref
Id String - secure Boolean
- value String
GetNdbSnapshotsSnapshotTag
- 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.