- HTTP request
- Path parameters
- Query parameters
- Request body
- Response body
- Authorization scopes
- EffectivePolicyView
- RuleSource
- PolicyList
Get effective consumer policy for a resource, which contains enable rule information of consumer policies from the resource hierarchy.
HTTP request
GET https://serviceusage.googleapis.com/v2beta/{name=*/*/effectivePolicy}
The URL uses gRPC Transcoding syntax.
Path parameters
| Parameters | |
|---|---|
name
|
Required. The name of the effective policy to retrieve. Format: |
Query parameters
| Parameters | |
|---|---|
view
|
The view of the effective policy to use. |
Request body
The request body must be empty.
Response body
Effective Policy is a singleton read-only resource modeling the collapsed policies and metadata effective at a particular point in the hierarchy.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "name" : string , "updateTime" : string , "enableRules" : [ { object ( |
| Fields | |
|---|---|
name
|
Output only. The name of the effective policy. Format: |
updateTime
|
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: |
enableRules[]
|
Output only. Aggregated Conditions are not supported in |
enableRuleMetadata[]
|
Output only. Metadata about enable rules in the same order as the |
Authorization scopes
Requires one of the following OAuth scopes:
-
https://www.googleapis.com/auth/cloud-platform.read-only -
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview .
EffectivePolicyView
The view of the effective policy.
| Enums | |
|---|---|
EFFECTIVE_POLICY_VIEW_UNSPECIFIED
|
The default / unset value. The API will default to the BASIC view. |
EFFECTIVE_POLICY_VIEW_BASIC
|
Include basic metadata about the effective policy, but not the source of policy rules. This is the default value. |
EFFECTIVE_POLICY_VIEW_FULL
|
Include everything. |
RuleSource
RuleSource
contains source information for where a rule was found.
| JSON representation |
|---|
{
"serviceSources"
:
{
string
:
{
object (
|
| Fields | |
|---|---|
serviceSources
|
Map of enabled services as keys and the policy that enabled it as values. For example, the key can be An object containing a list of |
PolicyList
PolicyList
contains policy resources in the hierarchy ordered from leaf to root.
| JSON representation |
|---|
{ "policies" : [ string ] } |
| Fields | |
|---|---|
policies[]
|
List of policy resources ordered from leaf to root. |

