Custom Storage - CrowdStrike/falconpy GitHub Wiki
| Operation ID | Description | ||||
|---|---|---|---|---|---|
|
List available collection names in alphabetical order. | ||||
|
Fetch metadata about one or more existing collections. | ||||
|
Fetch metadata about an existing collection. | ||||
|
List the object keys in the specified collection in alphabetical order. | ||||
|
Search for objects that match the specified filter criteria (returns metadata, not actual objects). | ||||
|
Get the bytes for the specified object. | ||||
|
Put the specified new object at the given key or overwrite an existing object at the given key. | ||||
|
Delete the specified object. | ||||
|
Get the metadata for the specified object. | ||||
|
Get the list of schemas for the requested collection in reverse version order (latest first). | ||||
|
Get the bytes of the specified schema of the requested collection. | ||||
|
Get the metadata for the specified schema of the requested collection. | ||||
|
List the object keys in the specified collection in alphabetical order. | ||||
|
Search for objects that match the specified filter criteria (returns metadata, not actual objects). | ||||
|
Get the bytes for the specified object. | ||||
|
Put the specified new object at the given key or overwrite an existing object at the given key. | ||||
|
Delete the specified versioned object. | ||||
|
Get the metadata for the specified object. | ||||
WARNING
client_idandclient_secretare keyword arguments that contain your CrowdStrike API credentials. Please note that all examples below do not hard code these values. (These values are ingested as strings.)CrowdStrike does not recommend hard coding API credentials or customer identifiers within source code.
List available collection names in alphabetical order.
list_collections
| Method | Route |
|---|---|
/customobjects/v1/collections |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| end | query | string | The end key to end listing to. | ||
| limit | query | integer | The limit of results to return. | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. | ||
| start | query | string | The start key to start listing from. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_collections(end="string",
limit=integer,
start="string"
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.ListCollections(end="string",
limit=integer,
start="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("ListCollections",
end="string",
limit=integer,
start="string"
)
print(response)Back to Table of Contents
Fetch metadata about one or more existing collections.
describe_collections
| Method | Route |
|---|---|
/customobjects/v1/collections |
- Consumes: application/octet-stream
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| names | query | array (string) | A set of collection names. | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
name_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.describe_collections(names=name_list)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
name_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']
response = falcon.DescribeCollections(names=name_list)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
name_list = 'ID1,ID2,ID3' # Can also pass a list here: ['ID1', 'ID2', 'ID3']}
response = falcon.command("DescribeCollections", names=name_list)
print(response)Back to Table of Contents
Fetch metadata about an existing collection.
describe_collection
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name} |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.describe_collection(collection_name="string")
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.DescribeCollection(collection_name="string")
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("DescribeCollection", collection_name="string")
print(response)Back to Table of Contents
List the object keys in the specified collection in alphabetical order
list
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/objects |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| end | query | string | The end key to end listing to | ||
| limit | query | integer | The limit of results to return | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. | ||
| start | query | string | The start key to start listing from |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list(end="string",
limit=integer,
start="string",
collection_name="string"
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.ListObjects(end="string",
limit=integer,
start="string",
collection_name="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("ListObjects",
end="string"
limit=integer,
start="string",
collection_name="string"
)
print(response)Back to Table of Contents
Search for objects that match the specified filter criteria (returns metadata, not actual objects)
search
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/objects |
- Consumes: application/octet-stream
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| filter | query | string | The filter to limit the returned results. | ||
| limit | query | integer | The limit of results to return | ||
| offset | query | integer | The offset of results to return | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. | ||
| sort | query | string | The sort order for the returned results. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.search(filter="string",
limit=integer,
offset=integer,
sort="string",
collection_name="string"
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.SearchObjects(filter="string",
limit=integer,
offset=integer,
sort="string",
collection_name="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("SearchObjects",
filter="string",
limit=integer,
offset=integer,
sort="string",
collection_name="string"
)
print(response)Back to Table of Contents
Get the bytes for the specified object
get
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/objects/{object_key} |
- Consumes: application/json
- Produces: application/octet-stream
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| object_key | path | string | The object key |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "wb", encoding="utf-8") as save_file:
save_file.write(falcon.get(collection_name="string", object_key="string"))from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "wb", encoding="utf-8") as save_file:
save_file.write(falcon.GetObject(collection_name="string", object_key="string"))from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "wb", encoding="utf-8") as save_file:
save_file.write(falcon.command("GetObject", collection_name="string", object_key="string"))Back to Table of Contents
Put the specified new object at the given key or overwrite an existing object at the given key
upload
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/objects/{object_key} |
- Consumes: application/octet-stream
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | string | The object to be uploaded in binary format. | ||
| collection_name | path | string | The name of the collection. | ||
| dry_run | query | boolean | If false, run the operation as normal. If true, validate that the request would succeed, but don't execute it. | ||
| object_key | path | string | The object key. | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. | ||
| schema_version | query | string | The version of the collection schema. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "rb") as upload_file:
response = falcon.upload(body=upload_file.read(),
collection_name="string",
dry_run=boolean,
object_key="string",
schema_version="string"
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "rb") as upload_file:
response = falcon.PutObject(body=upload_file.read(),
collection_name="string",
dry_run=boolean,
object_key="string",
schema_version="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "rb") as upload_file:
response = falcon.command("PutObject",
body=upload_file.read(),
collection_name="string",
dry_run=boolean,
object_key="string",
schema_version="string"
)
print(response)Back to Table of Contents
Delete the specified object
delete
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/objects/{object_key} |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| dry_run | query | boolean | If false, run the operation as normal. If true, validate that the request would succeed, but don't execute it. | ||
| object_key | path | string | The object key | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.delete(collection_name="string", object_key="string", dry_run=boolean)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.DeleteObject(collection_name="string", object_key="string", dry_run=boolean)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("DeleteObject",
collection_name="string",
object_key="string",
dry_run=boolean
)
print(response)Back to Table of Contents
Get the metadata for the specified object
metadata
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/objects/{object_key}/metadata |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| object_key | path | string | The object key |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.metadata(collection_name="string", object_key="string")
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.GetObjectMetadata(collection_name="string", object_key="string")
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("GetObjectMetadata", collection_name="string", object_key="string")
print(response)Back to Table of Contents
Get the list of schemas for the requested collection in reverse version order (latest first).
list_schemas
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/schemas |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection. | ||
| end | query | string | |||
| limit | query | integer | |||
| parameters | query | dictionary | Full query string parameters payload in JSON format. | ||
| start | query | string | The start key to start listing from. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_schemas(end="string",
limit=integer,
start="string"
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.ListSchemas(end="string",
limit=integer,
start="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("ListSchemas",
end="string",
limit=integer,
start="string"
)
print(response)Back to Table of Contents
Get the bytes of the specified schema of the requested collection.
get_schema
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/schemas/{schema_version} |
- Consumes: application/json
- Produces: application/octet-stream
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| schema_version | path | string | The version of the collection schema or 'latest' for the latest version |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
save_file = "some_file.ext"
with open(save_file, "wb") as file_output:
file_output.write(falcon.get_schema(collection_name="string", schema_version="string"))from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
save_file = "some_file.ext"
with open(save_file, "wb") as file_output:
file_output.write(falcon.GetSchema(collection_name="string", schema_version="string"))from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
save_file = "some_file.ext"
with open(save_file, "wb") as file_output:
file_output.write(falcon.command("GetSchema", collection_name="string", schema_version="string"))Back to Table of Contents
Get the metadata for the specified schema of the requested collection.
schema_metadata
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/schemas/{schema_version}/metadata |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection. | ||
| schema_version | path | string | The version of the collection schema or 'latest' for the latest version. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.schema_metadata(collection_name="string", schema_version="string")
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.GetSchemaMetadata(collection_name="string", schema_version="string")
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("GetSchemaMetadata", collection_name="string", schema_version="string")
print(response)Back to Table of Contents
List the object keys in the specified collection in alphabetical order
list_by_version
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/{collection_version}/objects |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| collection_version | path | string | The version of the collection | ||
| end | query | string | The end key to end listing to | ||
| limit | query | integer | The limit of results to return | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. | ||
| start | query | string | The start key to start listing from |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.list_by_version(end="string",
limit=integer,
start="string",
collection_name="string",
collection_version="string"
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.ListObjectsByVersion(end="string",
limit=integer,
start="string",
collection_name="string",
collection_version="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("ListObjectsByVersion",
end="string"
limit=integer,
start="string",
collection_name="string",
collection_version="string"
)
print(response)Back to Table of Contents
Search for objects that match the specified filter criteria (returns metadata, not actual objects)
search_by_version
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/{collection_version}/objects |
- Consumes: application/octet-stream
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| collection_version | path | string | The version of the collection | ||
| filter | query | string | The filter to limit the returned results. | ||
| limit | query | integer | The limit of results to return | ||
| offset | query | integer | The offset of results to return | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. | ||
| sort | query | string | The sort order for the returned results. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.search_by_version(filter="string",
limit=integer,
offset=integer,
sort="string",
collection_name="string",
collection_version="string"
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.SearchObjectsByVersion(filter="string",
limit=integer,
offset=integer,
sort="string",
collection_name="string",
collection_version="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("SearchObjectsByVersion",
filter="string",
limit=integer,
offset=integer,
sort="string",
collection_name="string",
collection_version="string"
)
print(response)Back to Table of Contents
Get the bytes for the specified object
get_version
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key} |
- Consumes: application/json
- Produces: application/octet-stream
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| collection_version | path | string | The version of the collection | ||
| object_key | path | string | The object key |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "wb", encoding="utf-8") as save_file:
save_file.write(falcon.get(collection_name="string",
collection_version="string",
object_key="string"
))from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "wb", encoding="utf-8") as save_file:
save_file.write(falcon.GetObject(collection_name="string",
collection_version="string",
object_key="string"
))from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "wb", encoding="utf-8") as save_file:
save_file.write(falcon.command("GetObject",
collection_name="string",
collection_version="string",
object_key="string"
))Back to Table of Contents
Put the specified new object at the given key or overwrite an existing object at the given key
upload_version
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key} |
- Consumes: application/octet-stream
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| body | body | string | The object to be uploaded in binary format. | ||
| collection_name | path | string | The name of the collection. | ||
| collection_version | path | string | The version of the collection. | ||
| dry_run | query | boolean | If false, run the operation as normal. If true, validate that the request would succeed, but don't execute it. | ||
| object_key | path | string | The object key. | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. | ||
| schema_version | query | string | The version of the collection schema. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "rb") as upload_file:
response = falcon.upload(body=upload_file.read(),
collection_name="string",
collection_version="string",
dry_run=boolean,
object_key="string",
schema_version="string"
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "rb") as upload_file:
response = falcon.PutObject(body=upload_file.read(),
collection_name="string",
collection_version="string",
dry_run=boolean,
object_key="string",
schema_version="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
with open("some_file.ext", "rb") as upload_file:
response = falcon.command("PutObject",
body=upload_file.read(),
collection_name="string",
collection_version="string",
dry_run=boolean,
object_key="string",
schema_version="string"
)
print(response)Back to Table of Contents
Delete the specified versioned object
delete_version
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key} |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| collection_version | path | string | The version of the collection | ||
| dry_run | query | boolean | If false, run the operation as normal. If true, validate that the request would succeed, but don't execute it. | ||
| object_key | path | string | The object key | ||
| parameters | query | dictionary | Full query string parameters payload in JSON format. |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.delete_version(collection_name="string",
collection_version="string",
object_key="string",
dry_run=boolean
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.DeleteVersionedObject(collection_name="string",
collection_version="string",
object_key="string",
dry_run=boolean
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("DeleteVersionedObject",
collection_name="string",
collection_version="string",
object_key="string",
dry_run=boolean
)
print(response)Back to Table of Contents
Get the metadata for the specified object
version_metadata
| Method | Route |
|---|---|
/customobjects/v1/collections/{collection_name}/{collection_version}/objects/{object_key}/metadata |
- Consumes: application/json
- Produces: application/json
| Name | Service | Uber | Type | Data type | Description |
|---|---|---|---|---|---|
| collection_name | path | string | The name of the collection | ||
| collection_version | path | string | The version of the collection | ||
| object_key | path | string | The object key |
from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.version_metadata(collection_name="string",
collection_version="string",
object_key="string"
)
print(response)from falconpy import CustomStorage
# Do not hardcode API credentials!
falcon = CustomStorage(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.GetVersionedObjectMetadata(collection_name="string",
collection_version="string",
object_key="string"
)
print(response)from falconpy import APIHarnessV2
# Do not hardcode API credentials!
falcon = APIHarnessV2(client_id=CLIENT_ID,
client_secret=CLIENT_SECRET
)
response = falcon.command("GetVersionedObjectMetadata",
collection_name="string",
collection_version="string",
object_key="string"
)
print(response)Back to Table of Contents
