nutanix.NdbSla
Explore with Pulumi AI
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The NdbSla resource accepts the following input properties:
- 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 string
- Description of profile
- Monthly
Retention int - Duration in months for which a monthly snapshot must be retained in NDB
- Name string
- 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.
- 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 string
- Description of profile
- Monthly
Retention int - Duration in months for which a monthly snapshot must be retained in NDB
- Name string
- 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.
- continuous
Retention Integer - Duration in days for which transaction logs are retained in NDB.
- daily
Retention Integer - Duration in days for which a daily snapshot must be retained in NDB.
- description String
- Description of profile
- monthly
Retention Integer - Duration in months for which a monthly snapshot must be retained in NDB
- name String
- Name of profile
- quarterly
Retention Integer - Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
- weekly
Retention Integer - Duration in weeks for which a weekly snapshot must be retained in NDB.
- yearly
Retention Integer - Not supported as of now.
- continuous
Retention number - Duration in days for which transaction logs are retained in NDB.
- daily
Retention number - Duration in days for which a daily snapshot must be retained in NDB.
- description string
- Description of profile
- monthly
Retention number - Duration in months for which a monthly snapshot must be retained in NDB
- name string
- Name of profile
- quarterly
Retention number - Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
- weekly
Retention number - Duration in weeks for which a weekly snapshot must be retained in NDB.
- yearly
Retention 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.
- continuous
Retention Number - Duration in days for which transaction logs are retained in NDB.
- daily
Retention Number - Duration in days for which a daily snapshot must be retained in NDB.
- description String
- Description of profile
- monthly
Retention Number - Duration in months for which a monthly snapshot must be retained in NDB
- name String
- Name of profile
- quarterly
Retention Number - Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
- weekly
Retention Number - Duration in weeks for which a weekly snapshot must be retained in NDB.
- yearly
Retention 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:
- Current
Active stringFrequency - slas current frequency
- Date
Created string - sla created data
- Date
Modified string - sla last modified date
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - 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 string - name of sla
- Current
Active stringFrequency - slas current frequency
- Date
Created string - sla created data
- Date
Modified string - sla last modified date
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - 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 string - name of sla
- current
Active StringFrequency - slas current frequency
- date
Created String - sla created data
- date
Modified String - sla last modified date
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - owner id
- pitr
Enabled Boolean - pitr enabled
- reference
Count Integer - reference count
- system
Sla Boolean - refers whether sla is custom or built-in
- unique
Name String - name of sla
- current
Active stringFrequency - slas current frequency
- date
Created string - sla created data
- date
Modified string - sla last modified date
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Id string - owner id
- pitr
Enabled boolean - pitr enabled
- reference
Count number - reference count
- system
Sla boolean - refers whether sla is custom or built-in
- unique
Name string - name of sla
- current_
active_ strfrequency - 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
- current
Active StringFrequency - slas current frequency
- date
Created String - sla created data
- date
Modified String - sla last modified date
- id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - owner id
- pitr
Enabled Boolean - pitr enabled
- reference
Count Number - reference count
- system
Sla Boolean - refers whether sla is custom or built-in
- unique
Name 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.
- Continuous
Retention int - Duration in days for which transaction logs are retained in NDB.
- Current
Active stringFrequency - slas current frequency
- Daily
Retention int - Duration in days for which a daily snapshot must be retained in NDB.
- Date
Created string - sla created data
- Date
Modified string - sla last modified date
- Description string
- Description of profile
- Monthly
Retention int - Duration in months for which a monthly snapshot must be retained in NDB
- Name string
- Name of profile
- Owner
Id string - 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 string - 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.
- Continuous
Retention int - Duration in days for which transaction logs are retained in NDB.
- Current
Active stringFrequency - slas current frequency
- Daily
Retention int - Duration in days for which a daily snapshot must be retained in NDB.
- Date
Created string - sla created data
- Date
Modified string - sla last modified date
- Description string
- Description of profile
- Monthly
Retention int - Duration in months for which a monthly snapshot must be retained in NDB
- Name string
- Name of profile
- Owner
Id string - 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 string - 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.
- continuous
Retention Integer - Duration in days for which transaction logs are retained in NDB.
- current
Active StringFrequency - slas current frequency
- daily
Retention Integer - Duration in days for which a daily snapshot must be retained in NDB.
- date
Created String - sla created data
- date
Modified String - sla last modified date
- description String
- Description of profile
- monthly
Retention Integer - Duration in months for which a monthly snapshot must be retained in NDB
- name String
- Name of profile
- owner
Id String - owner id
- pitr
Enabled Boolean - pitr enabled
- quarterly
Retention Integer - Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
- reference
Count Integer - reference count
- system
Sla Boolean - refers whether sla is custom or built-in
- unique
Name String - name of sla
- weekly
Retention Integer - Duration in weeks for which a weekly snapshot must be retained in NDB.
- yearly
Retention Integer - Not supported as of now.
- continuous
Retention number - Duration in days for which transaction logs are retained in NDB.
- current
Active stringFrequency - slas current frequency
- daily
Retention number - Duration in days for which a daily snapshot must be retained in NDB.
- date
Created string - sla created data
- date
Modified string - sla last modified date
- description string
- Description of profile
- monthly
Retention number - Duration in months for which a monthly snapshot must be retained in NDB
- name string
- Name of profile
- owner
Id string - owner id
- pitr
Enabled boolean - pitr enabled
- quarterly
Retention number - Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
- reference
Count number - reference count
- system
Sla boolean - refers whether sla is custom or built-in
- unique
Name string - name of sla
- weekly
Retention number - Duration in weeks for which a weekly snapshot must be retained in NDB.
- yearly
Retention number - Not supported as of now.
- continuous_
retention int - Duration in days for which transaction logs are retained in NDB.
- current_
active_ strfrequency - 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.
- continuous
Retention Number - Duration in days for which transaction logs are retained in NDB.
- current
Active StringFrequency - slas current frequency
- daily
Retention Number - Duration in days for which a daily snapshot must be retained in NDB.
- date
Created String - sla created data
- date
Modified String - sla last modified date
- description String
- Description of profile
- monthly
Retention Number - Duration in months for which a monthly snapshot must be retained in NDB
- name String
- Name of profile
- owner
Id String - owner id
- pitr
Enabled Boolean - pitr enabled
- quarterly
Retention Number - Duration in number of quarters for which a quarterly snapshot must be retained in NDB.
- reference
Count Number - reference count
- system
Sla Boolean - refers whether sla is custom or built-in
- unique
Name String - name of sla
- weekly
Retention Number - Duration in weeks for which a weekly snapshot must be retained in NDB.
- yearly
Retention 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.