googleapis.com – firebaserules
Creates and manages rules that determine when a Firebase Rules-enabled service should permit a request.
- Homepage
- https://api.apis.guru/v2/specs/googleapis.com:firebaserules/v1.json
- Provider
- googleapis.com:firebaserules / firebaserules
- OpenAPI version
- 3.0.0
- Spec (JSON)
- https://api.apis.guru/v2/specs/googleapis.com/firebaserules/v1/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/googleapis.com/firebaserules/v1/openapi.yaml
Tools (11)
Extracted live via the executor SDK.
-
projects.firebaserulesProjectsReleasesCreateCreate a
Release. Release names should reflect the developer's deployment practices. For example, the release name may include the environment name, application name, application version, or any other name meaningful to the developer. Once aReleaserefers to aRuleset, the rules can be enforced by Firebase Rules-enabled services. More than oneReleasemay be 'live' concurrently. Consider the following threeReleasenames forprojects/fooand theRulesetto which they refer. Release Name -> Ruleset Name * projects/foo/releases/prod -> projects/foo/rulesets/uuid123 * projects/foo/releases/prod/beta -> projects/foo/rulesets/uuid123 * projects/foo/releases/prod/v23 -> projects/foo/rulesets/uuid456 The relationships reflect aRulesetrollout in progress. Theprodandprod/betareleases refer to the sameRuleset. However,prod/v23refers to a newRuleset. TheRulesetreference for aReleasemay be updated using the UpdateRelease method. -
projects.firebaserulesProjectsReleasesGetExecutableGet the
Releaseexecutable to use when enforcing rules. -
projects.firebaserulesProjectsReleasesListList the
Releasevalues for a project. This list may optionally be filtered byReleasename,Rulesetname,TestSuitename, or any combination thereof. -
projects.firebaserulesProjectsReleasesPatchUpdate a
Releasevia PATCH. Only updates toruleset_namewill be honored.Releaserename is not supported. To create aReleaseuse the CreateRelease method. -
projects.firebaserulesProjectsRulesetsCreateCreate a
RulesetfromSource. TheRulesetis given a unique generated name which is returned to the caller.Sourcecontaining syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view ofSourceissues, use TestRuleset. -
projects.firebaserulesProjectsRulesetsDeleteDelete a
Rulesetby resource name. If theRulesetis referenced by aReleasethe operation will fail. -
projects.firebaserulesProjectsRulesetsGetGet a
Rulesetby name including the fullSourcecontents. -
projects.firebaserulesProjectsRulesetsListList
Rulesetmetadata only and optionally filter the results byRulesetname. The fullSourcecontents of aRulesetmay be retrieved with GetRuleset. -
projects.firebaserulesProjectsTestTest
Sourcefor syntactic and semantic correctness. Issues present, if any, will be returned to the caller with a description, severity, and source location. The test method may be executed withSourceor aRulesetname. PassingSourceis useful for unit testing new rules. Passing aRulesetname is useful for regression testing an existing rule. The following is an example ofSourcethat permits users to upload images to a bucket bearing their user id and matching the correct metadata: Example // Users are allowed to subscribe and unsubscribe to the blog. service firebase.storage { match /users/{userId}/images/{imageName} { allow write: if userId == request.auth.uid && (imageName.matches('.png$') || imageName.matches('.jpg$')) && resource.mimeType.matches('^image/') } }* -
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools