v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-132661,4471.5 MB
projects

Creates a Context associated with a MetadataStore.

post/v1/{+parent}/contexts

Path parameters

parentstring required

Required. The resource name of the MetadataStore where the Context should be created. Format: projects/{project}/locations/{location}/metadataStores/{metadatastore}

Query parameters

contextIdstring

The {context} portion of the resource name with the format: projects/{project}/locations/{location}/metadataStores/{metadatastore}/contexts/{context}. If not provided, the Context's ID will be a UUID generated by the service. Must be 4-128 characters in length. Valid characters are /a-z-/. Must be unique across all Contexts in the parent MetadataStore. (Otherwise the request will fail with ALREADY_EXISTS, or PERMISSION_DENIED if the caller can't view the preexisting Context.)

Request body

schemaTitlestring

The title of the schema describing the metadata. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.

schemaVersionstring

The version of the schema in schema_name to use. Schema title and version is expected to be registered in earlier Create Schema calls. And both are used together as unique identifiers to identify schemas within the local metadata store.

parentContextsstring[]

Output only. A list of resource names of Contexts that are parents of this Context. A Context may have at most 10 parent_contexts.

metadataobject

Properties of the Context. Top level metadata keys' heading and trailing spaces will be trimmed. The size of this field should not exceed 200KB.

createTimestring google-datetime

Output only. Timestamp when this Context was created.

displayNamestring

User provided display name of the Context. May be up to 128 Unicode characters.

namestring

Immutable. The resource name of the Context.

descriptionstring

Description of the Context

updateTimestring google-datetime

Output only. Timestamp when this Context was last updated.

labelsobject

The labels with user-defined metadata to organize your Contexts. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. No more than 64 user labels can be associated with one Context (System labels are excluded).

etagstring

An eTag used to perform consistent read-modify-write updates. If not set, a blind "overwrite" update happens.

Response

Successful response