1. Packages
  2. Packages
  3. Constellix Provider
  4. API Docs
  5. ARecord
Viewing docs for constellix 0.4.6
published on Friday, Mar 7, 2025 by constellix
Viewing docs for constellix 0.4.6
published on Friday, Mar 7, 2025 by constellix

    Create ARecord Resource

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

    Constructor syntax

    new ARecord(name: string, args: ARecordArgs, opts?: CustomResourceOptions);
    @overload
    def ARecord(resource_name: str,
                args: ARecordArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ARecord(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                source_type: Optional[str] = None,
                ttl: Optional[float] = None,
                domain_id: Optional[str] = None,
                pools: Optional[Sequence[float]] = None,
                record_failover_failover_type: Optional[str] = None,
                name: Optional[str] = None,
                noanswer: Optional[bool] = None,
                note: Optional[str] = None,
                a_record_id: Optional[str] = None,
                record_failover_disable_flag: Optional[str] = None,
                gtd_region: Optional[float] = None,
                record_failover_values: Optional[Sequence[ARecordRecordFailoverValueArgs]] = None,
                record_option: Optional[str] = None,
                roundrobin_failovers: Optional[Sequence[ARecordRoundrobinFailoverArgs]] = None,
                roundrobins: Optional[Sequence[ARecordRoundrobinArgs]] = None,
                geo_location: Optional[Mapping[str, str]] = None,
                contact_ids: Optional[Sequence[float]] = None,
                type: Optional[str] = None)
    func NewARecord(ctx *Context, name string, args ARecordArgs, opts ...ResourceOption) (*ARecord, error)
    public ARecord(string name, ARecordArgs args, CustomResourceOptions? opts = null)
    public ARecord(String name, ARecordArgs args)
    public ARecord(String name, ARecordArgs args, CustomResourceOptions options)
    
    type: constellix:ARecord
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "constellix_arecord" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args ARecordArgs
    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 ARecordArgs
    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 ARecordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ARecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ARecordArgs
    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 arecordResource = new Constellix.ARecord("arecordResource", new()
    {
        SourceType = "string",
        Ttl = 0,
        DomainId = "string",
        Pools = new[]
        {
            0,
        },
        RecordFailoverFailoverType = "string",
        Name = "string",
        Noanswer = false,
        Note = "string",
        ARecordId = "string",
        RecordFailoverDisableFlag = "string",
        GtdRegion = 0,
        RecordFailoverValues = new[]
        {
            new Constellix.Inputs.ARecordRecordFailoverValueArgs
            {
                DisableFlag = "string",
                SortOrder = "string",
                Value = "string",
                CheckId = 0,
            },
        },
        RecordOption = "string",
        RoundrobinFailovers = new[]
        {
            new Constellix.Inputs.ARecordRoundrobinFailoverArgs
            {
                SortOrder = "string",
                Value = "string",
                DisableFlag = "string",
            },
        },
        Roundrobins = new[]
        {
            new Constellix.Inputs.ARecordRoundrobinArgs
            {
                DisableFlag = "string",
                Value = "string",
            },
        },
        GeoLocation = 
        {
            { "string", "string" },
        },
        ContactIds = new[]
        {
            0,
        },
        Type = "string",
    });
    
    example, err := constellix.NewARecord(ctx, "arecordResource", &constellix.ARecordArgs{
    	SourceType: pulumi.String("string"),
    	Ttl:        pulumi.Float64(0),
    	DomainId:   pulumi.String("string"),
    	Pools: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    	RecordFailoverFailoverType: pulumi.String("string"),
    	Name:                       pulumi.String("string"),
    	Noanswer:                   pulumi.Bool(false),
    	Note:                       pulumi.String("string"),
    	ARecordId:                  pulumi.String("string"),
    	RecordFailoverDisableFlag:  pulumi.String("string"),
    	GtdRegion:                  pulumi.Float64(0),
    	RecordFailoverValues: constellix.ARecordRecordFailoverValueArray{
    		&constellix.ARecordRecordFailoverValueArgs{
    			DisableFlag: pulumi.String("string"),
    			SortOrder:   pulumi.String("string"),
    			Value:       pulumi.String("string"),
    			CheckId:     pulumi.Float64(0),
    		},
    	},
    	RecordOption: pulumi.String("string"),
    	RoundrobinFailovers: constellix.ARecordRoundrobinFailoverArray{
    		&constellix.ARecordRoundrobinFailoverArgs{
    			SortOrder:   pulumi.String("string"),
    			Value:       pulumi.String("string"),
    			DisableFlag: pulumi.String("string"),
    		},
    	},
    	Roundrobins: constellix.ARecordRoundrobinArray{
    		&constellix.ARecordRoundrobinArgs{
    			DisableFlag: pulumi.String("string"),
    			Value:       pulumi.String("string"),
    		},
    	},
    	GeoLocation: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	ContactIds: pulumi.Float64Array{
    		pulumi.Float64(0),
    	},
    	Type: pulumi.String("string"),
    })
    
    resource "constellix_arecord" "arecordResource" {
      source_type                   = "string"
      ttl                           = 0
      domain_id                     = "string"
      pools                         = [0]
      record_failover_failover_type = "string"
      name                          = "string"
      noanswer                      = false
      note                          = "string"
      a_record_id                   = "string"
      record_failover_disable_flag  = "string"
      gtd_region                    = 0
      record_failover_values {
        disable_flag = "string"
        sort_order   = "string"
        value        = "string"
        check_id     = 0
      }
      record_option = "string"
      roundrobin_failovers {
        sort_order   = "string"
        value        = "string"
        disable_flag = "string"
      }
      roundrobins {
        disable_flag = "string"
        value        = "string"
      }
      geo_location = {
        "string" = "string"
      }
      contact_ids = [0]
      type        = "string"
    }
    
    var arecordResource = new ARecord("arecordResource", ARecordArgs.builder()
        .sourceType("string")
        .ttl(0.0)
        .domainId("string")
        .pools(0.0)
        .recordFailoverFailoverType("string")
        .name("string")
        .noanswer(false)
        .note("string")
        .aRecordId("string")
        .recordFailoverDisableFlag("string")
        .gtdRegion(0.0)
        .recordFailoverValues(ARecordRecordFailoverValueArgs.builder()
            .disableFlag("string")
            .sortOrder("string")
            .value("string")
            .checkId(0.0)
            .build())
        .recordOption("string")
        .roundrobinFailovers(ARecordRoundrobinFailoverArgs.builder()
            .sortOrder("string")
            .value("string")
            .disableFlag("string")
            .build())
        .roundrobins(ARecordRoundrobinArgs.builder()
            .disableFlag("string")
            .value("string")
            .build())
        .geoLocation(Map.of("string", "string"))
        .contactIds(0.0)
        .type("string")
        .build());
    
    arecord_resource = constellix.ARecord("arecordResource",
        source_type="string",
        ttl=float(0),
        domain_id="string",
        pools=[float(0)],
        record_failover_failover_type="string",
        name="string",
        noanswer=False,
        note="string",
        a_record_id="string",
        record_failover_disable_flag="string",
        gtd_region=float(0),
        record_failover_values=[{
            "disable_flag": "string",
            "sort_order": "string",
            "value": "string",
            "check_id": float(0),
        }],
        record_option="string",
        roundrobin_failovers=[{
            "sort_order": "string",
            "value": "string",
            "disable_flag": "string",
        }],
        roundrobins=[{
            "disable_flag": "string",
            "value": "string",
        }],
        geo_location={
            "string": "string",
        },
        contact_ids=[float(0)],
        type="string")
    
    const arecordResource = new constellix.ARecord("arecordResource", {
        sourceType: "string",
        ttl: 0,
        domainId: "string",
        pools: [0],
        recordFailoverFailoverType: "string",
        name: "string",
        noanswer: false,
        note: "string",
        aRecordId: "string",
        recordFailoverDisableFlag: "string",
        gtdRegion: 0,
        recordFailoverValues: [{
            disableFlag: "string",
            sortOrder: "string",
            value: "string",
            checkId: 0,
        }],
        recordOption: "string",
        roundrobinFailovers: [{
            sortOrder: "string",
            value: "string",
            disableFlag: "string",
        }],
        roundrobins: [{
            disableFlag: "string",
            value: "string",
        }],
        geoLocation: {
            string: "string",
        },
        contactIds: [0],
        type: "string",
    });
    
    type: constellix:ARecord
    properties:
        aRecordId: string
        contactIds:
            - 0
        domainId: string
        geoLocation:
            string: string
        gtdRegion: 0
        name: string
        noanswer: false
        note: string
        pools:
            - 0
        recordFailoverDisableFlag: string
        recordFailoverFailoverType: string
        recordFailoverValues:
            - checkId: 0
              disableFlag: string
              sortOrder: string
              value: string
        recordOption: string
        roundrobinFailovers:
            - disableFlag: string
              sortOrder: string
              value: string
        roundrobins:
            - disableFlag: string
              value: string
        sourceType: string
        ttl: 0
        type: string
    

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

    domain_id string
    source_type string
    ttl number
    a_record_id string
    The constellix calculated id of the A resource.
    contact_ids list(number)
    geo_location map(string)
    gtd_region number
    name string
    noanswer bool
    note string
    pools list(number)
    record_failover_disable_flag string
    record_failover_failover_type string
    record_failover_values list(object)
    record_option string
    roundrobin_failovers list(object)
    roundrobins list(object)
    type string
    domainId String
    sourceType String
    ttl Number
    aRecordId String
    The constellix calculated id of the A resource.
    contactIds List<Number>
    geoLocation Map<String>
    gtdRegion Number
    name String
    noanswer Boolean
    note String
    pools List<Number>
    recordFailoverDisableFlag String
    recordFailoverFailoverType String
    recordFailoverValues List<Property Map>
    recordOption String
    roundrobinFailovers List<Property Map>
    roundrobins List<Property Map>
    type String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ARecord 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 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 ARecord Resource

    Get an existing ARecord 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?: ARecordState, opts?: CustomResourceOptions): ARecord
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            a_record_id: Optional[str] = None,
            contact_ids: Optional[Sequence[float]] = None,
            domain_id: Optional[str] = None,
            geo_location: Optional[Mapping[str, str]] = None,
            gtd_region: Optional[float] = None,
            name: Optional[str] = None,
            noanswer: Optional[bool] = None,
            note: Optional[str] = None,
            pools: Optional[Sequence[float]] = None,
            record_failover_disable_flag: Optional[str] = None,
            record_failover_failover_type: Optional[str] = None,
            record_failover_values: Optional[Sequence[ARecordRecordFailoverValueArgs]] = None,
            record_option: Optional[str] = None,
            roundrobin_failovers: Optional[Sequence[ARecordRoundrobinFailoverArgs]] = None,
            roundrobins: Optional[Sequence[ARecordRoundrobinArgs]] = None,
            source_type: Optional[str] = None,
            ttl: Optional[float] = None,
            type: Optional[str] = None) -> ARecord
    func GetARecord(ctx *Context, name string, id IDInput, state *ARecordState, opts ...ResourceOption) (*ARecord, error)
    public static ARecord Get(string name, Input<string> id, ARecordState? state, CustomResourceOptions? opts = null)
    public static ARecord get(String name, Output<String> id, ARecordState state, CustomResourceOptions options)
    resources:  _:    type: constellix:ARecord    get:      id: ${id}
    import {
      to = constellix_arecord.example
      id = "${id}"
    }
    
    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:
    a_record_id string
    The constellix calculated id of the A resource.
    contact_ids list(number)
    domain_id string
    geo_location map(string)
    gtd_region number
    name string
    noanswer bool
    note string
    pools list(number)
    record_failover_disable_flag string
    record_failover_failover_type string
    record_failover_values list(object)
    record_option string
    roundrobin_failovers list(object)
    roundrobins list(object)
    source_type string
    ttl number
    type string
    aRecordId String
    The constellix calculated id of the A resource.
    contactIds List<Number>
    domainId String
    geoLocation Map<String>
    gtdRegion Number
    name String
    noanswer Boolean
    note String
    pools List<Number>
    recordFailoverDisableFlag String
    recordFailoverFailoverType String
    recordFailoverValues List<Property Map>
    recordOption String
    roundrobinFailovers List<Property Map>
    roundrobins List<Property Map>
    sourceType String
    ttl Number
    type String

    Supporting Types

    ARecordRecordFailoverValue, ARecordRecordFailoverValueArgs

    DisableFlag string
    SortOrder string
    Value string
    CheckId double
    DisableFlag string
    SortOrder string
    Value string
    CheckId float64
    disable_flag string
    sort_order string
    value string
    check_id number
    disableFlag String
    sortOrder String
    value String
    checkId Double
    disableFlag string
    sortOrder string
    value string
    checkId number
    disableFlag String
    sortOrder String
    value String
    checkId Number

    ARecordRoundrobin, ARecordRoundrobinArgs

    DisableFlag string
    Value string
    DisableFlag string
    Value string
    disable_flag string
    value string
    disableFlag String
    value String
    disableFlag string
    value string
    disableFlag String
    value String

    ARecordRoundrobinFailover, ARecordRoundrobinFailoverArgs

    SortOrder string
    Value string
    DisableFlag string
    SortOrder string
    Value string
    DisableFlag string
    sort_order string
    value string
    disable_flag string
    sortOrder String
    value String
    disableFlag String
    sortOrder string
    value string
    disableFlag string
    sortOrder String
    value String
    disableFlag String

    Package Details

    Repository
    constellix constellix/terraform-provider-constellix
    License
    Notes
    This Pulumi package is based on the constellix Terraform Provider.
    Viewing docs for constellix 0.4.6
    published on Friday, Mar 7, 2025 by constellix

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial