Nutanix v0.5.0 published on Monday, Nov 4, 2024 by Piers Karsenbarg
nutanix.getNdbSla
Explore with Pulumi AI
Describes a SLA in Nutanix Database Service
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const sla1 = nutanix.getNdbSla({
slaName: "test-sla",
});
export const sla = sla1;
import pulumi
import pulumi_nutanix as nutanix
sla1 = nutanix.get_ndb_sla(sla_name="test-sla")
pulumi.export("sla", sla1)
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 {
sla1, err := nutanix.LookupNdbSla(ctx, &nutanix.LookupNdbSlaArgs{
SlaName: pulumi.StringRef("test-sla"),
}, nil)
if err != nil {
return err
}
ctx.Export("sla", sla1)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() =>
{
var sla1 = Nutanix.GetNdbSla.Invoke(new()
{
SlaName = "test-sla",
});
return new Dictionary<string, object?>
{
["sla"] = sla1,
};
});
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.GetNdbSlaArgs;
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 sla1 = NutanixFunctions.getNdbSla(GetNdbSlaArgs.builder()
.slaName("test-sla")
.build());
ctx.export("sla", sla1.applyValue(getNdbSlaResult -> getNdbSlaResult));
}
}
variables:
sla1:
fn::invoke:
Function: nutanix:getNdbSla
Arguments:
slaName: test-sla
outputs:
sla: ${sla1}
Using getNdbSla
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 getNdbSla(args: GetNdbSlaArgs, opts?: InvokeOptions): Promise<GetNdbSlaResult>
function getNdbSlaOutput(args: GetNdbSlaOutputArgs, opts?: InvokeOptions): Output<GetNdbSlaResult>
def get_ndb_sla(sla_id: Optional[str] = None,
sla_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNdbSlaResult
def get_ndb_sla_output(sla_id: Optional[pulumi.Input[str]] = None,
sla_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNdbSlaResult]
func LookupNdbSla(ctx *Context, args *LookupNdbSlaArgs, opts ...InvokeOption) (*LookupNdbSlaResult, error)
func LookupNdbSlaOutput(ctx *Context, args *LookupNdbSlaOutputArgs, opts ...InvokeOption) LookupNdbSlaResultOutput
> Note: This function is named LookupNdbSla
in the Go SDK.
public static class GetNdbSla
{
public static Task<GetNdbSlaResult> InvokeAsync(GetNdbSlaArgs args, InvokeOptions? opts = null)
public static Output<GetNdbSlaResult> Invoke(GetNdbSlaInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNdbSlaResult> getNdbSla(GetNdbSlaArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: nutanix:index/getNdbSla:getNdbSla
arguments:
# arguments dictionary
The following arguments are supported:
getNdbSla Result
The following output properties are available:
- 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
- Sla
Id string - Sla
Name string
- 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
- Sla
Id string - Sla
Name string
- 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
- sla
Id String - sla
Name String
- 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
- sla
Id string - sla
Name string
- 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
- sla_
id str - sla_
name str
- 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
- sla
Id String - sla
Name String
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
nutanix
Terraform Provider.