Class Record
Inherited Members
Namespace: Pulumi.Cloudflare
Assembly: Pulumi.Cloudflare.dll
Syntax
public class Record : CustomResource
Constructors
View SourceRecord(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 SourceCreatedOn
The RFC3339 timestamp of when the record was created
Declaration
public Output<string> CreatedOn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
Hostname
The FQDN of the record
Declaration
public Output<string> Hostname { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
ModifiedOn
The RFC3339 timestamp of when the record was last modified
Declaration
public Output<string> ModifiedOn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the record
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Priority
The priority of the record
Declaration
public Output<int?> Priority { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
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> |
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>> |
Ttl
The TTL of the record (automatic: '1')
Declaration
public Output<int> Ttl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Int32> |
Type
The type of the record
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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> |
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 SourceGet(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 |