Skip to content
Console
On this page

Update a masked aliase

Updates a masked alias.

Updates a masked alias.

  • Path PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/masked_aliases/masked-alias
  • Scope notify:write
  • Effect write — a successful call changes state.
  • Collection masked_aliases
  • Query update_mask, validate_only

Request

FieldTypeWhat it is
masked_aliasMaskedAliasThe resource to update. Required.
update_maskfield_maskThe fields to update. Only spec.state and spec.reply_mode can change.
validate_onlyboolValidate without updating.

MaskedAlias

FieldTypeWhat it is
namestringThe resource name.
metaResourceMetaResource metadata, including the etag.
specMaskedAliasSpecDesired state. Required.

ResourceMeta

FieldTypeWhat it is
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.

MaskedAliasSpec

FieldTypeWhat it is
addressstringAn unused address on a receiving domain in this environment. Required.
mailboxstringThe hosted mailbox that receives the alias's mail. Required.
stateMaskedAliasStateDefaults to ACTIVE on creation. REVOKED never transitions again. One of active, paused, revoked.
reply_modeMaskedAliasReplyModeDefaults to DISABLED. Does not grant outbound permission. One of disabled, reverse_alias.

Response

FieldTypeWhat it is
namestringThe resource name.
uidstringThe alias's immutable unique identifier. Output only.
metaResourceMetaResource metadata, including the etag.
specMaskedAliasSpecDesired state. Required.
statusMaskedAliasStatusObserved state. Output only.

ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

MaskedAliasSpec

FieldTypeWhat it is
addressstringAn unused address on a receiving domain in this environment. Required.
mailboxstringThe hosted mailbox that receives the alias's mail. Required.
stateMaskedAliasStateDefaults to ACTIVE on creation. REVOKED never transitions again. One of active, paused, revoked.
reply_modeMaskedAliasReplyModeDefaults to DISABLED. Does not grant outbound permission. One of disabled, reverse_alias.

MaskedAliasStatus

FieldTypeWhat it is
observed_generationint64The generation this status describes. Output only.
conditionsCondition[]Resource conditions, if any. Output only.
blocked_countint64Number of recipient attempts refused while paused or revoked. Output only.
last_blocked_timetimestampMost recent such refusal. Output only.
can_sendboolWhether outbound submission is enabled. Always false on the free tier. Output only.

Condition

FieldTypeWhat it is
typestringThe condition type, for example Ready.
statusConditionStatusWhether the condition holds. One of true, false, unknown.
observed_generationint64The generation this observation was made against.
reasonstringA machine-readable UpperCamelCase reason.
messagestringA customer-safe human-readable message.
severitySeverityHow severe a FALSE condition is. One of info, warning, error.
transition_timetimestampWhen status last changed.

Errors

Every error arrives in the body Errors describes.

Examples

curl -X PATCH "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/masked_aliases/masked-alias" \
  -H "Authorization: Bearer $SYLPHX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"orgs/acme/projects/shop/envs/production/masked_aliases/masked-alias","spec":{"address":"…","mailbox":"…"}}'