1. Packages
  2. Datadog Provider
  3. API Docs
  4. getDatastore
Datadog v4.64.0 published on Thursday, Jan 29, 2026 by Pulumi
datadog logo
Datadog v4.64.0 published on Thursday, Jan 29, 2026 by Pulumi

    Use this data source to retrieve information about an existing Datadog datastore.

    Using getDatastore

    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 getDatastore(args: GetDatastoreArgs, opts?: InvokeOptions): Promise<GetDatastoreResult>
    function getDatastoreOutput(args: GetDatastoreOutputArgs, opts?: InvokeOptions): Output<GetDatastoreResult>
    def get_datastore(datastore_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetDatastoreResult
    def get_datastore_output(datastore_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetDatastoreResult]
    func LookupDatastore(ctx *Context, args *LookupDatastoreArgs, opts ...InvokeOption) (*LookupDatastoreResult, error)
    func LookupDatastoreOutput(ctx *Context, args *LookupDatastoreOutputArgs, opts ...InvokeOption) LookupDatastoreResultOutput

    > Note: This function is named LookupDatastore in the Go SDK.

    public static class GetDatastore 
    {
        public static Task<GetDatastoreResult> InvokeAsync(GetDatastoreArgs args, InvokeOptions? opts = null)
        public static Output<GetDatastoreResult> Invoke(GetDatastoreInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDatastoreResult> getDatastore(GetDatastoreArgs args, InvokeOptions options)
    public static Output<GetDatastoreResult> getDatastore(GetDatastoreArgs args, InvokeOptions options)
    
    fn::invoke:
      function: datadog:index/getDatastore:getDatastore
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DatastoreId string
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    DatastoreId string
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    datastoreId String
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    datastoreId string
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    datastore_id str
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    datastoreId String
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.

    getDatastore Result

    The following output properties are available:

    CreatedAt string
    Timestamp when the datastore was created.
    CreatorUserId int
    The numeric ID of the user who created the datastore.
    CreatorUserUuid string
    The UUID of the user who created the datastore.
    Description string
    A human-readable description about the datastore.
    Id string
    The ID of this resource.
    ModifiedAt string
    Timestamp when the datastore was last modified.
    Name string
    The display name of the datastore.
    OrgId int
    The ID of the organization that owns this datastore.
    PrimaryColumnName string
    The name of the primary key column for this datastore. Primary column names: - Must abide by both PostgreSQL naming conventions - Cannot exceed 63 characters
    PrimaryKeyGenerationStrategy string
    Can be set to uuid to automatically generate primary keys when new items are added. Default value is none, which requires you to supply a primary key for each new item.
    DatastoreId string
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    CreatedAt string
    Timestamp when the datastore was created.
    CreatorUserId int
    The numeric ID of the user who created the datastore.
    CreatorUserUuid string
    The UUID of the user who created the datastore.
    Description string
    A human-readable description about the datastore.
    Id string
    The ID of this resource.
    ModifiedAt string
    Timestamp when the datastore was last modified.
    Name string
    The display name of the datastore.
    OrgId int
    The ID of the organization that owns this datastore.
    PrimaryColumnName string
    The name of the primary key column for this datastore. Primary column names: - Must abide by both PostgreSQL naming conventions - Cannot exceed 63 characters
    PrimaryKeyGenerationStrategy string
    Can be set to uuid to automatically generate primary keys when new items are added. Default value is none, which requires you to supply a primary key for each new item.
    DatastoreId string
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    createdAt String
    Timestamp when the datastore was created.
    creatorUserId Integer
    The numeric ID of the user who created the datastore.
    creatorUserUuid String
    The UUID of the user who created the datastore.
    description String
    A human-readable description about the datastore.
    id String
    The ID of this resource.
    modifiedAt String
    Timestamp when the datastore was last modified.
    name String
    The display name of the datastore.
    orgId Integer
    The ID of the organization that owns this datastore.
    primaryColumnName String
    The name of the primary key column for this datastore. Primary column names: - Must abide by both PostgreSQL naming conventions - Cannot exceed 63 characters
    primaryKeyGenerationStrategy String
    Can be set to uuid to automatically generate primary keys when new items are added. Default value is none, which requires you to supply a primary key for each new item.
    datastoreId String
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    createdAt string
    Timestamp when the datastore was created.
    creatorUserId number
    The numeric ID of the user who created the datastore.
    creatorUserUuid string
    The UUID of the user who created the datastore.
    description string
    A human-readable description about the datastore.
    id string
    The ID of this resource.
    modifiedAt string
    Timestamp when the datastore was last modified.
    name string
    The display name of the datastore.
    orgId number
    The ID of the organization that owns this datastore.
    primaryColumnName string
    The name of the primary key column for this datastore. Primary column names: - Must abide by both PostgreSQL naming conventions - Cannot exceed 63 characters
    primaryKeyGenerationStrategy string
    Can be set to uuid to automatically generate primary keys when new items are added. Default value is none, which requires you to supply a primary key for each new item.
    datastoreId string
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    created_at str
    Timestamp when the datastore was created.
    creator_user_id int
    The numeric ID of the user who created the datastore.
    creator_user_uuid str
    The UUID of the user who created the datastore.
    description str
    A human-readable description about the datastore.
    id str
    The ID of this resource.
    modified_at str
    Timestamp when the datastore was last modified.
    name str
    The display name of the datastore.
    org_id int
    The ID of the organization that owns this datastore.
    primary_column_name str
    The name of the primary key column for this datastore. Primary column names: - Must abide by both PostgreSQL naming conventions - Cannot exceed 63 characters
    primary_key_generation_strategy str
    Can be set to uuid to automatically generate primary keys when new items are added. Default value is none, which requires you to supply a primary key for each new item.
    datastore_id str
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.
    createdAt String
    Timestamp when the datastore was created.
    creatorUserId Number
    The numeric ID of the user who created the datastore.
    creatorUserUuid String
    The UUID of the user who created the datastore.
    description String
    A human-readable description about the datastore.
    id String
    The ID of this resource.
    modifiedAt String
    Timestamp when the datastore was last modified.
    name String
    The display name of the datastore.
    orgId Number
    The ID of the organization that owns this datastore.
    primaryColumnName String
    The name of the primary key column for this datastore. Primary column names: - Must abide by both PostgreSQL naming conventions - Cannot exceed 63 characters
    primaryKeyGenerationStrategy String
    Can be set to uuid to automatically generate primary keys when new items are added. Default value is none, which requires you to supply a primary key for each new item.
    datastoreId String
    The unique identifier of the datastore to retrieve. If not specified, returns a single datastore from the list.

    Package Details

    Repository
    Datadog pulumi/pulumi-datadog
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the datadog Terraform Provider.
    datadog logo
    Datadog v4.64.0 published on Thursday, Jan 29, 2026 by Pulumi
      Meet Neo: Your AI Platform Teammate