1. Packages
  2. Nutanix
  3. API Docs
  4. getNdbSla
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

nutanix.getNdbSla

Explore with Pulumi AI

nutanix logo
Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg

    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:

    SlaId string
    and sla_name are mutually exclusive.
    SlaName string
    SLA Name for query
    SlaId string
    and sla_name are mutually exclusive.
    SlaName string
    SLA Name for query
    slaId String
    and sla_name are mutually exclusive.
    slaName String
    SLA Name for query
    slaId string
    and sla_name are mutually exclusive.
    slaName string
    SLA Name for query
    sla_id str
    and sla_name are mutually exclusive.
    sla_name str
    SLA Name for query
    slaId String
    and sla_name are mutually exclusive.
    slaName String
    SLA Name for query

    getNdbSla Result

    The following output properties are available:

    ContinuousRetention int
    • continuous retention of logs limit
    CurrentActiveFrequency string
    • Current active frequency
    DailyRetention int
    • Daily snapshots retention limit
    DateCreated string
    • creation date
    DateModified string
    • last modified
    Description string
    • description of sla
    Id string
    • id of sla
    MonthlyRetention int
    • Monthly snapshots retention limit
    Name string
    • sla name
    OwnerId string
    • owner ID
    PitrEnabled bool
    • If point in time recovery enabled
    QuartelyRetention int
    • Daily snapshots retention limit
    ReferenceCount int
    • Reference count
    SystemSla bool
    • if system sla
    UniqueName string
    • unique name
    WeeklyRetention int
    • weeky snapshots retention limit
    YearlyRetention int
    • Yearly snapshots retention limit
    SlaId string
    SlaName string
    ContinuousRetention int
    • continuous retention of logs limit
    CurrentActiveFrequency string
    • Current active frequency
    DailyRetention int
    • Daily snapshots retention limit
    DateCreated string
    • creation date
    DateModified string
    • last modified
    Description string
    • description of sla
    Id string
    • id of sla
    MonthlyRetention int
    • Monthly snapshots retention limit
    Name string
    • sla name
    OwnerId string
    • owner ID
    PitrEnabled bool
    • If point in time recovery enabled
    QuartelyRetention int
    • Daily snapshots retention limit
    ReferenceCount int
    • Reference count
    SystemSla bool
    • if system sla
    UniqueName string
    • unique name
    WeeklyRetention int
    • weeky snapshots retention limit
    YearlyRetention int
    • Yearly snapshots retention limit
    SlaId string
    SlaName string
    continuousRetention Integer
    • continuous retention of logs limit
    currentActiveFrequency String
    • Current active frequency
    dailyRetention Integer
    • Daily snapshots retention limit
    dateCreated String
    • creation date
    dateModified String
    • last modified
    description String
    • description of sla
    id String
    • id of sla
    monthlyRetention Integer
    • Monthly snapshots retention limit
    name String
    • sla name
    ownerId String
    • owner ID
    pitrEnabled Boolean
    • If point in time recovery enabled
    quartelyRetention Integer
    • Daily snapshots retention limit
    referenceCount Integer
    • Reference count
    systemSla Boolean
    • if system sla
    uniqueName String
    • unique name
    weeklyRetention Integer
    • weeky snapshots retention limit
    yearlyRetention Integer
    • Yearly snapshots retention limit
    slaId String
    slaName String
    continuousRetention number
    • continuous retention of logs limit
    currentActiveFrequency string
    • Current active frequency
    dailyRetention number
    • Daily snapshots retention limit
    dateCreated string
    • creation date
    dateModified string
    • last modified
    description string
    • description of sla
    id string
    • id of sla
    monthlyRetention number
    • Monthly snapshots retention limit
    name string
    • sla name
    ownerId string
    • owner ID
    pitrEnabled boolean
    • If point in time recovery enabled
    quartelyRetention number
    • Daily snapshots retention limit
    referenceCount number
    • Reference count
    systemSla boolean
    • if system sla
    uniqueName string
    • unique name
    weeklyRetention number
    • weeky snapshots retention limit
    yearlyRetention number
    • Yearly snapshots retention limit
    slaId string
    slaName string
    continuous_retention int
    • continuous retention of logs limit
    current_active_frequency str
    • 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
    continuousRetention Number
    • continuous retention of logs limit
    currentActiveFrequency String
    • Current active frequency
    dailyRetention Number
    • Daily snapshots retention limit
    dateCreated String
    • creation date
    dateModified String
    • last modified
    description String
    • description of sla
    id String
    • id of sla
    monthlyRetention Number
    • Monthly snapshots retention limit
    name String
    • sla name
    ownerId String
    • owner ID
    pitrEnabled Boolean
    • If point in time recovery enabled
    quartelyRetention Number
    • Daily snapshots retention limit
    referenceCount Number
    • Reference count
    systemSla Boolean
    • if system sla
    uniqueName String
    • unique name
    weeklyRetention Number
    • weeky snapshots retention limit
    yearlyRetention Number
    • Yearly snapshots retention limit
    slaId String
    slaName String

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.0.52 published on Friday, Jun 7, 2024 by Piers Karsenbarg