1. Packages
  2. Nutanix
  3. API Docs
  4. getNdbSlas
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg

nutanix.getNdbSlas

Explore with Pulumi AI

nutanix logo
Nutanix v0.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg

    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, nil, 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<PiersKarsenbarg.Nutanix.Outputs.GetNdbSlasSla>
    • list of slas
    Id string
    The provider-assigned unique ID for this managed resource.
    Slas []GetNdbSlasSla
    • list of slas
    id String
    The provider-assigned unique ID for this managed resource.
    slas List<GetNdbSlasSla>
    • list of slas
    id string
    The provider-assigned unique ID for this managed resource.
    slas GetNdbSlasSla[]
    • list of slas
    id str
    The provider-assigned unique ID for this managed resource.
    slas Sequence[GetNdbSlasSla]
    • list of slas
    id String
    The provider-assigned unique ID for this managed resource.
    slas List<Property Map>
    • list of slas

    Supporting Types

    GetNdbSlasSla

    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
    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
    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
    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
    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
    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

    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.1.0 published on Tuesday, Sep 24, 2024 by Piers Karsenbarg