Create or update a workspace secret and the hosts it may be sent to.
func (
r *WorkspaceSecretService) Upsert(ctx context.Context,
key string,
body WorkspaceSecretUpsertParams,
opts ...option.RequestOption) (res *WorkspaceSecret,
err error
)Create or update a workspace secret and the hosts it may be sent to.
Requires workspace admin. Omit value to keep the current one; it is required to create a secret. configs replaces the secret's hosts; omitted or empty restores the built-in defaults for known provider keys. The value is never returned.
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
key* | string | |
body* | WorkspaceSecretUpsertParams | |
opts* | ...option.RequestOption |