Show / Hide Table of Contents

Class Record

Inheritance
System.Object
Resource
CustomResource
Record
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class Record : CustomResource

Constructors

View Source

Record(String, RecordArgs, CustomResourceOptions)

Create a Record resource with the given unique name, arguments, and options.

Declaration
public Record(string name, RecordArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

RecordArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

CreatedOn

The RFC3339 timestamp of when the record was created

Declaration
public Output<string> CreatedOn { get; }
Property Value
Type Description
Output<System.String>
View Source

Data

Map of attributes that constitute the record value. Primarily used for LOC and SRV record types. Either this or value must be specified

Declaration
public Output<RecordData> Data { get; }
Property Value
Type Description
Output<RecordData>
View Source

Hostname

The FQDN of the record

Declaration
public Output<string> Hostname { get; }
Property Value
Type Description
Output<System.String>
View Source

Metadata

A key-value map of string metadata Cloudflare associates with the record

Declaration
public Output<ImmutableDictionary<string, object>> Metadata { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

ModifiedOn

The RFC3339 timestamp of when the record was last modified

Declaration
public Output<string> ModifiedOn { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

The name of the record

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

Priority

The priority of the record

Declaration
public Output<int?> Priority { get; }
Property Value
Type Description
Output<System.Nullable<System.Int32>>
View Source

Proxiable

Shows whether this record can be proxied, must be true if setting proxied=true

Declaration
public Output<bool> Proxiable { get; }
Property Value
Type Description
Output<System.Boolean>
View Source

Proxied

Whether the record gets Cloudflare's origin protection; defaults to false.

Declaration
public Output<bool?> Proxied { get; }
Property Value
Type Description
Output<System.Nullable<System.Boolean>>
View Source

Ttl

The TTL of the record (automatic: '1')

Declaration
public Output<int> Ttl { get; }
Property Value
Type Description
Output<System.Int32>
View Source

Type

The type of the record

Declaration
public Output<string> Type { get; }
Property Value
Type Description
Output<System.String>
View Source

Value

The (string) value of the record. Either this or data must be specified

Declaration
public Output<string> Value { get; }
Property Value
Type Description
Output<System.String>
View Source

ZoneId

The DNS zone ID to add the record to

Declaration
public Output<string> ZoneId { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, RecordState, CustomResourceOptions)

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

Declaration
public static Record Get(string name, Input<string> id, RecordState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

RecordState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Record
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.