Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getNdbSnapshot
Explore with Pulumi AI
Describes the snapshot present in Nutanix Database Service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const snaps = nutanix.getNdbSnapshot({
filters: [{
loadReplicatedChildSnapshots: "true",
}],
snapshotId: "{{ snapshot_id }}",
});
import pulumi
import pulumi_nutanix as nutanix
snaps = nutanix.get_ndb_snapshot(filters=[{
"load_replicated_child_snapshots": "true",
}],
snapshot_id="{{ snapshot_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.GetNdbSnapshot(ctx, &nutanix.GetNdbSnapshotArgs{
Filters: []nutanix.GetNdbSnapshotFilter{
{
LoadReplicatedChildSnapshots: pulumi.StringRef("true"),
},
},
SnapshotId: "{{ snapshot_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.GetNdbSnapshot.Invoke(new()
{
Filters = new[]
{
new Nutanix.Inputs.GetNdbSnapshotFilterInputArgs
{
LoadReplicatedChildSnapshots = "true",
},
},
SnapshotId = "{{ snapshot_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.GetNdbSnapshotArgs;
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.getNdbSnapshot(GetNdbSnapshotArgs.builder()
.filters(GetNdbSnapshotFilterArgs.builder()
.loadReplicatedChildSnapshots(true)
.build())
.snapshotId("{{ snapshot_id }}")
.build());
}
}
variables:
snaps:
fn::invoke:
Function: nutanix:getNdbSnapshot
Arguments:
filters:
- loadReplicatedChildSnapshots: true
snapshotId: '{{ snapshot_id }}'
Using getNdbSnapshot
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 getNdbSnapshot(args: GetNdbSnapshotArgs, opts?: InvokeOptions): Promise<GetNdbSnapshotResult>
function getNdbSnapshotOutput(args: GetNdbSnapshotOutputArgs, opts?: InvokeOptions): Output<GetNdbSnapshotResult>
def get_ndb_snapshot(filters: Optional[Sequence[GetNdbSnapshotFilter]] = None,
snapshot_id: Optional[str] = None,
tags: Optional[Sequence[GetNdbSnapshotTag]] = None,
opts: Optional[InvokeOptions] = None) -> GetNdbSnapshotResult
def get_ndb_snapshot_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetNdbSnapshotFilterArgs]]]] = None,
snapshot_id: Optional[pulumi.Input[str]] = None,
tags: Optional[pulumi.Input[Sequence[pulumi.Input[GetNdbSnapshotTagArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNdbSnapshotResult]
func GetNdbSnapshot(ctx *Context, args *GetNdbSnapshotArgs, opts ...InvokeOption) (*GetNdbSnapshotResult, error)
func GetNdbSnapshotOutput(ctx *Context, args *GetNdbSnapshotOutputArgs, opts ...InvokeOption) GetNdbSnapshotResultOutput
> Note: This function is named GetNdbSnapshot
in the Go SDK.
public static class GetNdbSnapshot
{
public static Task<GetNdbSnapshotResult> InvokeAsync(GetNdbSnapshotArgs args, InvokeOptions? opts = null)
public static Output<GetNdbSnapshotResult> Invoke(GetNdbSnapshotInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNdbSnapshotResult> getNdbSnapshot(GetNdbSnapshotArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nutanix:index/getNdbSnapshot:getNdbSnapshot
arguments:
# arguments dictionary
The following arguments are supported:
- Snapshot
Id string - Snapshot ID to be given
- Filters
List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Snapshot Filter> - Filters will fetch the snapshot details as per input
- List<Piers
Karsenbarg. Nutanix. Inputs. Get Ndb Snapshot Tag> - tags
- Snapshot
Id string - Snapshot ID to be given
- Filters
[]Get
Ndb Snapshot Filter - Filters will fetch the snapshot details as per input
- []Get
Ndb Snapshot Tag - tags
- snapshot
Id String - Snapshot ID to be given
- filters
List<Get
Ndb Snapshot Filter> - Filters will fetch the snapshot details as per input
- List<Get
Ndb Snapshot Tag> - tags
- snapshot
Id string - Snapshot ID to be given
- filters
Get
Ndb Snapshot Filter[] - Filters will fetch the snapshot details as per input
- Get
Ndb Snapshot Tag[] - tags
- snapshot_
id str - Snapshot ID to be given
- filters
Sequence[Get
Ndb Snapshot Filter] - Filters will fetch the snapshot details as per input
- Sequence[Get
Ndb Snapshot Tag] - tags
- snapshot
Id String - Snapshot ID to be given
- filters List<Property Map>
- Filters will fetch the snapshot details as per input
- List<Property Map>
- tags
getNdbSnapshot Result
The following output properties are available:
- App
Info stringVersion - App info version
- Applicable
Types List<string> - Applicable types
- Database
Node stringId - database node id
- Database
Snapshot bool - database snapshot
- Date
Created string - created date
- Date
Modified string - modified date
- Dbserver
Id string - dbserver id
- Dbserver
Ip string - dbserver ip
- Dbserver
Name string - dbserver name
- Dbserver
Storage intMetadata Version - dbserver storage metadata version
- Description string
- description of snapshot
- From
Timestamp string - from timestamp
- Id string
- name of snapshot
- Lcm
Configs List<PiersKarsenbarg. Nutanix. Outputs. Get Ndb Snapshot Lcm Config> - LCM config
- Name string
- Nx
Cluster stringId - nx cluster id
- Parent
Snapshot bool - parent snapshot
- Parent
Snapshot stringId - parent snapshot id
- Processed bool
- processed
- Properties
List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Snapshot Property> - properties
- Protection
Domain stringId - protection domain
- Replicated
Snapshots List<string> - replicated snapshots
- Santized bool
- Santized
From stringSnapshot Id - Santized
Snapshots string - Snapshot
Family string - snapshot family
- Snapshot
Id string - Snapshot
Size double - snapshot size
- Snapshot
Timestamp string - snapshot timeStamp
- Snapshot
Timestamp intDate - snapshot timestamp date
- Snapshot
Uuid string - snapshot uuid
- Software
Database boolSnapshot - software database snapshot
- Software
Snapshot string - software snapshot
- Software
Snapshot stringId - software snapshot id
- Status string
- status
- List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Snapshot Tag> - tags
- Time
Machine stringId - Timezone string
- timezone
- To
Timestamp string - to timestamp
- Type string
- type
- Filters
List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Snapshot Filter>
- App
Info stringVersion - App info version
- Applicable
Types []string - Applicable types
- Database
Node stringId - database node id
- Database
Snapshot bool - database snapshot
- Date
Created string - created date
- Date
Modified string - modified date
- Dbserver
Id string - dbserver id
- Dbserver
Ip string - dbserver ip
- Dbserver
Name string - dbserver name
- Dbserver
Storage intMetadata Version - dbserver storage metadata version
- Description string
- description of snapshot
- From
Timestamp string - from timestamp
- Id string
- name of snapshot
- Lcm
Configs []GetNdb Snapshot Lcm Config - LCM config
- Name string
- Nx
Cluster stringId - nx cluster id
- Parent
Snapshot bool - parent snapshot
- Parent
Snapshot stringId - parent snapshot id
- Processed bool
- processed
- Properties
[]Get
Ndb Snapshot Property - properties
- Protection
Domain stringId - protection domain
- Replicated
Snapshots []string - replicated snapshots
- Santized bool
- Santized
From stringSnapshot Id - Santized
Snapshots string - Snapshot
Family string - snapshot family
- Snapshot
Id string - Snapshot
Size float64 - snapshot size
- Snapshot
Timestamp string - snapshot timeStamp
- Snapshot
Timestamp intDate - snapshot timestamp date
- Snapshot
Uuid string - snapshot uuid
- Software
Database boolSnapshot - software database snapshot
- Software
Snapshot string - software snapshot
- Software
Snapshot stringId - software snapshot id
- Status string
- status
- []Get
Ndb Snapshot Tag - tags
- Time
Machine stringId - Timezone string
- timezone
- To
Timestamp string - to timestamp
- Type string
- type
- Filters
[]Get
Ndb Snapshot Filter
- app
Info StringVersion - App info version
- applicable
Types List<String> - Applicable types
- database
Node StringId - database node id
- database
Snapshot Boolean - database snapshot
- date
Created String - created date
- date
Modified String - modified date
- dbserver
Id String - dbserver id
- dbserver
Ip String - dbserver ip
- dbserver
Name String - dbserver name
- dbserver
Storage IntegerMetadata Version - dbserver storage metadata version
- description String
- description of snapshot
- from
Timestamp String - from timestamp
- id String
- name of snapshot
- lcm
Configs List<GetNdb Snapshot Lcm Config> - LCM config
- name String
- nx
Cluster StringId - nx cluster id
- parent
Snapshot Boolean - parent snapshot
- parent
Snapshot StringId - parent snapshot id
- processed Boolean
- processed
- properties
List<Get
Ndb Snapshot Property> - properties
- protection
Domain StringId - protection domain
- replicated
Snapshots List<String> - replicated snapshots
- santized Boolean
- santized
From StringSnapshot Id - santized
Snapshots String - snapshot
Family String - snapshot family
- snapshot
Id String - snapshot
Size Double - snapshot size
- snapshot
Timestamp String - snapshot timeStamp
- snapshot
Timestamp IntegerDate - snapshot timestamp date
- snapshot
Uuid String - snapshot uuid
- software
Database BooleanSnapshot - software database snapshot
- software
Snapshot String - software snapshot
- software
Snapshot StringId - software snapshot id
- status String
- status
- List<Get
Ndb Snapshot Tag> - tags
- time
Machine StringId - timezone String
- timezone
- to
Timestamp String - to timestamp
- type String
- type
- filters
List<Get
Ndb Snapshot Filter>
- app
Info stringVersion - App info version
- applicable
Types string[] - Applicable types
- database
Node stringId - database node id
- database
Snapshot boolean - database snapshot
- date
Created string - created date
- date
Modified string - modified date
- dbserver
Id string - dbserver id
- dbserver
Ip string - dbserver ip
- dbserver
Name string - dbserver name
- dbserver
Storage numberMetadata Version - dbserver storage metadata version
- description string
- description of snapshot
- from
Timestamp string - from timestamp
- id string
- name of snapshot
- lcm
Configs GetNdb Snapshot Lcm Config[] - LCM config
- name string
- nx
Cluster stringId - nx cluster id
- parent
Snapshot boolean - parent snapshot
- parent
Snapshot stringId - parent snapshot id
- processed boolean
- processed
- properties
Get
Ndb Snapshot Property[] - properties
- protection
Domain stringId - protection domain
- replicated
Snapshots string[] - replicated snapshots
- santized boolean
- santized
From stringSnapshot Id - santized
Snapshots string - snapshot
Family string - snapshot family
- snapshot
Id string - snapshot
Size number - snapshot size
- snapshot
Timestamp string - snapshot timeStamp
- snapshot
Timestamp numberDate - snapshot timestamp date
- snapshot
Uuid string - snapshot uuid
- software
Database booleanSnapshot - software database snapshot
- software
Snapshot string - software snapshot
- software
Snapshot stringId - software snapshot id
- status string
- status
- Get
Ndb Snapshot Tag[] - tags
- time
Machine stringId - timezone string
- timezone
- to
Timestamp string - to timestamp
- type string
- type
- filters
Get
Ndb Snapshot Filter[]
- app_
info_ strversion - App info version
- applicable_
types Sequence[str] - Applicable types
- database_
node_ strid - database node id
- database_
snapshot bool - database snapshot
- date_
created str - created date
- date_
modified str - modified date
- dbserver_
id str - dbserver id
- dbserver_
ip str - dbserver ip
- dbserver_
name str - dbserver name
- dbserver_
storage_ intmetadata_ version - dbserver storage metadata version
- description str
- description of snapshot
- from_
timestamp str - from timestamp
- id str
- name of snapshot
- lcm_
configs Sequence[GetNdb Snapshot Lcm Config] - LCM config
- name str
- nx_
cluster_ strid - nx cluster id
- parent_
snapshot bool - parent snapshot
- parent_
snapshot_ strid - parent snapshot id
- processed bool
- processed
- properties
Sequence[Get
Ndb Snapshot Property] - properties
- protection_
domain_ strid - protection domain
- replicated_
snapshots Sequence[str] - replicated snapshots
- santized bool
- santized_
from_ strsnapshot_ id - santized_
snapshots str - snapshot_
family str - snapshot family
- snapshot_
id str - snapshot_
size float - snapshot size
- snapshot_
timestamp str - snapshot timeStamp
- snapshot_
timestamp_ intdate - snapshot timestamp date
- snapshot_
uuid str - snapshot uuid
- software_
database_ boolsnapshot - software database snapshot
- software_
snapshot str - software snapshot
- software_
snapshot_ strid - software snapshot id
- status str
- status
- Sequence[Get
Ndb Snapshot Tag] - tags
- time_
machine_ strid - timezone str
- timezone
- to_
timestamp str - to timestamp
- type str
- type
- filters
Sequence[Get
Ndb Snapshot Filter]
- app
Info StringVersion - App info version
- applicable
Types List<String> - Applicable types
- database
Node StringId - database node id
- database
Snapshot Boolean - database snapshot
- date
Created String - created date
- date
Modified String - modified date
- dbserver
Id String - dbserver id
- dbserver
Ip String - dbserver ip
- dbserver
Name String - dbserver name
- dbserver
Storage NumberMetadata Version - dbserver storage metadata version
- description String
- description of snapshot
- from
Timestamp String - from timestamp
- id String
- name of snapshot
- lcm
Configs List<Property Map> - LCM config
- name String
- nx
Cluster StringId - nx cluster id
- parent
Snapshot Boolean - parent snapshot
- parent
Snapshot StringId - parent snapshot id
- processed Boolean
- processed
- properties List<Property Map>
- properties
- protection
Domain StringId - protection domain
- replicated
Snapshots List<String> - replicated snapshots
- santized Boolean
- santized
From StringSnapshot Id - santized
Snapshots String - snapshot
Family String - snapshot family
- snapshot
Id String - snapshot
Size Number - snapshot size
- snapshot
Timestamp String - snapshot timeStamp
- snapshot
Timestamp NumberDate - snapshot timestamp date
- snapshot
Uuid String - snapshot uuid
- software
Database BooleanSnapshot - software database snapshot
- software
Snapshot String - software snapshot
- software
Snapshot StringId - software snapshot id
- status String
- status
- List<Property Map>
- tags
- time
Machine StringId - timezone String
- timezone
- to
Timestamp String - to timestamp
- type String
- type
- filters List<Property Map>
Supporting Types
GetNdbSnapshotFilter
- Load
Replicated stringChild Snapshots - load child snapshots. Default is false
- Timezone string
- Default is UTC
- Load
Replicated stringChild Snapshots - load child snapshots. Default is false
- Timezone string
- Default is UTC
- load
Replicated StringChild Snapshots - load child snapshots. Default is false
- timezone String
- Default is UTC
- load
Replicated stringChild Snapshots - load child snapshots. Default is false
- timezone string
- Default is UTC
- load_
replicated_ strchild_ snapshots - load child snapshots. Default is false
- timezone str
- Default is UTC
- load
Replicated StringChild Snapshots - load child snapshots. Default is false
- timezone String
- Default is UTC
GetNdbSnapshotLcmConfig
- Expiry
Details List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Snapshot Lcm Config Expiry Detail> - Post
Delete List<PiersCommands Karsenbarg. Nutanix. Inputs. Get Ndb Snapshot Lcm Config Post Delete Command> - Pre
Delete List<PiersCommands Karsenbarg. Nutanix. Inputs. Get Ndb Snapshot Lcm Config Pre Delete Command> - Refresh
Details List<PiersKarsenbarg. Nutanix. Inputs. Get Ndb Snapshot Lcm Config Refresh Detail>
GetNdbSnapshotLcmConfigExpiryDetail
- 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
GetNdbSnapshotLcmConfigPostDeleteCommand
- Command string
- Command string
- command String
- command string
- command str
- command String
GetNdbSnapshotLcmConfigPreDeleteCommand
- Command string
- Command string
- command String
- command string
- command str
- command String
GetNdbSnapshotLcmConfigRefreshDetail
- 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
GetNdbSnapshotProperty
- Description string
- description of snapshot
- Name string
- Ref
Id string - Secure bool
- Value string
- Description string
- description of snapshot
- Name string
- Ref
Id string - Secure bool
- Value string
- description String
- description of snapshot
- name String
- ref
Id String - secure Boolean
- value String
- description string
- description of snapshot
- name string
- ref
Id string - secure boolean
- value string
- description str
- description of snapshot
- name str
- ref_
id str - secure bool
- value str
- description String
- description of snapshot
- name String
- ref
Id String - secure Boolean
- value String
GetNdbSnapshotTag
- 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.