# \CapsulesApi
All URIs are relative to *https://api.antimatter.io/v2*
[**capsule_get_by_id**](CapsulesApi.md#capsule_get_by_id) | **GET** /capsules/{capsuleID} | Get a Capsule by ID
[**domain_delete_capsule_tags**](CapsulesApi.md#domain_delete_capsule_tags) | **POST** /domains/{domainID}/capsules/{capsuleID}/capsule-tags/delete | Delete capsule-level tags
[**domain_get_capsule_info**](CapsulesApi.md#domain_get_capsule_info) | **GET** /domains/{domainID}/capsules/{capsuleID} | Get capsule info
[**domain_get_tag_info**](CapsulesApi.md#domain_get_tag_info) | **GET** /domains/{domainID}/tag-info | Get an ordered list of the top 100 tags.
[**domain_list_capsules**](CapsulesApi.md#domain_list_capsules) | **GET** /domains/{domainID}/capsules | Get capsule list
[**domain_query_access_log**](CapsulesApi.md#domain_query_access_log) | **GET** /domains/{domainID}/log | Get the domain data-plane audit log
[**domain_query_access_log_single_capsule**](CapsulesApi.md#domain_query_access_log_single_capsule) | **GET** /domains/{domainID}/capsules/{capsuleID}/log | Get the access log for a single capsule
[**domain_upsert_capsule_tags**](CapsulesApi.md#domain_upsert_capsule_tags) | **POST** /domains/{domainID}/capsules/{capsuleID}/capsule-tags | Upsert capsule-scope tags
## capsule_get_by_id
> models::Error capsule_get_by_id(capsule_id)
Get a Capsule by ID
This endpoint allows you to get a Capsule without knowing the Domain ID. It will redirect the user to the full `/domains/{domainID}/capsules/{capsuleID}` path.
### Parameters
**capsule_id** | **String** | | [required] |
### Return type
[**models::Error**](Error.md)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## domain_delete_capsule_tags
> domain_delete_capsule_tags(domain_id, capsule_id, delete_tags)
Delete capsule-level tags
Delete capsule-level tags
### Parameters
**domain_id** | **String** | | [required] |
**capsule_id** | **String** | | [required] |
**delete_tags** | [**DeleteTags**](DeleteTags.md) | | [required] |
### Return type
(empty response body)
### Authorization
[domain_identity](../README.md#domain_identity)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## domain_get_capsule_info
> models::CapsuleInfo domain_get_capsule_info(domain_id, capsule_id)
Get capsule info
Get the summary information about this capsule
### Parameters
**domain_id** | **String** | | [required] |
**capsule_id** | **String** | | [required] |
### Return type
[**models::CapsuleInfo**](CapsuleInfo.md)
### Authorization
[domain_identity](../README.md#domain_identity)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## domain_get_tag_info
> models::DomainTagInfoResults domain_get_tag_info(domain_id)
Get an ordered list of the top 100 tags.
Get an ordered list of the top 100 tags. The ordering is: - Tags emitted by hooks - Tags referenced in read context rules - Capsule and span tags that appear in the capsule manifest ordered by number of appearances This list will be truncated (and `has_more` will be true) if the above yields more than 100 tags. There is currently no endpoint to receive a complete list of tags.
### Parameters
**domain_id** | **String** | | [required] |
### Return type
[**models::DomainTagInfoResults**](DomainTagInfoResults.md)
### Authorization
[domain_identity](../README.md#domain_identity)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## domain_list_capsules
> models::CapsuleList domain_list_capsules(domain_id, start_date, end_date, num_results, span_tags, sort_on, start_after, ascending)
Get capsule list
Get information about capsules
### Parameters
**domain_id** | **String** | | [required] |
**start_date** | Option<**String**> | the earlier date of the date range. As results are returned in reverse chronological order, this date corresponds with the end of the result set. | |[default to 1970-01-01T01:01:01Z]
**end_date** | Option<**String**> | the later date of the date range. As results are returned in reverse chronological order, this date corresponds with the beginning of the result set. If not specified, defaults to the current time. | |
**num_results** | Option<**i32**> | the number of results you would like returned. You may get more or less than this number, and it does not indicate anything about the availability of more records. Consult the returned \"has_more\" field to determine if there are more records available matching the filters and time range. | |[default to 100]
**span_tags** | Option<**String**> | the span tags you would like to filter on. This accepts a tag key only and will return all span tag key results matching the provided tag key. If not specified, this field is ignored. | |
**sort_on** | Option<**String**> | the capsule field you would like to sort on. This accepts the field only and will return results ordered on the provided field. If not specified, this field is ignored. | |
**start_after** | Option<**String**> | the pagination key you would like to retrieve results after. This accepts the pagination key only and works in combination with the sort_on parameter to return records strictly after the provided pagination key. If not specified, this field is ignored. | |
**ascending** | Option<**bool**> | the defines whether a sorted result should be order ascending. This accepts a boolean value and when true will work in combination with the sort_on and start_after parameters to return values in ascending order. If not specified, this field is ignored and treated as false. | |
### Return type
[**models::CapsuleList**](CapsuleList.md)
### Authorization
[domain_identity](../README.md#domain_identity)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## domain_query_access_log
> models::AccessLogResults domain_query_access_log(domain_id, start_date, end_date, num_results, start_from_id, session, location, location_prefixed, operation_type, allowed_tag, redacted_or_tokenized_tag)
Get the domain data-plane audit log
Query the data access log for this domain. This contains all operations interacting with capsules within this domain. Results are returned in reverse chronological order
### Parameters
**domain_id** | **String** | | [required] |
**start_date** | Option<**String**> | the earlier date of the date range. As results are returned in reverse chronological order, this date corresponds with the end of the result set. | |[default to 1970-01-01T01:01:01Z]
**end_date** | Option<**String**> | the later date of the date range. As results are returned in reverse chronological order, this date corresponds with the beginning of the result set. If not specified, defaults to the current time. | |
**num_results** | Option<**i32**> | the number of results you would like returned. You may get more or less than this number, and it does not indicate anything about the availability of more records. Consult the returned \"has_more\" field to determine if there are more records available matching the filters and time range. | |[default to 100]
**start_from_id** | Option<**String**> | which id to start from. This must be an ID of a record previously returned. The first result will have an ID less than this ID (because results are in reverse chronological order, and it is non-inclusive). You should omit this field if you are not continuing a paginated query. | |
**session** | Option<**String**> | the session you would like to filter on. This will return results for only the provided session. If not specified, this field is ignored. | |
**location** | Option<**String**> | the location you would like to filter on. This is a matched filter and will return results starting with the provided string. If not specified, this field is ignored. | |
**location_prefixed** | Option<**bool**> | a boolean indicator to indicate that the location you provided is a prefix or not. If this is set to true, then the filter provided in location is treated as a prefix. If not specified, this is treated as false. | |
**operation_type** | Option<**String**> | the operation you would like to filter on. This will filter on the provided operation type and return all results using the provided operation type. If not specified, this field is ignored. | |
**allowed_tag** | Option<**String**> | the allow tag key you would like to filter on. This accepts tag key only and will return all allowed tag results matching the provided tag key. If not specified, this field is ignored. | |
**redacted_or_tokenized_tag** | Option<**String**> | the redacted or tokenized tag key you would like ot filter on. This accepts a tag key only and will return all redacted and tokenized tag key results matching the provided tag key. If not specified, this field is ignored. | |
### Return type
[**models::AccessLogResults**](AccessLogResults.md)
### Authorization
[domain_identity](../README.md#domain_identity)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## domain_query_access_log_single_capsule
> models::AccessLogResults domain_query_access_log_single_capsule(domain_id, capsule_id, start_date, end_date, num_results, start_from_id, session, location, location_prefixed, operation_type, allowed_tag, redacted_or_tokenized_tag)
Get the access log for a single capsule
Query the data-plane access log for this capsule. Results are returned in reverse chronological order.
### Parameters
**domain_id** | **String** | | [required] |
**capsule_id** | **String** | | [required] |
**start_date** | Option<**String**> | the earlier date of the date range. As results are returned in reverse chronological order, this date corresponds with the end of the result set. | |[default to 1970-01-01T01:01:01Z]
**end_date** | Option<**String**> | the later date of the date range. As results are returned in reverse chronological order, this date corresponds with the beginning of the result set. If not specified, defaults to the current time. | |
**num_results** | Option<**i32**> | the number of results you would like returned. You may get more or less than this number, and it does not indicate anything about the availability of more records. Consult the returned \"has_more\" field to determine if there are more records available matching the filters and time range. | |[default to 100]
**start_from_id** | Option<**String**> | which id to start from. This must be an ID of a record previously returned. The first result will have an ID less than this ID (because results are in reverse chronological order, and it is non-inclusive). You should omit this field if you are not continuing a paginated query. | |
**session** | Option<**String**> | the session you would like to filter on. This will return results for only the provided session. If not specified, this field is ignored. | |
**location** | Option<**String**> | the location you would like to filter on. This is a matched filter and will return results starting with the provided string. If not specified, this field is ignored. | |
**location_prefixed** | Option<**bool**> | a boolean indicator to indicate that the location you provided is a prefix or not. If this is set to true, then the filter provided in location is treated as a prefix. If not specified, this is treated as false. | |
**operation_type** | Option<**String**> | the operation you would like to filter on. This will filter on the provided operation type and return all results using the provided operation type. If not specified, this field is ignored. | |
**allowed_tag** | Option<**String**> | the allow tag key you would like to filter on. This accepts tag key only and will return all allowed tag results matching the provided tag key. If not specified, this field is ignored. | |
**redacted_or_tokenized_tag** | Option<**String**> | the redacted or tokenized tag key you would like ot filter on. This accepts a tag key only and will return all redacted and tokenized tag key results matching the provided tag key. If not specified, this field is ignored. | |
### Return type
[**models::AccessLogResults**](AccessLogResults.md)
### Authorization
[domain_identity](../README.md#domain_identity)
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
## domain_upsert_capsule_tags
> domain_upsert_capsule_tags(domain_id, capsule_id, domain_upsert_capsule_tags_request)
Upsert capsule-scope tags
Upsert capsule-level tags. This is permitted even after a capsule is sealed.
### Parameters
**domain_id** | **String** | | [required] |
**capsule_id** | **String** | | [required] |
**domain_upsert_capsule_tags_request** | [**DomainUpsertCapsuleTagsRequest**](DomainUpsertCapsuleTagsRequest.md) | | [required] |
### Return type
(empty response body)
### Authorization
[domain_identity](../README.md#domain_identity)
### HTTP request headers
- **Content-Type**: application/json
- **Accept**: application/json
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)