start_search
¶
start_search(
workspace_name: WorkspaceName,
query_statement: SearchQueryStatement,
*,
config_overrides: Optional[IoTSiteWiseClientConfig] = None,
client_token: Optional[ClientToken] = None,
search_type: Optional[SearchType] = None,
search_filters: Optional[SearchFilters] = None,
group_id: Optional[GroupId] = None,
) -> StartSearchResponse
Starts an asynchronous search over the data in a workspace. The search runs in the background; the response returns immediately with a searchId and an initial status of QUEUED. Use DescribeSearch to poll for completion and GetSearchResults to retrieve the results once the search reaches SUCCEEDED. The request is idempotent on clientToken: repeating a call with the same token returns the original search instead of starting a new one.
Parameters:
-
workspace_name(WorkspaceName) –The name of the workspace whose data is searched.
-
query_statement(SearchQueryStatement) –The natural-language query describing the data to search for.
-
client_token(Optional[ClientToken], default:None) –A unique, case-sensitive identifier you provide to ensure the request is idempotent. Repeating a StartSearch call with the same
clientTokenreturns the original search rather than starting a new one. If omitted, the SDK autogenerates one. -
search_type(Optional[SearchType], default:None) –The search strategy to use. Defaults to
QUICKwhen omitted. -
search_filters(Optional[SearchFilters], default:None) –Optional filters that restrict the search to a subset of the workspace's data.
-
group_id(Optional[GroupId], default:None) –An optional caller-supplied identifier used to group related searches together.
Raises:
-
AccessDeniedException–Access is denied.
-
ConflictingOperationException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time.
-
InternalFailureException–IoT SiteWise can't process your request right now. Try again later.
-
InvalidRequestException–The request isn't valid. This can occur if your request contains malformed JSON or unsupported characters. Check your request and try again.
-
LimitExceededException–You've reached the quota for a resource. For example, this can occur if you're trying to associate more than the allowed number of child assets or attempting to create more than the allowed number of properties for an asset model.
For more information, see Quotas in the IoT SiteWise User Guide.
-
ResourceNotFoundException–The requested resource can't be found.
-
ThrottlingException–Your request exceeded a rate limit. For example, you might have exceeded the number of IoT SiteWise assets that can be created per second, the allowed number of messages per second, and so on.
For more information, see Quotas in the IoT SiteWise User Guide.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_iotsitewise/_services/io_t_site_wise.py
10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 10454 10455 10456 10457 10458 | |