Use this data source to retrieve information about an existing Datadog reference table. Query by either table_name or id (mutually exclusive). Supports all source types including cloud storage (S3, GCS, Azure) and external integrations (ServiceNow, Salesforce, Databricks, Snowflake, LOCAL_FILE).
Using getReferenceTable
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getReferenceTable(args: GetReferenceTableArgs, opts?: InvokeOptions): Promise<GetReferenceTableResult>
function getReferenceTableOutput(args: GetReferenceTableOutputArgs, opts?: InvokeOptions): Output<GetReferenceTableResult>def get_reference_table(file_metadata: Optional[GetReferenceTableFileMetadata] = None,
id: Optional[str] = None,
schema: Optional[GetReferenceTableSchema] = None,
table_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetReferenceTableResult
def get_reference_table_output(file_metadata: Optional[pulumi.Input[GetReferenceTableFileMetadataArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
schema: Optional[pulumi.Input[GetReferenceTableSchemaArgs]] = None,
table_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetReferenceTableResult]func LookupReferenceTable(ctx *Context, args *LookupReferenceTableArgs, opts ...InvokeOption) (*LookupReferenceTableResult, error)
func LookupReferenceTableOutput(ctx *Context, args *LookupReferenceTableOutputArgs, opts ...InvokeOption) LookupReferenceTableResultOutput> Note: This function is named LookupReferenceTable in the Go SDK.
public static class GetReferenceTable
{
public static Task<GetReferenceTableResult> InvokeAsync(GetReferenceTableArgs args, InvokeOptions? opts = null)
public static Output<GetReferenceTableResult> Invoke(GetReferenceTableInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetReferenceTableResult> getReferenceTable(GetReferenceTableArgs args, InvokeOptions options)
public static Output<GetReferenceTableResult> getReferenceTable(GetReferenceTableArgs args, InvokeOptions options)
fn::invoke:
function: datadog:index/getReferenceTable:getReferenceTable
arguments:
# arguments dictionaryThe following arguments are supported:
- File
Metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- Id string
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- Schema
Get
Reference Table Schema - The schema definition for the reference table.
- Table
Name string - The name of the reference table. Either id or table_name must be specified, but not both.
- File
Metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- Id string
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- Schema
Get
Reference Table Schema - The schema definition for the reference table.
- Table
Name string - The name of the reference table. Either id or table_name must be specified, but not both.
- file
Metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- id String
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- schema
Get
Reference Table Schema - The schema definition for the reference table.
- table
Name String - The name of the reference table. Either id or table_name must be specified, but not both.
- file
Metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- id string
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- schema
Get
Reference Table Schema - The schema definition for the reference table.
- table
Name string - The name of the reference table. Either id or table_name must be specified, but not both.
- file_
metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- id str
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- schema
Get
Reference Table Schema - The schema definition for the reference table.
- table_
name str - The name of the reference table. Either id or table_name must be specified, but not both.
- file
Metadata Property Map - File metadata for the reference table. Contains sync settings for cloud storage sources.
- id String
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- schema Property Map
- The schema definition for the reference table.
- table
Name String - The name of the reference table. Either id or table_name must be specified, but not both.
getReferenceTable Result
The following output properties are available:
- Created
By string - UUID of the user who created the reference table.
- Description string
- The description of the reference table.
- Id string
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- Last
Updated stringBy - UUID of the user who last updated the reference table.
- Row
Count int - The number of successfully processed rows in the reference table.
- Source string
- The source type for the reference table (e.g., S3, GCS, AZURE, SERVICENOW, SALESFORCE, DATABRICKS, SNOWFLAKE, LOCAL_FILE).
- Status string
- The status of the reference table (e.g., DONE, PROCESSING, ERROR).
- Table
Name string - The name of the reference table. Either id or table_name must be specified, but not both.
- List<string>
- The tags associated with the reference table.
- Updated
At string - The timestamp of the last update to the reference table in ISO 8601 format.
- File
Metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- Schema
Get
Reference Table Schema - The schema definition for the reference table.
- Created
By string - UUID of the user who created the reference table.
- Description string
- The description of the reference table.
- Id string
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- Last
Updated stringBy - UUID of the user who last updated the reference table.
- Row
Count int - The number of successfully processed rows in the reference table.
- Source string
- The source type for the reference table (e.g., S3, GCS, AZURE, SERVICENOW, SALESFORCE, DATABRICKS, SNOWFLAKE, LOCAL_FILE).
- Status string
- The status of the reference table (e.g., DONE, PROCESSING, ERROR).
- Table
Name string - The name of the reference table. Either id or table_name must be specified, but not both.
- []string
- The tags associated with the reference table.
- Updated
At string - The timestamp of the last update to the reference table in ISO 8601 format.
- File
Metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- Schema
Get
Reference Table Schema - The schema definition for the reference table.
- created
By String - UUID of the user who created the reference table.
- description String
- The description of the reference table.
- id String
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- last
Updated StringBy - UUID of the user who last updated the reference table.
- row
Count Integer - The number of successfully processed rows in the reference table.
- source String
- The source type for the reference table (e.g., S3, GCS, AZURE, SERVICENOW, SALESFORCE, DATABRICKS, SNOWFLAKE, LOCAL_FILE).
- status String
- The status of the reference table (e.g., DONE, PROCESSING, ERROR).
- table
Name String - The name of the reference table. Either id or table_name must be specified, but not both.
- List<String>
- The tags associated with the reference table.
- updated
At String - The timestamp of the last update to the reference table in ISO 8601 format.
- file
Metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- schema
Get
Reference Table Schema - The schema definition for the reference table.
- created
By string - UUID of the user who created the reference table.
- description string
- The description of the reference table.
- id string
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- last
Updated stringBy - UUID of the user who last updated the reference table.
- row
Count number - The number of successfully processed rows in the reference table.
- source string
- The source type for the reference table (e.g., S3, GCS, AZURE, SERVICENOW, SALESFORCE, DATABRICKS, SNOWFLAKE, LOCAL_FILE).
- status string
- The status of the reference table (e.g., DONE, PROCESSING, ERROR).
- table
Name string - The name of the reference table. Either id or table_name must be specified, but not both.
- string[]
- The tags associated with the reference table.
- updated
At string - The timestamp of the last update to the reference table in ISO 8601 format.
- file
Metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- schema
Get
Reference Table Schema - The schema definition for the reference table.
- created_
by str - UUID of the user who created the reference table.
- description str
- The description of the reference table.
- id str
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- last_
updated_ strby - UUID of the user who last updated the reference table.
- row_
count int - The number of successfully processed rows in the reference table.
- source str
- The source type for the reference table (e.g., S3, GCS, AZURE, SERVICENOW, SALESFORCE, DATABRICKS, SNOWFLAKE, LOCAL_FILE).
- status str
- The status of the reference table (e.g., DONE, PROCESSING, ERROR).
- table_
name str - The name of the reference table. Either id or table_name must be specified, but not both.
- Sequence[str]
- The tags associated with the reference table.
- updated_
at str - The timestamp of the last update to the reference table in ISO 8601 format.
- file_
metadata GetReference Table File Metadata - File metadata for the reference table. Contains sync settings for cloud storage sources.
- schema
Get
Reference Table Schema - The schema definition for the reference table.
- created
By String - UUID of the user who created the reference table.
- description String
- The description of the reference table.
- id String
- The UUID of the reference table. Either id or table_name must be specified, but not both.
- last
Updated StringBy - UUID of the user who last updated the reference table.
- row
Count Number - The number of successfully processed rows in the reference table.
- source String
- The source type for the reference table (e.g., S3, GCS, AZURE, SERVICENOW, SALESFORCE, DATABRICKS, SNOWFLAKE, LOCAL_FILE).
- status String
- The status of the reference table (e.g., DONE, PROCESSING, ERROR).
- table
Name String - The name of the reference table. Either id or table_name must be specified, but not both.
- List<String>
- The tags associated with the reference table.
- updated
At String - The timestamp of the last update to the reference table in ISO 8601 format.
- file
Metadata Property Map - File metadata for the reference table. Contains sync settings for cloud storage sources.
- schema Property Map
- The schema definition for the reference table.
Supporting Types
GetReferenceTableFileMetadata
- Error
Message string - Error message from the last sync attempt, if any.
- Error
Row intCount - The number of rows that failed to sync.
- Error
Type string - The type of error that occurred during file processing. Only present for cloud storage sources.
- Sync
Enabled bool - Whether automatic sync is enabled for this table. Only present for cloud storage sources (S3, GCS, Azure).
- Access
Details GetReference Table File Metadata Access Details - Cloud storage access configuration. Only present for cloud storage sources (S3, GCS, Azure).
- Error
Message string - Error message from the last sync attempt, if any.
- Error
Row intCount - The number of rows that failed to sync.
- Error
Type string - The type of error that occurred during file processing. Only present for cloud storage sources.
- Sync
Enabled bool - Whether automatic sync is enabled for this table. Only present for cloud storage sources (S3, GCS, Azure).
- Access
Details GetReference Table File Metadata Access Details - Cloud storage access configuration. Only present for cloud storage sources (S3, GCS, Azure).
- error
Message String - Error message from the last sync attempt, if any.
- error
Row IntegerCount - The number of rows that failed to sync.
- error
Type String - The type of error that occurred during file processing. Only present for cloud storage sources.
- sync
Enabled Boolean - Whether automatic sync is enabled for this table. Only present for cloud storage sources (S3, GCS, Azure).
- access
Details GetReference Table File Metadata Access Details - Cloud storage access configuration. Only present for cloud storage sources (S3, GCS, Azure).
- error
Message string - Error message from the last sync attempt, if any.
- error
Row numberCount - The number of rows that failed to sync.
- error
Type string - The type of error that occurred during file processing. Only present for cloud storage sources.
- sync
Enabled boolean - Whether automatic sync is enabled for this table. Only present for cloud storage sources (S3, GCS, Azure).
- access
Details GetReference Table File Metadata Access Details - Cloud storage access configuration. Only present for cloud storage sources (S3, GCS, Azure).
- error_
message str - Error message from the last sync attempt, if any.
- error_
row_ intcount - The number of rows that failed to sync.
- error_
type str - The type of error that occurred during file processing. Only present for cloud storage sources.
- sync_
enabled bool - Whether automatic sync is enabled for this table. Only present for cloud storage sources (S3, GCS, Azure).
- access_
details GetReference Table File Metadata Access Details - Cloud storage access configuration. Only present for cloud storage sources (S3, GCS, Azure).
- error
Message String - Error message from the last sync attempt, if any.
- error
Row NumberCount - The number of rows that failed to sync.
- error
Type String - The type of error that occurred during file processing. Only present for cloud storage sources.
- sync
Enabled Boolean - Whether automatic sync is enabled for this table. Only present for cloud storage sources (S3, GCS, Azure).
- access
Details Property Map - Cloud storage access configuration. Only present for cloud storage sources (S3, GCS, Azure).
GetReferenceTableFileMetadataAccessDetails
- Aws
Detail GetReference Table File Metadata Access Details Aws Detail - AWS S3 access configuration.
- Azure
Detail GetReference Table File Metadata Access Details Azure Detail - Azure Blob Storage access configuration.
- Gcp
Detail GetReference Table File Metadata Access Details Gcp Detail - Google Cloud Storage access configuration.
- Aws
Detail GetReference Table File Metadata Access Details Aws Detail - AWS S3 access configuration.
- Azure
Detail GetReference Table File Metadata Access Details Azure Detail - Azure Blob Storage access configuration.
- Gcp
Detail GetReference Table File Metadata Access Details Gcp Detail - Google Cloud Storage access configuration.
- aws
Detail GetReference Table File Metadata Access Details Aws Detail - AWS S3 access configuration.
- azure
Detail GetReference Table File Metadata Access Details Azure Detail - Azure Blob Storage access configuration.
- gcp
Detail GetReference Table File Metadata Access Details Gcp Detail - Google Cloud Storage access configuration.
- aws
Detail GetReference Table File Metadata Access Details Aws Detail - AWS S3 access configuration.
- azure
Detail GetReference Table File Metadata Access Details Azure Detail - Azure Blob Storage access configuration.
- gcp
Detail GetReference Table File Metadata Access Details Gcp Detail - Google Cloud Storage access configuration.
- aws_
detail GetReference Table File Metadata Access Details Aws Detail - AWS S3 access configuration.
- azure_
detail GetReference Table File Metadata Access Details Azure Detail - Azure Blob Storage access configuration.
- gcp_
detail GetReference Table File Metadata Access Details Gcp Detail - Google Cloud Storage access configuration.
- aws
Detail Property Map - AWS S3 access configuration.
- azure
Detail Property Map - Azure Blob Storage access configuration.
- gcp
Detail Property Map - Google Cloud Storage access configuration.
GetReferenceTableFileMetadataAccessDetailsAwsDetail
- Aws
Account stringId - The ID of the AWS account.
- Aws
Bucket stringName - The name of the AWS S3 bucket.
- File
Path string - The relative file path from the AWS S3 bucket root to the CSV file.
- Aws
Account stringId - The ID of the AWS account.
- Aws
Bucket stringName - The name of the AWS S3 bucket.
- File
Path string - The relative file path from the AWS S3 bucket root to the CSV file.
- aws
Account StringId - The ID of the AWS account.
- aws
Bucket StringName - The name of the AWS S3 bucket.
- file
Path String - The relative file path from the AWS S3 bucket root to the CSV file.
- aws
Account stringId - The ID of the AWS account.
- aws
Bucket stringName - The name of the AWS S3 bucket.
- file
Path string - The relative file path from the AWS S3 bucket root to the CSV file.
- aws_
account_ strid - The ID of the AWS account.
- aws_
bucket_ strname - The name of the AWS S3 bucket.
- file_
path str - The relative file path from the AWS S3 bucket root to the CSV file.
- aws
Account StringId - The ID of the AWS account.
- aws
Bucket StringName - The name of the AWS S3 bucket.
- file
Path String - The relative file path from the AWS S3 bucket root to the CSV file.
GetReferenceTableFileMetadataAccessDetailsAzureDetail
- Azure
Client stringId - The Azure client ID (application ID).
- Azure
Container stringName - The name of the Azure container.
- Azure
Storage stringAccount Name - The name of the Azure storage account.
- Azure
Tenant stringId - The ID of the Azure tenant.
- File
Path string - The relative file path from the Azure container root to the CSV file.
- Azure
Client stringId - The Azure client ID (application ID).
- Azure
Container stringName - The name of the Azure container.
- Azure
Storage stringAccount Name - The name of the Azure storage account.
- Azure
Tenant stringId - The ID of the Azure tenant.
- File
Path string - The relative file path from the Azure container root to the CSV file.
- azure
Client StringId - The Azure client ID (application ID).
- azure
Container StringName - The name of the Azure container.
- azure
Storage StringAccount Name - The name of the Azure storage account.
- azure
Tenant StringId - The ID of the Azure tenant.
- file
Path String - The relative file path from the Azure container root to the CSV file.
- azure
Client stringId - The Azure client ID (application ID).
- azure
Container stringName - The name of the Azure container.
- azure
Storage stringAccount Name - The name of the Azure storage account.
- azure
Tenant stringId - The ID of the Azure tenant.
- file
Path string - The relative file path from the Azure container root to the CSV file.
- azure_
client_ strid - The Azure client ID (application ID).
- azure_
container_ strname - The name of the Azure container.
- azure_
storage_ straccount_ name - The name of the Azure storage account.
- azure_
tenant_ strid - The ID of the Azure tenant.
- file_
path str - The relative file path from the Azure container root to the CSV file.
- azure
Client StringId - The Azure client ID (application ID).
- azure
Container StringName - The name of the Azure container.
- azure
Storage StringAccount Name - The name of the Azure storage account.
- azure
Tenant StringId - The ID of the Azure tenant.
- file
Path String - The relative file path from the Azure container root to the CSV file.
GetReferenceTableFileMetadataAccessDetailsGcpDetail
- File
Path string - The relative file path from the GCS bucket root to the CSV file.
- Gcp
Bucket stringName - The name of the GCP bucket.
- Gcp
Project stringId - The ID of the GCP project.
- Gcp
Service stringAccount Email - The email of the GCP service account used to access the bucket.
- File
Path string - The relative file path from the GCS bucket root to the CSV file.
- Gcp
Bucket stringName - The name of the GCP bucket.
- Gcp
Project stringId - The ID of the GCP project.
- Gcp
Service stringAccount Email - The email of the GCP service account used to access the bucket.
- file
Path String - The relative file path from the GCS bucket root to the CSV file.
- gcp
Bucket StringName - The name of the GCP bucket.
- gcp
Project StringId - The ID of the GCP project.
- gcp
Service StringAccount Email - The email of the GCP service account used to access the bucket.
- file
Path string - The relative file path from the GCS bucket root to the CSV file.
- gcp
Bucket stringName - The name of the GCP bucket.
- gcp
Project stringId - The ID of the GCP project.
- gcp
Service stringAccount Email - The email of the GCP service account used to access the bucket.
- file_
path str - The relative file path from the GCS bucket root to the CSV file.
- gcp_
bucket_ strname - The name of the GCP bucket.
- gcp_
project_ strid - The ID of the GCP project.
- gcp_
service_ straccount_ email - The email of the GCP service account used to access the bucket.
- file
Path String - The relative file path from the GCS bucket root to the CSV file.
- gcp
Bucket StringName - The name of the GCP bucket.
- gcp
Project StringId - The ID of the GCP project.
- gcp
Service StringAccount Email - The email of the GCP service account used to access the bucket.
GetReferenceTableSchema
- Primary
Keys List<string> - List of field names that serve as primary keys for the table.
- Fields
List<Get
Reference Table Schema Field> - List of fields in the table schema.
- Primary
Keys []string - List of field names that serve as primary keys for the table.
- Fields
[]Get
Reference Table Schema Field - List of fields in the table schema.
- primary
Keys List<String> - List of field names that serve as primary keys for the table.
- fields
List<Get
Reference Table Schema Field> - List of fields in the table schema.
- primary
Keys string[] - List of field names that serve as primary keys for the table.
- fields
Get
Reference Table Schema Field[] - List of fields in the table schema.
- primary_
keys Sequence[str] - List of field names that serve as primary keys for the table.
- fields
Sequence[Get
Reference Table Schema Field] - List of fields in the table schema.
- primary
Keys List<String> - List of field names that serve as primary keys for the table.
- fields List<Property Map>
- List of fields in the table schema.
GetReferenceTableSchemaField
Package Details
- Repository
- Datadog pulumi/pulumi-datadog
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
datadogTerraform Provider.
