Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getNdbSlas
Explore with Pulumi AI
Lists all SLAs in Nutanix Database Service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const slas = nutanix.getNdbSlas({});
export const sla = slas;
import pulumi
import pulumi_nutanix as nutanix
slas = nutanix.get_ndb_slas()
pulumi.export("sla", slas)
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 {
slas, err := nutanix.GetNdbSlas(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
ctx.Export("sla", slas)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var slas = Nutanix.GetNdbSlas.Invoke();
return new Dictionary<string, object?>
{
["sla"] = slas,
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
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 slas = NutanixFunctions.getNdbSlas();
ctx.export("sla", slas.applyValue(getNdbSlasResult -> getNdbSlasResult));
}
}
variables:
slas:
fn::invoke:
Function: nutanix:getNdbSlas
Arguments: {}
outputs:
sla: ${slas}
Using getNdbSlas
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 getNdbSlas(opts?: InvokeOptions): Promise<GetNdbSlasResult>
function getNdbSlasOutput(opts?: InvokeOptions): Output<GetNdbSlasResult>
def get_ndb_slas(opts: Optional[InvokeOptions] = None) -> GetNdbSlasResult
def get_ndb_slas_output(opts: Optional[InvokeOptions] = None) -> Output[GetNdbSlasResult]
func GetNdbSlas(ctx *Context, opts ...InvokeOption) (*GetNdbSlasResult, error)
func GetNdbSlasOutput(ctx *Context, opts ...InvokeOption) GetNdbSlasResultOutput
> Note: This function is named GetNdbSlas
in the Go SDK.
public static class GetNdbSlas
{
public static Task<GetNdbSlasResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetNdbSlasResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetNdbSlasResult> getNdbSlas(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nutanix:index/getNdbSlas:getNdbSlas
arguments:
# arguments dictionary
getNdbSlas Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Slas
List<Piers
Karsenbarg. Nutanix. Outputs. Get Ndb Slas Sla> - list of slas
- Id string
- The provider-assigned unique ID for this managed resource.
- Slas
[]Get
Ndb Slas Sla - list of slas
- id String
- The provider-assigned unique ID for this managed resource.
- slas
List<Get
Ndb Slas Sla> - list of slas
- id string
- The provider-assigned unique ID for this managed resource.
- slas
Get
Ndb Slas Sla[] - list of slas
- id str
- The provider-assigned unique ID for this managed resource.
- slas
Sequence[Get
Ndb Slas Sla] - list of slas
- id String
- The provider-assigned unique ID for this managed resource.
- slas List<Property Map>
- list of slas
Supporting Types
GetNdbSlasSla
- Continuous
Retention int - continuous retention of logs limit
- Current
Active stringFrequency - Current active frequency
- Daily
Retention int - Daily snapshots retention limit
- Date
Created string - creation date
- Date
Modified string - last modified
- Description string
- description of sla
- Id string
- ID of sla
- Monthly
Retention int - Monthly snapshots retention limit
- Name string
- sla name
- Owner
Id string - owner ID
- Pitr
Enabled bool - If point in time recovery enabled
- Quartely
Retention int - Daily snapshots retention limit
- Reference
Count int - Reference count
- System
Sla bool - if system sla
- Unique
Name string - unique name
- Weekly
Retention int - weeky snapshots retention limit
- Yearly
Retention int - Yearly snapshots retention limit
- Continuous
Retention int - continuous retention of logs limit
- Current
Active stringFrequency - Current active frequency
- Daily
Retention int - Daily snapshots retention limit
- Date
Created string - creation date
- Date
Modified string - last modified
- Description string
- description of sla
- Id string
- ID of sla
- Monthly
Retention int - Monthly snapshots retention limit
- Name string
- sla name
- Owner
Id string - owner ID
- Pitr
Enabled bool - If point in time recovery enabled
- Quartely
Retention int - Daily snapshots retention limit
- Reference
Count int - Reference count
- System
Sla bool - if system sla
- Unique
Name string - unique name
- Weekly
Retention int - weeky snapshots retention limit
- Yearly
Retention int - Yearly snapshots retention limit
- continuous
Retention Integer - continuous retention of logs limit
- current
Active StringFrequency - Current active frequency
- daily
Retention Integer - Daily snapshots retention limit
- date
Created String - creation date
- date
Modified String - last modified
- description String
- description of sla
- id String
- ID of sla
- monthly
Retention Integer - Monthly snapshots retention limit
- name String
- sla name
- owner
Id String - owner ID
- pitr
Enabled Boolean - If point in time recovery enabled
- quartely
Retention Integer - Daily snapshots retention limit
- reference
Count Integer - Reference count
- system
Sla Boolean - if system sla
- unique
Name String - unique name
- weekly
Retention Integer - weeky snapshots retention limit
- yearly
Retention Integer - Yearly snapshots retention limit
- continuous
Retention number - continuous retention of logs limit
- current
Active stringFrequency - Current active frequency
- daily
Retention number - Daily snapshots retention limit
- date
Created string - creation date
- date
Modified string - last modified
- description string
- description of sla
- id string
- ID of sla
- monthly
Retention number - Monthly snapshots retention limit
- name string
- sla name
- owner
Id string - owner ID
- pitr
Enabled boolean - If point in time recovery enabled
- quartely
Retention number - Daily snapshots retention limit
- reference
Count number - Reference count
- system
Sla boolean - if system sla
- unique
Name string - unique name
- weekly
Retention number - weeky snapshots retention limit
- yearly
Retention number - Yearly snapshots retention limit
- continuous_
retention int - continuous retention of logs limit
- current_
active_ strfrequency - Current active frequency
- daily_
retention int - Daily snapshots retention limit
- date_
created str - creation date
- date_
modified str - last modified
- description str
- description of sla
- id str
- ID of sla
- monthly_
retention int - Monthly snapshots retention limit
- name str
- sla name
- owner_
id str - owner ID
- pitr_
enabled bool - If point in time recovery enabled
- quartely_
retention int - Daily snapshots retention limit
- reference_
count int - Reference count
- system_
sla bool - if system sla
- unique_
name str - unique name
- weekly_
retention int - weeky snapshots retention limit
- yearly_
retention int - Yearly snapshots retention limit
- continuous
Retention Number - continuous retention of logs limit
- current
Active StringFrequency - Current active frequency
- daily
Retention Number - Daily snapshots retention limit
- date
Created String - creation date
- date
Modified String - last modified
- description String
- description of sla
- id String
- ID of sla
- monthly
Retention Number - Monthly snapshots retention limit
- name String
- sla name
- owner
Id String - owner ID
- pitr
Enabled Boolean - If point in time recovery enabled
- quartely
Retention Number - Daily snapshots retention limit
- reference
Count Number - Reference count
- system
Sla Boolean - if system sla
- unique
Name String - unique name
- weekly
Retention Number - weeky snapshots retention limit
- yearly
Retention Number - Yearly snapshots retention limit
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.