sdk.analysis_version.list()
Retrieve a list of Analysis Versions.
List all the Analysis Versions that the user has access to. Search text will be applied to the entire manifest returning all Analysis Versions whose manifest contains the search text. Tags will be matched exactly with the tags on the manifest. By default, this method only returns the semantically latest version of each Analysis that has not been deprecated, It does not include manifests in the response. If include_all_versions is set to true, all prior versions of an Analysis including deprecated Analysis Versions will be returned, as well. If include_manifest is set to true, the corresponding manifest of each Analysis Version will also be returned.
Parameters
- [Optional] analysis_id (str) - Analysis for which to get versions for
- [Optional] search_text (str) - applied to the entire manifest returning all Analysis Versions whose manifest contains the search text
- [Optional] tag (List[str]) - queried exactly for the tags on the manifest
- [Optional] min_created_on (datetime) - for Analysis Versions created only after a certain time
- [Optional] max_created_on (datetime) - filter for Analysis Versions created only before a certain time
- [Optional] include_all_versions (bool) - flag to include all prior versions of an Analysis Version including deprecated Analysis Versions will be returned
- [Optional] pagination (Pagination) - Pagination object only with page size field set
Returns
List[AnalysisVersion]
Example(s)
# Retrieve Analysis Versions by search text
await sdk.analysis_version.list(search_text="greatest")
# Output (List[AnalysisVersion])
[id: "f8aa14a2-35e7-484a-9804-1d05c23642d4"
analysis {
id: "40078e32-27ee-438e-87bf-87063482c7b4"
created_on {
}
}
created_on {
seconds: 1667405770
nanos: 738066000
}
]Updated 6 months ago