1. Packages
  2. Constellix Provider
  3. API Docs
  4. SrvRecord
constellix 0.4.6 published on Friday, Mar 7, 2025 by constellix

constellix.SrvRecord

Explore with Pulumi AI

Create SrvRecord Resource

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

Constructor syntax

new SrvRecord(name: string, args: SrvRecordArgs, opts?: CustomResourceOptions);
@overload
def SrvRecord(resource_name: str,
              args: SrvRecordArgs,
              opts: Optional[ResourceOptions] = None)

@overload
def SrvRecord(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              domain_id: Optional[str] = None,
              roundrobins: Optional[Sequence[SrvRecordRoundrobinArgs]] = None,
              source_type: Optional[str] = None,
              ttl: Optional[float] = None,
              gtd_region: Optional[float] = None,
              name: Optional[str] = None,
              noanswer: Optional[bool] = None,
              note: Optional[str] = None,
              srv_record_id: Optional[str] = None,
              type: Optional[str] = None)
func NewSrvRecord(ctx *Context, name string, args SrvRecordArgs, opts ...ResourceOption) (*SrvRecord, error)
public SrvRecord(string name, SrvRecordArgs args, CustomResourceOptions? opts = null)
public SrvRecord(String name, SrvRecordArgs args)
public SrvRecord(String name, SrvRecordArgs args, CustomResourceOptions options)
type: constellix:SrvRecord
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SrvRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SrvRecordArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SrvRecordArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SrvRecordArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SrvRecordArgs
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 srvRecordResource = new Constellix.SrvRecord("srvRecordResource", new()
{
    DomainId = "string",
    Roundrobins = new[]
    {
        new Constellix.Inputs.SrvRecordRoundrobinArgs
        {
            DisableFlag = false,
            Port = 0,
            Priority = 0,
            Value = "string",
            Weight = 0,
        },
    },
    SourceType = "string",
    Ttl = 0,
    GtdRegion = 0,
    Name = "string",
    Noanswer = false,
    Note = "string",
    SrvRecordId = "string",
    Type = "string",
});
Copy
example, err := constellix.NewSrvRecord(ctx, "srvRecordResource", &constellix.SrvRecordArgs{
DomainId: pulumi.String("string"),
Roundrobins: .SrvRecordRoundrobinArray{
&.SrvRecordRoundrobinArgs{
DisableFlag: pulumi.Bool(false),
Port: pulumi.Float64(0),
Priority: pulumi.Float64(0),
Value: pulumi.String("string"),
Weight: pulumi.Float64(0),
},
},
SourceType: pulumi.String("string"),
Ttl: pulumi.Float64(0),
GtdRegion: pulumi.Float64(0),
Name: pulumi.String("string"),
Noanswer: pulumi.Bool(false),
Note: pulumi.String("string"),
SrvRecordId: pulumi.String("string"),
Type: pulumi.String("string"),
})
Copy
var srvRecordResource = new SrvRecord("srvRecordResource", SrvRecordArgs.builder()
    .domainId("string")
    .roundrobins(SrvRecordRoundrobinArgs.builder()
        .disableFlag(false)
        .port(0)
        .priority(0)
        .value("string")
        .weight(0)
        .build())
    .sourceType("string")
    .ttl(0)
    .gtdRegion(0)
    .name("string")
    .noanswer(false)
    .note("string")
    .srvRecordId("string")
    .type("string")
    .build());
Copy
srv_record_resource = constellix.SrvRecord("srvRecordResource",
    domain_id="string",
    roundrobins=[{
        "disable_flag": False,
        "port": 0,
        "priority": 0,
        "value": "string",
        "weight": 0,
    }],
    source_type="string",
    ttl=0,
    gtd_region=0,
    name="string",
    noanswer=False,
    note="string",
    srv_record_id="string",
    type="string")
Copy
const srvRecordResource = new constellix.SrvRecord("srvRecordResource", {
    domainId: "string",
    roundrobins: [{
        disableFlag: false,
        port: 0,
        priority: 0,
        value: "string",
        weight: 0,
    }],
    sourceType: "string",
    ttl: 0,
    gtdRegion: 0,
    name: "string",
    noanswer: false,
    note: "string",
    srvRecordId: "string",
    type: "string",
});
Copy
type: constellix:SrvRecord
properties:
    domainId: string
    gtdRegion: 0
    name: string
    noanswer: false
    note: string
    roundrobins:
        - disableFlag: false
          port: 0
          priority: 0
          value: string
          weight: 0
    sourceType: string
    srvRecordId: string
    ttl: 0
    type: string
Copy

SrvRecord 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 SrvRecord resource accepts the following input properties:

DomainId This property is required. string
Roundrobins This property is required. List<SrvRecordRoundrobin>
SourceType This property is required. string
Ttl This property is required. double
GtdRegion double
Name string
Noanswer bool
Note string
SrvRecordId string
Type string
DomainId This property is required. string
Roundrobins This property is required. []SrvRecordRoundrobinArgs
SourceType This property is required. string
Ttl This property is required. float64
GtdRegion float64
Name string
Noanswer bool
Note string
SrvRecordId string
Type string
domainId This property is required. String
roundrobins This property is required. List<SrvRecordRoundrobin>
sourceType This property is required. String
ttl This property is required. Double
gtdRegion Double
name String
noanswer Boolean
note String
srvRecordId String
type String
domainId This property is required. string
roundrobins This property is required. SrvRecordRoundrobin[]
sourceType This property is required. string
ttl This property is required. number
gtdRegion number
name string
noanswer boolean
note string
srvRecordId string
type string
domain_id This property is required. str
roundrobins This property is required. Sequence[SrvRecordRoundrobinArgs]
source_type This property is required. str
ttl This property is required. float
gtd_region float
name str
noanswer bool
note str
srv_record_id str
type str
domainId This property is required. String
roundrobins This property is required. List<Property Map>
sourceType This property is required. String
ttl This property is required. Number
gtdRegion Number
name String
noanswer Boolean
note String
srvRecordId String
type String

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SrvRecord Resource

Get an existing SrvRecord 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?: SrvRecordState, opts?: CustomResourceOptions): SrvRecord
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_id: Optional[str] = None,
        gtd_region: Optional[float] = None,
        name: Optional[str] = None,
        noanswer: Optional[bool] = None,
        note: Optional[str] = None,
        roundrobins: Optional[Sequence[SrvRecordRoundrobinArgs]] = None,
        source_type: Optional[str] = None,
        srv_record_id: Optional[str] = None,
        ttl: Optional[float] = None,
        type: Optional[str] = None) -> SrvRecord
func GetSrvRecord(ctx *Context, name string, id IDInput, state *SrvRecordState, opts ...ResourceOption) (*SrvRecord, error)
public static SrvRecord Get(string name, Input<string> id, SrvRecordState? state, CustomResourceOptions? opts = null)
public static SrvRecord get(String name, Output<String> id, SrvRecordState state, CustomResourceOptions options)
resources:  _:    type: constellix:SrvRecord    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
domainId String
gtdRegion Double
name String
noanswer Boolean
note String
roundrobins List<SrvRecordRoundrobin>
sourceType String
srvRecordId String
ttl Double
type String
domainId string
gtdRegion number
name string
noanswer boolean
note string
roundrobins SrvRecordRoundrobin[]
sourceType string
srvRecordId string
ttl number
type string
domainId String
gtdRegion Number
name String
noanswer Boolean
note String
roundrobins List<Property Map>
sourceType String
srvRecordId String
ttl Number
type String

Supporting Types

SrvRecordRoundrobin
, SrvRecordRoundrobinArgs

DisableFlag bool
Port double
Priority double
Value string
Weight double
DisableFlag bool
Port float64
Priority float64
Value string
Weight float64
disableFlag Boolean
port Double
priority Double
value String
weight Double
disableFlag boolean
port number
priority number
value string
weight number
disable_flag bool
port float
priority float
value str
weight float
disableFlag Boolean
port Number
priority Number
value String
weight Number

Package Details

Repository
constellix constellix/terraform-provider-constellix
License
Notes
This Pulumi package is based on the constellix Terraform Provider.