Method: projects.services.resourcePolicies.create
Stay organized with collections
Save and categorize content based on your preferences.
HTTP request
POST https://firebaseappcheck.googleapis.com/v1/{parent=projects/*/services/*}/resourcePolicies
The URL uses gRPC Transcoding syntax.
Path parameters
Parameters |
parent |
string
Required. The relative resource name of the parent Service in which the specified ResourcePolicy will be created, in the format:
projects/{project_number}/services/{service_id}
Note that the service_id element must be a supported service ID. Currently, the following service IDs are supported:
oauth2.googleapis.com (Google Identity for iOS)
|
Request body
The request body contains an instance of ResourcePolicy
.
Response body
If successful, the response body contains a newly created instance of ResourcePolicy
.
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/firebase
For more information, see the Authentication Overview.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-26 UTC.
[null,null,["Last updated 2024-09-26 UTC."],[],[],null,["# Method: projects.services.resourcePolicies.create\n\nCreates the specified [ResourcePolicy](/docs/reference/appcheck/rest/v1/projects.services.resourcePolicies#ResourcePolicy) configuration.\n\n### HTTP request\n\n`POST https://firebaseappcheck.googleapis.com/v1/{parent=projects/*/services/*}/resourcePolicies`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `parent` | `string` Required. The relative resource name of the parent [Service](/docs/reference/appcheck/rest/v1/projects.services#Service) in which the specified [ResourcePolicy](/docs/reference/appcheck/rest/v1/projects.services.resourcePolicies#ResourcePolicy) will be created, in the format: projects/{project_number}/services/{service_id} Note that the `service_id` element must be a supported service ID. Currently, the following service IDs are supported: - `oauth2.googleapis.com` (Google Identity for iOS) |\n\n### Request body\n\nThe request body contains an instance of [ResourcePolicy](/docs/reference/appcheck/rest/v1/projects.services.resourcePolicies#ResourcePolicy).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [ResourcePolicy](/docs/reference/appcheck/rest/v1/projects.services.resourcePolicies#ResourcePolicy).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/firebase`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]