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

nutanix.NdbSla

Explore with Pulumi AI

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

    Provides a resource to create SLAs based on the input parameters.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const sla = new nutanix.NdbSla("sla", {
        continuousRetention: 30,
        dailyRetention: 3,
        description: "here goes description",
        monthlyRetention: 1,
        quarterlyRetention: 1,
        weeklyRetention: 2,
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    sla = nutanix.NdbSla("sla",
        continuous_retention=30,
        daily_retention=3,
        description="here goes description",
        monthly_retention=1,
        quarterly_retention=1,
        weekly_retention=2)
    
    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.NewNdbSla(ctx, "sla", &nutanix.NdbSlaArgs{
    			ContinuousRetention: pulumi.Int(30),
    			DailyRetention:      pulumi.Int(3),
    			Description:         pulumi.String("here goes description"),
    			MonthlyRetention:    pulumi.Int(1),
    			QuarterlyRetention:  pulumi.Int(1),
    			WeeklyRetention:     pulumi.Int(2),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var sla = new Nutanix.NdbSla("sla", new()
        {
            ContinuousRetention = 30,
            DailyRetention = 3,
            Description = "here goes description",
            MonthlyRetention = 1,
            QuarterlyRetention = 1,
            WeeklyRetention = 2,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.NdbSla;
    import com.pulumi.nutanix.NdbSlaArgs;
    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) {
            var sla = new NdbSla("sla", NdbSlaArgs.builder()
                .continuousRetention(30)
                .dailyRetention(3)
                .description("here goes description")
                .monthlyRetention(1)
                .quarterlyRetention(1)
                .weeklyRetention(2)
                .build());
    
        }
    }
    
    resources:
      sla:
        type: nutanix:NdbSla
        properties:
          # Rentention args are optional with default values
          continuousRetention: 30
          dailyRetention: 3
          description: here goes description
          monthlyRetention: 1
          quarterlyRetention: 1
          weeklyRetention: 2
    

    Create NdbSla Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new NdbSla(name: string, args?: NdbSlaArgs, opts?: CustomResourceOptions);
    @overload
    def NdbSla(resource_name: str,
               args: Optional[NdbSlaArgs] = None,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def NdbSla(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               continuous_retention: Optional[int] = None,
               daily_retention: Optional[int] = None,
               description: Optional[str] = None,
               monthly_retention: Optional[int] = None,
               name: Optional[str] = None,
               quarterly_retention: Optional[int] = None,
               weekly_retention: Optional[int] = None,
               yearly_retention: Optional[int] = None)
    func NewNdbSla(ctx *Context, name string, args *NdbSlaArgs, opts ...ResourceOption) (*NdbSla, error)
    public NdbSla(string name, NdbSlaArgs? args = null, CustomResourceOptions? opts = null)
    public NdbSla(String name, NdbSlaArgs args)
    public NdbSla(String name, NdbSlaArgs args, CustomResourceOptions options)
    
    type: nutanix:NdbSla
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args NdbSlaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args NdbSlaArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args NdbSlaArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NdbSlaArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NdbSlaArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var ndbSlaResource = new Nutanix.NdbSla("ndbSlaResource", new()
    {
        ContinuousRetention = 0,
        DailyRetention = 0,
        Description = "string",
        MonthlyRetention = 0,
        Name = "string",
        QuarterlyRetention = 0,
        WeeklyRetention = 0,
        YearlyRetention = 0,
    });
    
    example, err := nutanix.NewNdbSla(ctx, "ndbSlaResource", &nutanix.NdbSlaArgs{
    	ContinuousRetention: pulumi.Int(0),
    	DailyRetention:      pulumi.Int(0),
    	Description:         pulumi.String("string"),
    	MonthlyRetention:    pulumi.Int(0),
    	Name:                pulumi.String("string"),
    	QuarterlyRetention:  pulumi.Int(0),
    	WeeklyRetention:     pulumi.Int(0),
    	YearlyRetention:     pulumi.Int(0),
    })
    
    var ndbSlaResource = new NdbSla("ndbSlaResource", NdbSlaArgs.builder()
        .continuousRetention(0)
        .dailyRetention(0)
        .description("string")
        .monthlyRetention(0)
        .name("string")
        .quarterlyRetention(0)
        .weeklyRetention(0)
        .yearlyRetention(0)
        .build());
    
    ndb_sla_resource = nutanix.NdbSla("ndbSlaResource",
        continuous_retention=0,
        daily_retention=0,
        description="string",
        monthly_retention=0,
        name="string",
        quarterly_retention=0,
        weekly_retention=0,
        yearly_retention=0)
    
    const ndbSlaResource = new nutanix.NdbSla("ndbSlaResource", {
        continuousRetention: 0,
        dailyRetention: 0,
        description: "string",
        monthlyRetention: 0,
        name: "string",
        quarterlyRetention: 0,
        weeklyRetention: 0,
        yearlyRetention: 0,
    });
    
    type: nutanix:NdbSla
    properties:
        continuousRetention: 0
        dailyRetention: 0
        description: string
        monthlyRetention: 0
        name: string
        quarterlyRetention: 0
        weeklyRetention: 0
        yearlyRetention: 0
    

    NdbSla Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The NdbSla resource accepts the following input properties:

    ContinuousRetention int
    Duration in days for which transaction logs are retained in NDB.
    DailyRetention int
    Duration in days for which a daily snapshot must be retained in NDB.
    Description string
    Description of profile
    MonthlyRetention int
    Duration in months for which a monthly snapshot must be retained in NDB
    Name string
    Name of profile
    QuarterlyRetention int
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    WeeklyRetention int
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    YearlyRetention int
    Not supported as of now.
    ContinuousRetention int
    Duration in days for which transaction logs are retained in NDB.
    DailyRetention int
    Duration in days for which a daily snapshot must be retained in NDB.
    Description string
    Description of profile
    MonthlyRetention int
    Duration in months for which a monthly snapshot must be retained in NDB
    Name string
    Name of profile
    QuarterlyRetention int
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    WeeklyRetention int
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    YearlyRetention int
    Not supported as of now.
    continuousRetention Integer
    Duration in days for which transaction logs are retained in NDB.
    dailyRetention Integer
    Duration in days for which a daily snapshot must be retained in NDB.
    description String
    Description of profile
    monthlyRetention Integer
    Duration in months for which a monthly snapshot must be retained in NDB
    name String
    Name of profile
    quarterlyRetention Integer
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    weeklyRetention Integer
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    yearlyRetention Integer
    Not supported as of now.
    continuousRetention number
    Duration in days for which transaction logs are retained in NDB.
    dailyRetention number
    Duration in days for which a daily snapshot must be retained in NDB.
    description string
    Description of profile
    monthlyRetention number
    Duration in months for which a monthly snapshot must be retained in NDB
    name string
    Name of profile
    quarterlyRetention number
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    weeklyRetention number
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    yearlyRetention number
    Not supported as of now.
    continuous_retention int
    Duration in days for which transaction logs are retained in NDB.
    daily_retention int
    Duration in days for which a daily snapshot must be retained in NDB.
    description str
    Description of profile
    monthly_retention int
    Duration in months for which a monthly snapshot must be retained in NDB
    name str
    Name of profile
    quarterly_retention int
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    weekly_retention int
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    yearly_retention int
    Not supported as of now.
    continuousRetention Number
    Duration in days for which transaction logs are retained in NDB.
    dailyRetention Number
    Duration in days for which a daily snapshot must be retained in NDB.
    description String
    Description of profile
    monthlyRetention Number
    Duration in months for which a monthly snapshot must be retained in NDB
    name String
    Name of profile
    quarterlyRetention Number
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    weeklyRetention Number
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    yearlyRetention Number
    Not supported as of now.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the NdbSla resource produces the following output properties:

    CurrentActiveFrequency string
    slas current frequency
    DateCreated string
    sla created data
    DateModified string
    sla last modified date
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    owner id
    PitrEnabled bool
    pitr enabled
    ReferenceCount int
    reference count
    SystemSla bool
    refers whether sla is custom or built-in
    UniqueName string
    name of sla
    CurrentActiveFrequency string
    slas current frequency
    DateCreated string
    sla created data
    DateModified string
    sla last modified date
    Id string
    The provider-assigned unique ID for this managed resource.
    OwnerId string
    owner id
    PitrEnabled bool
    pitr enabled
    ReferenceCount int
    reference count
    SystemSla bool
    refers whether sla is custom or built-in
    UniqueName string
    name of sla
    currentActiveFrequency String
    slas current frequency
    dateCreated String
    sla created data
    dateModified String
    sla last modified date
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    owner id
    pitrEnabled Boolean
    pitr enabled
    referenceCount Integer
    reference count
    systemSla Boolean
    refers whether sla is custom or built-in
    uniqueName String
    name of sla
    currentActiveFrequency string
    slas current frequency
    dateCreated string
    sla created data
    dateModified string
    sla last modified date
    id string
    The provider-assigned unique ID for this managed resource.
    ownerId string
    owner id
    pitrEnabled boolean
    pitr enabled
    referenceCount number
    reference count
    systemSla boolean
    refers whether sla is custom or built-in
    uniqueName string
    name of sla
    current_active_frequency str
    slas current frequency
    date_created str
    sla created data
    date_modified str
    sla last modified date
    id str
    The provider-assigned unique ID for this managed resource.
    owner_id str
    owner id
    pitr_enabled bool
    pitr enabled
    reference_count int
    reference count
    system_sla bool
    refers whether sla is custom or built-in
    unique_name str
    name of sla
    currentActiveFrequency String
    slas current frequency
    dateCreated String
    sla created data
    dateModified String
    sla last modified date
    id String
    The provider-assigned unique ID for this managed resource.
    ownerId String
    owner id
    pitrEnabled Boolean
    pitr enabled
    referenceCount Number
    reference count
    systemSla Boolean
    refers whether sla is custom or built-in
    uniqueName String
    name of sla

    Look up Existing NdbSla Resource

    Get an existing NdbSla resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: NdbSlaState, opts?: CustomResourceOptions): NdbSla
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            continuous_retention: Optional[int] = None,
            current_active_frequency: Optional[str] = None,
            daily_retention: Optional[int] = None,
            date_created: Optional[str] = None,
            date_modified: Optional[str] = None,
            description: Optional[str] = None,
            monthly_retention: Optional[int] = None,
            name: Optional[str] = None,
            owner_id: Optional[str] = None,
            pitr_enabled: Optional[bool] = None,
            quarterly_retention: Optional[int] = None,
            reference_count: Optional[int] = None,
            system_sla: Optional[bool] = None,
            unique_name: Optional[str] = None,
            weekly_retention: Optional[int] = None,
            yearly_retention: Optional[int] = None) -> NdbSla
    func GetNdbSla(ctx *Context, name string, id IDInput, state *NdbSlaState, opts ...ResourceOption) (*NdbSla, error)
    public static NdbSla Get(string name, Input<string> id, NdbSlaState? state, CustomResourceOptions? opts = null)
    public static NdbSla get(String name, Output<String> id, NdbSlaState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ContinuousRetention int
    Duration in days for which transaction logs are retained in NDB.
    CurrentActiveFrequency string
    slas current frequency
    DailyRetention int
    Duration in days for which a daily snapshot must be retained in NDB.
    DateCreated string
    sla created data
    DateModified string
    sla last modified date
    Description string
    Description of profile
    MonthlyRetention int
    Duration in months for which a monthly snapshot must be retained in NDB
    Name string
    Name of profile
    OwnerId string
    owner id
    PitrEnabled bool
    pitr enabled
    QuarterlyRetention int
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    ReferenceCount int
    reference count
    SystemSla bool
    refers whether sla is custom or built-in
    UniqueName string
    name of sla
    WeeklyRetention int
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    YearlyRetention int
    Not supported as of now.
    ContinuousRetention int
    Duration in days for which transaction logs are retained in NDB.
    CurrentActiveFrequency string
    slas current frequency
    DailyRetention int
    Duration in days for which a daily snapshot must be retained in NDB.
    DateCreated string
    sla created data
    DateModified string
    sla last modified date
    Description string
    Description of profile
    MonthlyRetention int
    Duration in months for which a monthly snapshot must be retained in NDB
    Name string
    Name of profile
    OwnerId string
    owner id
    PitrEnabled bool
    pitr enabled
    QuarterlyRetention int
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    ReferenceCount int
    reference count
    SystemSla bool
    refers whether sla is custom or built-in
    UniqueName string
    name of sla
    WeeklyRetention int
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    YearlyRetention int
    Not supported as of now.
    continuousRetention Integer
    Duration in days for which transaction logs are retained in NDB.
    currentActiveFrequency String
    slas current frequency
    dailyRetention Integer
    Duration in days for which a daily snapshot must be retained in NDB.
    dateCreated String
    sla created data
    dateModified String
    sla last modified date
    description String
    Description of profile
    monthlyRetention Integer
    Duration in months for which a monthly snapshot must be retained in NDB
    name String
    Name of profile
    ownerId String
    owner id
    pitrEnabled Boolean
    pitr enabled
    quarterlyRetention Integer
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    referenceCount Integer
    reference count
    systemSla Boolean
    refers whether sla is custom or built-in
    uniqueName String
    name of sla
    weeklyRetention Integer
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    yearlyRetention Integer
    Not supported as of now.
    continuousRetention number
    Duration in days for which transaction logs are retained in NDB.
    currentActiveFrequency string
    slas current frequency
    dailyRetention number
    Duration in days for which a daily snapshot must be retained in NDB.
    dateCreated string
    sla created data
    dateModified string
    sla last modified date
    description string
    Description of profile
    monthlyRetention number
    Duration in months for which a monthly snapshot must be retained in NDB
    name string
    Name of profile
    ownerId string
    owner id
    pitrEnabled boolean
    pitr enabled
    quarterlyRetention number
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    referenceCount number
    reference count
    systemSla boolean
    refers whether sla is custom or built-in
    uniqueName string
    name of sla
    weeklyRetention number
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    yearlyRetention number
    Not supported as of now.
    continuous_retention int
    Duration in days for which transaction logs are retained in NDB.
    current_active_frequency str
    slas current frequency
    daily_retention int
    Duration in days for which a daily snapshot must be retained in NDB.
    date_created str
    sla created data
    date_modified str
    sla last modified date
    description str
    Description of profile
    monthly_retention int
    Duration in months for which a monthly snapshot must be retained in NDB
    name str
    Name of profile
    owner_id str
    owner id
    pitr_enabled bool
    pitr enabled
    quarterly_retention int
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    reference_count int
    reference count
    system_sla bool
    refers whether sla is custom or built-in
    unique_name str
    name of sla
    weekly_retention int
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    yearly_retention int
    Not supported as of now.
    continuousRetention Number
    Duration in days for which transaction logs are retained in NDB.
    currentActiveFrequency String
    slas current frequency
    dailyRetention Number
    Duration in days for which a daily snapshot must be retained in NDB.
    dateCreated String
    sla created data
    dateModified String
    sla last modified date
    description String
    Description of profile
    monthlyRetention Number
    Duration in months for which a monthly snapshot must be retained in NDB
    name String
    Name of profile
    ownerId String
    owner id
    pitrEnabled Boolean
    pitr enabled
    quarterlyRetention Number
    Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
    referenceCount Number
    reference count
    systemSla Boolean
    refers whether sla is custom or built-in
    uniqueName String
    name of sla
    weeklyRetention Number
    Duration in weeks for which a weekly snapshot must be retained in NDB.
    yearlyRetention Number
    Not supported as of now.

    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