REST Resource: mcpPolicies

Resource: McpPolicy

MCP Consumer Policy is a set of rules that define MCP related policy for a cloud resource hierarchy.

JSON representation
{
  "name": string,
  "etag": string,
  "createTime": string,
  "updateTime": string,
  "mcpEnableRules": [
    {
      object (McpEnableRule)
    }
  ]
}
Fields
name

string

Output only. The resource name of the policy. Only the default policy is supported. We allow the following formats: projects/{PROJECT_NUMBER}/mcpPolicies/default, projects/{PROJECT_ID}/mcpPolicies/default, folders/{FOLDER_ID}/mcpPolicies/default, organizations/{ORG_ID}/mcpPolicies/default.

etag

string

An opaque tag indicating the current version of the policy, used for concurrency control.

createTime

string (Timestamp format)

Output only. The time the policy was created. For singleton policies (such as the default policy), this is the first touch of the policy.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

updateTime

string (Timestamp format)

Output only. The time the policy was last updated.

Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than "Z" are also accepted. Examples: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" or "2014-10-02T15:01:23+05:30".

mcpEnableRules[]

object (McpEnableRule)

McpEnableRules contains MCP enablement related rules.

McpEnableRule

McpEnableRule contains MCP enablement related rules.

JSON representation
{
  "mcpServices": [
    {
      object (McpService)
    }
  ]
}
Fields
mcpServices[]

object (McpService)

List of enabled MCP services.

McpService

McpService contains the service names that are enabled for MCP.

JSON representation
{
  "service": string
}
Fields
service

string

The names of the services that are enabled for MCP. Example: services/library-example.googleapis.com

Methods

get

Get the MCP consumer policy of a resource.

patch

Update the MCP consumer policy of a resource.