engine/sdks/rust/api-full/rust/docs/ActorsGetOrCreateApi.md
All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| actors_get_or_create | PUT /actors | ## Datacenter Round Trips |
models::ActorsGetOrCreateResponse actors_get_or_create(namespace, actors_get_or_create_request)
If actor exists 2 round trips: - namespace::ops::resolve_for_name_global - GET /actors/{} If actor does not exist and is created in the current datacenter: 2 round trips: - namespace::ops::resolve_for_name_global - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation) If actor does not exist and is created in a different datacenter: 3 round trips: - namespace::ops::resolve_for_name_global - POST /actors to remote datacenter - [pegboard::workflows::actor] Create actor workflow (includes Epoxy key allocation) actor::get will always be in the same datacenter. ## Optimized Alternative Routes
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| namespace | String | [required] | ||
| actors_get_or_create_request | ActorsGetOrCreateRequest | [required] |
models::ActorsGetOrCreateResponse
[Back to top] [Back to API list] [Back to Model list] [Back to README]