[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-13 UTC."],[[["\u003cp\u003eThis endpoint retrieves a specific rule based on the provided \u003ccode\u003ename\u003c/code\u003e path parameter, requiring the \u003ccode\u003eartifactregistry.rules.get\u003c/code\u003e IAM permission.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses gRPC Transcoding syntax, and the available locations for the operation are listed, including global and various regional options.\u003c/p\u003e\n"],["\u003cp\u003eThe request body for retrieving a rule must be empty, indicating that all necessary information is passed via the URL and path parameters.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return a Rule instance, as detailed in the Rule definition.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization for this request requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform.read-only\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.repositories.rules.get\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nGets a rule.\n\n### HTTP request\n\nChoose a location: \nglobal europe-west3 europe-west8 europe-west9 us-central1 us-east1 us-east4 us-east5 us-south1 us-west1 us-west2 us-west3 us-west4 me-central2 us eu \n\n\u003cbr /\u003e\n\nThe URLs use [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains an instance of [Rule](/artifact-registry/docs/reference/rest/v1/projects.locations.repositories.rules#Rule).\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/cloud-platform.read-only`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]