public-api
public-assets

Create Asset

Create a new asset (data source connection).

Requires read-write API key scope. Does NOT auto-trigger schema discovery; call POST /assets/{id}/discover explicitly when ready.

SDK Usage:

from anomalyarmor import Client
client = Client()
asset = client.assets.create(
    name="Production Warehouse",
    asset_type="snowflake",
    host="abc123.snowflakecomputing.com",
    database_name="ANALYTICS",
    username="readonly_user",
    password="...",
)
post/api/v1/sdk/assets

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/api/v1/sdk/assets
  • Auth: none declared

Headers

Authorizationstring

Request body

namestring required

Display name

asset_typestring required

Database type: snowflake, postgresql, databricks, bigquery, redshift, mysql, clickhouse, athena

descriptionstring nullable

Optional description

hoststring nullable

Database host

portinteger nullable

Database port

database_namestring nullable

Database name (required)

usernamestring nullable

Database username

passwordstring nullable

Database password

ssl_enabledboolean

Enable SSL

default_catalogstring nullable

Default catalog (Databricks/Snowflake)

http_pathstring nullable

HTTP path (Databricks)

extra_paramsobject nullable

Extra connection parameters

connection_configobject nullable

Connection config dict (alternative to flat fields)

Response

Successful Response

successboolean required
dataunknown
messagestring nullable
errorstring nullable
metaobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.