Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DataCatalog.getDataAssets
Explore with Pulumi AI
This data source provides the list of Data Assets in Oracle Cloud Infrastructure Data Catalog service.
Returns a list of data assets within a data catalog.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
variables:
  testDataAssets:
    fn::invoke:
      function: oci:DataCatalog:getDataAssets
      arguments:
        catalogId: ${testCatalog.id}
        createdById: ${testCreatedBy.id}
        displayName: ${dataAssetDisplayName}
        displayNameContains: ${dataAssetDisplayNameContains}
        externalKey: ${dataAssetExternalKey}
        fields: ${dataAssetFields}
        state: ${dataAssetState}
        timeCreated: ${dataAssetTimeCreated}
        timeUpdated: ${dataAssetTimeUpdated}
        typeKey: ${dataAssetTypeKey}
        updatedById: ${testUpdatedBy.id}
Using getDataAssets
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 getDataAssets(args: GetDataAssetsArgs, opts?: InvokeOptions): Promise<GetDataAssetsResult>
function getDataAssetsOutput(args: GetDataAssetsOutputArgs, opts?: InvokeOptions): Output<GetDataAssetsResult>def get_data_assets(catalog_id: Optional[str] = None,
                    created_by_id: Optional[str] = None,
                    display_name: Optional[str] = None,
                    display_name_contains: Optional[str] = None,
                    external_key: Optional[str] = None,
                    fields: Optional[Sequence[str]] = None,
                    filters: Optional[Sequence[GetDataAssetsFilter]] = None,
                    state: Optional[str] = None,
                    type_key: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetDataAssetsResult
def get_data_assets_output(catalog_id: Optional[pulumi.Input[str]] = None,
                    created_by_id: Optional[pulumi.Input[str]] = None,
                    display_name: Optional[pulumi.Input[str]] = None,
                    display_name_contains: Optional[pulumi.Input[str]] = None,
                    external_key: Optional[pulumi.Input[str]] = None,
                    fields: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                    filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDataAssetsFilterArgs]]]] = None,
                    state: Optional[pulumi.Input[str]] = None,
                    type_key: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetDataAssetsResult]func GetDataAssets(ctx *Context, args *GetDataAssetsArgs, opts ...InvokeOption) (*GetDataAssetsResult, error)
func GetDataAssetsOutput(ctx *Context, args *GetDataAssetsOutputArgs, opts ...InvokeOption) GetDataAssetsResultOutput> Note: This function is named GetDataAssets in the Go SDK.
public static class GetDataAssets 
{
    public static Task<GetDataAssetsResult> InvokeAsync(GetDataAssetsArgs args, InvokeOptions? opts = null)
    public static Output<GetDataAssetsResult> Invoke(GetDataAssetsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDataAssetsResult> getDataAssets(GetDataAssetsArgs args, InvokeOptions options)
public static Output<GetDataAssetsResult> getDataAssets(GetDataAssetsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DataCatalog/getDataAssets:getDataAssets
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CatalogId string
- Unique catalog identifier.
- CreatedBy stringId 
- OCID of the user who created the resource.
- DisplayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- DisplayName stringContains 
- A filter to return only resources that match display name pattern given. The match is not case sensitive. For Example : /folders?displayNameContains=Cu.* The above would match all folders with display name that starts with "Cu" or has the pattern "Cu" anywhere in between.
- ExternalKey string
- Unique external identifier of this resource in the external source system.
- Fields List<string>
- Specifies the fields to return in a data asset summary response.
- Filters
List<GetData Assets Filter> 
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- TypeKey string
- The key of the object type.
- CatalogId string
- Unique catalog identifier.
- CreatedBy stringId 
- OCID of the user who created the resource.
- DisplayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- DisplayName stringContains 
- A filter to return only resources that match display name pattern given. The match is not case sensitive. For Example : /folders?displayNameContains=Cu.* The above would match all folders with display name that starts with "Cu" or has the pattern "Cu" anywhere in between.
- ExternalKey string
- Unique external identifier of this resource in the external source system.
- Fields []string
- Specifies the fields to return in a data asset summary response.
- Filters
[]GetData Assets Filter 
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- TypeKey string
- The key of the object type.
- catalogId String
- Unique catalog identifier.
- createdBy StringId 
- OCID of the user who created the resource.
- displayName String
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- displayName StringContains 
- A filter to return only resources that match display name pattern given. The match is not case sensitive. For Example : /folders?displayNameContains=Cu.* The above would match all folders with display name that starts with "Cu" or has the pattern "Cu" anywhere in between.
- externalKey String
- Unique external identifier of this resource in the external source system.
- fields List<String>
- Specifies the fields to return in a data asset summary response.
- filters
List<GetData Assets Filter> 
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- typeKey String
- The key of the object type.
- catalogId string
- Unique catalog identifier.
- createdBy stringId 
- OCID of the user who created the resource.
- displayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- displayName stringContains 
- A filter to return only resources that match display name pattern given. The match is not case sensitive. For Example : /folders?displayNameContains=Cu.* The above would match all folders with display name that starts with "Cu" or has the pattern "Cu" anywhere in between.
- externalKey string
- Unique external identifier of this resource in the external source system.
- fields string[]
- Specifies the fields to return in a data asset summary response.
- filters
GetData Assets Filter[] 
- state string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- typeKey string
- The key of the object type.
- catalog_id str
- Unique catalog identifier.
- created_by_ strid 
- OCID of the user who created the resource.
- display_name str
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- display_name_ strcontains 
- A filter to return only resources that match display name pattern given. The match is not case sensitive. For Example : /folders?displayNameContains=Cu.* The above would match all folders with display name that starts with "Cu" or has the pattern "Cu" anywhere in between.
- external_key str
- Unique external identifier of this resource in the external source system.
- fields Sequence[str]
- Specifies the fields to return in a data asset summary response.
- filters
Sequence[GetData Assets Filter] 
- state str
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- type_key str
- The key of the object type.
- catalogId String
- Unique catalog identifier.
- createdBy StringId 
- OCID of the user who created the resource.
- displayName String
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- displayName StringContains 
- A filter to return only resources that match display name pattern given. The match is not case sensitive. For Example : /folders?displayNameContains=Cu.* The above would match all folders with display name that starts with "Cu" or has the pattern "Cu" anywhere in between.
- externalKey String
- Unique external identifier of this resource in the external source system.
- fields List<String>
- Specifies the fields to return in a data asset summary response.
- filters List<Property Map>
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- typeKey String
- The key of the object type.
getDataAssets Result
The following output properties are available:
- CatalogId string
- The data catalog's OCID.
- DataAsset List<GetCollections Data Assets Data Asset Collection> 
- The list of data_asset_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- CreatedBy stringId 
- OCID of the user who created the data asset.
- DisplayName string
- A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DisplayName stringContains 
- ExternalKey string
- External URI that can be used to reference the object. Format will differ based on the type of object.
- Fields List<string>
- Filters
List<GetData Assets Filter> 
- State string
- The current state of the data asset.
- TypeKey string
- The key of the object type. Type key's can be found via the '/types' endpoint.
- CatalogId string
- The data catalog's OCID.
- DataAsset []GetCollections Data Assets Data Asset Collection 
- The list of data_asset_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- CreatedBy stringId 
- OCID of the user who created the data asset.
- DisplayName string
- A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- DisplayName stringContains 
- ExternalKey string
- External URI that can be used to reference the object. Format will differ based on the type of object.
- Fields []string
- Filters
[]GetData Assets Filter 
- State string
- The current state of the data asset.
- TypeKey string
- The key of the object type. Type key's can be found via the '/types' endpoint.
- catalogId String
- The data catalog's OCID.
- dataAsset List<GetCollections Data Assets Data Asset Collection> 
- The list of data_asset_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- createdBy StringId 
- OCID of the user who created the data asset.
- displayName String
- A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- displayName StringContains 
- externalKey String
- External URI that can be used to reference the object. Format will differ based on the type of object.
- fields List<String>
- filters
List<GetData Assets Filter> 
- state String
- The current state of the data asset.
- typeKey String
- The key of the object type. Type key's can be found via the '/types' endpoint.
- catalogId string
- The data catalog's OCID.
- dataAsset GetCollections Data Assets Data Asset Collection[] 
- The list of data_asset_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- createdBy stringId 
- OCID of the user who created the data asset.
- displayName string
- A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- displayName stringContains 
- externalKey string
- External URI that can be used to reference the object. Format will differ based on the type of object.
- fields string[]
- filters
GetData Assets Filter[] 
- state string
- The current state of the data asset.
- typeKey string
- The key of the object type. Type key's can be found via the '/types' endpoint.
- catalog_id str
- The data catalog's OCID.
- data_asset_ Sequence[Getcollections Data Assets Data Asset Collection] 
- The list of data_asset_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- created_by_ strid 
- OCID of the user who created the data asset.
- display_name str
- A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- display_name_ strcontains 
- external_key str
- External URI that can be used to reference the object. Format will differ based on the type of object.
- fields Sequence[str]
- filters
Sequence[GetData Assets Filter] 
- state str
- The current state of the data asset.
- type_key str
- The key of the object type. Type key's can be found via the '/types' endpoint.
- catalogId String
- The data catalog's OCID.
- dataAsset List<Property Map>Collections 
- The list of data_asset_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- createdBy StringId 
- OCID of the user who created the data asset.
- displayName String
- A user-friendly display name. Does not have to be unique, and it's changeable. Avoid entering confidential information.
- displayName StringContains 
- externalKey String
- External URI that can be used to reference the object. Format will differ based on the type of object.
- fields List<String>
- filters List<Property Map>
- state String
- The current state of the data asset.
- typeKey String
- The key of the object type. Type key's can be found via the '/types' endpoint.
Supporting Types
GetDataAssetsDataAssetCollection     
- count Number
- items List<Property Map>
GetDataAssetsDataAssetCollectionItem      
- CatalogId string
- Unique catalog identifier.
- CreatedBy stringId 
- OCID of the user who created the resource.
- Description string
- Detailed description of the data asset.
- DisplayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- ExternalKey string
- Unique external identifier of this resource in the external source system.
- Key string
- Unique data asset key that is immutable.
- LifecycleDetails string
- A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- Properties Dictionary<string, string>
- A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: {"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- TimeCreated string
- Time that the resource was created. An RFC3339 formatted datetime string.
- TimeHarvested string
- The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- TimeUpdated string
- Time that the resource was updated. An RFC3339 formatted datetime string.
- TypeKey string
- The key of the object type.
- UpdatedBy stringId 
- OCID of the user who updated the resource.
- Uri string
- URI to the data asset instance in the API.
- CatalogId string
- Unique catalog identifier.
- CreatedBy stringId 
- OCID of the user who created the resource.
- Description string
- Detailed description of the data asset.
- DisplayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- ExternalKey string
- Unique external identifier of this resource in the external source system.
- Key string
- Unique data asset key that is immutable.
- LifecycleDetails string
- A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- Properties map[string]string
- A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: {"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}
- State string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- TimeCreated string
- Time that the resource was created. An RFC3339 formatted datetime string.
- TimeHarvested string
- The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- TimeUpdated string
- Time that the resource was updated. An RFC3339 formatted datetime string.
- TypeKey string
- The key of the object type.
- UpdatedBy stringId 
- OCID of the user who updated the resource.
- Uri string
- URI to the data asset instance in the API.
- catalogId String
- Unique catalog identifier.
- createdBy StringId 
- OCID of the user who created the resource.
- description String
- Detailed description of the data asset.
- displayName String
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- externalKey String
- Unique external identifier of this resource in the external source system.
- key String
- Unique data asset key that is immutable.
- lifecycleDetails String
- A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- properties Map<String,String>
- A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: {"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- timeCreated String
- Time that the resource was created. An RFC3339 formatted datetime string.
- timeHarvested String
- The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- timeUpdated String
- Time that the resource was updated. An RFC3339 formatted datetime string.
- typeKey String
- The key of the object type.
- updatedBy StringId 
- OCID of the user who updated the resource.
- uri String
- URI to the data asset instance in the API.
- catalogId string
- Unique catalog identifier.
- createdBy stringId 
- OCID of the user who created the resource.
- description string
- Detailed description of the data asset.
- displayName string
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- externalKey string
- Unique external identifier of this resource in the external source system.
- key string
- Unique data asset key that is immutable.
- lifecycleDetails string
- A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- properties {[key: string]: string}
- A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: {"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}
- state string
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- timeCreated string
- Time that the resource was created. An RFC3339 formatted datetime string.
- timeHarvested string
- The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- timeUpdated string
- Time that the resource was updated. An RFC3339 formatted datetime string.
- typeKey string
- The key of the object type.
- updatedBy stringId 
- OCID of the user who updated the resource.
- uri string
- URI to the data asset instance in the API.
- catalog_id str
- Unique catalog identifier.
- created_by_ strid 
- OCID of the user who created the resource.
- description str
- Detailed description of the data asset.
- display_name str
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- external_key str
- Unique external identifier of this resource in the external source system.
- key str
- Unique data asset key that is immutable.
- lifecycle_details str
- A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- properties Mapping[str, str]
- A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: {"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}
- state str
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- time_created str
- Time that the resource was created. An RFC3339 formatted datetime string.
- time_harvested str
- The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- time_updated str
- Time that the resource was updated. An RFC3339 formatted datetime string.
- type_key str
- The key of the object type.
- updated_by_ strid 
- OCID of the user who updated the resource.
- uri str
- URI to the data asset instance in the API.
- catalogId String
- Unique catalog identifier.
- createdBy StringId 
- OCID of the user who created the resource.
- description String
- Detailed description of the data asset.
- displayName String
- A filter to return only resources that match the entire display name given. The match is not case sensitive.
- externalKey String
- Unique external identifier of this resource in the external source system.
- key String
- Unique data asset key that is immutable.
- lifecycleDetails String
- A message describing the current state in more detail. An object not in ACTIVE state may have functional limitations, see service documentation for details.
- properties Map<String>
- A map of maps that contains the properties which are specific to the asset type. Each data asset type definition defines it's set of required and optional properties. The map keys are category names and the values are maps of property name to property value. Every property is contained inside of a category. Most data assets have required properties within the "default" category. Example: {"properties": { "default": { "host": "host1", "port": "1521", "database": "orcl"}}}
- state String
- A filter to return only resources that match the specified lifecycle state. The value is case insensitive.
- timeCreated String
- Time that the resource was created. An RFC3339 formatted datetime string.
- timeHarvested String
- The last time that a harvest was performed on the data asset. An RFC3339 formatted datetime string.
- timeUpdated String
- Time that the resource was updated. An RFC3339 formatted datetime string.
- typeKey String
- The key of the object type.
- updatedBy StringId 
- OCID of the user who updated the resource.
- uri String
- URI to the data asset instance in the API.
GetDataAssetsFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.