Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
In diesem Dokument wird beschrieben, wie Sie nach Secure Source Manager-Repositories anhand der vollständigen oder teilweisen Repository-ID suchen und sie ansehen.
Erforderliche Rollen
Bitten Sie Ihren Administrator, Ihnen die folgenden IAM-Rollen zuzuweisen, um die Berechtigungen zu erhalten, die Sie zum Durchsuchen von Repositories benötigen:
Wenn Sie über die Weboberfläche auf die Secure Source Manager-Instanz zugreifen möchten, kopieren Sie die folgende URL in die Adressleiste Ihres Browsers.
PROJECT_NUMBER durch die Projektnummer der Instanz. Google CloudInformationen zum Identifizieren von Projekten finden Sie unter Projekte identifizieren.
LOCATION durch die Region der Instanz.
Auf dem Tab Meine Repositories werden alle Repositories angezeigt, auf die Sie Zugriff haben.
API
Verwenden Sie die folgende HTTP-Methode und URL, um Details für alle Repositories in einer bestimmten Region für Ihre Instanz aufzulisten.
Ersetzen Sie diese Werte in den folgenden Anfragedaten:
PROJECT_ID: die Projekt-ID des Google Cloud-Projekts, in dem Secure Source Manager ausgeführt wird.
INSTANCE_ID: Instanz-ID.
LOCATION: die Region, in der sich Ihre Instanz befindet. Informationen zu unterstützten Standorten finden Sie unter Standorte.
HTTP-Methode und URL:
GET https://securesourcemanager.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/repositories?instance=projects/PROJECT_ID/locations/LOCATION/instances/INSTANCE_ID
Wenn Sie die Anfrage senden möchten, maximieren Sie eine der folgenden Optionen:
Sie können auf dem Tab Meine Repositories nach Repositories suchen, indem Sie ein Keyword eingeben.
Geben Sie in der Weboberfläche von Secure Source Manager Ihren Suchbegriff in die Suchleiste Search repository names (Nach Repository-Namen suchen) ein.
Die Suchergebnisse enthalten alle Repositories, deren Repository-ID Ihr Keyword enthält.
Wählen Sie das Repository aus, das Sie aufrufen möchten.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[],[],null,["# List and view repositories\n\nThis document outlines how to search for and view Secure Source Manager\nrepositories by full or partial repository ID.\n\nRequired roles\n--------------\n\n\nTo get the permissions that\nyou need to search repositories,\n\nask your administrator to grant you the\nfollowing IAM roles:\n\n- [Secure Source Manager Instance Accessor](/iam/docs/roles-permissions/securesourcemanager#securesourcemanager.instanceAccessor) (`roles/securesourcemanager.instanceAccessor`) on the Secure Source Manager instance\n- [Secure Source Manager Repo Reader](/iam/docs/roles-permissions/securesourcemanager#securesourcemanager.repoReader) (`roles/securesourcemanager.repoReader`) on repositories that you want to search for\n\n\nFor more information about granting roles, see [Manage access to projects, folders, and organizations](/iam/docs/granting-changing-revoking-access).\n\n\nYou might also be able to get\nthe required permissions through [custom\nroles](/iam/docs/creating-custom-roles) or other [predefined\nroles](/iam/docs/roles-overview#predefined).\n| **Note:** [IAM basic\n| roles](/iam/docs/roles-overview#basic) might also contain permissions to search repositories. You shouldn't grant basic roles in a production environment, but you can grant them in a development or test environment.\n\nFor information on granting Secure Source Manager roles,\nsee [Access control with IAM](/secure-source-manager/docs/access-control) and\n[Grant users instance access](/secure-source-manager/docs/grant-users-instance-access).\n\nList repositories\n-----------------\n\n### web interface\n\nTo access the Secure Source Manager instance through its web interface, copy the following URL\ninto your browser address bar.\n\n\n \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e-\u003cvar translate=\"no\"\u003ePROJECT_NUMBER\u003c/var\u003e.\u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e.sourcemanager.dev\n\n\u003cbr /\u003e\n\n\nReplace the following:\n\n\n- \u003cvar translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e with the instance name.\n- \u003cvar translate=\"no\"\u003ePROJECT_NUMBER\u003c/var\u003e with the instance's Google Cloud project number. For information on identifying projects, see [Identifying projects](/resource-manager/docs/creating-managing-projects#identifying_projects).\n- \u003cvar translate=\"no\"\u003eLOCATION\u003c/var\u003e with the instance's region.\n\n\u003cbr /\u003e\n\nThe **My repositories** tab displays all repositories you have access to\nview.\n\n### API\n\nTo list details for all repositories in a given region for your instance, use\nthe following HTTP method and URL.\n\n\nBefore using any of the request data,\nmake the following replacements:\n\n- \u003cvar class=\"edit\" scope=\"PROJECT_ID\" translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the [project ID](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) of the Google Cloud project where Secure Source Manager is running.\n- \u003cvar class=\"edit\" scope=\"INSTANCE_ID\" translate=\"no\"\u003eINSTANCE_ID\u003c/var\u003e: the instance ID.\n- \u003cvar class=\"edit\" scope=\"LOCATION\" translate=\"no\"\u003eLOCATION\u003c/var\u003e: the region where your instance is located. For information on supported locations, see [Locations](https://cloud.google.com/secure-source-manager/docs/locations).\n\n\nHTTP method and URL:\n\n```\nGET https://securesourcemanager.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/repositories?instance=projects/PROJECT_ID/locations/LOCATION/instances/INSTANCE_ID\n```\n\nTo send your request, expand one of these options:\n\n#### curl (Linux, macOS, or Cloud Shell)\n\n| **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](/sdk/gcloud/reference/init) or [`gcloud auth login`](/sdk/gcloud/reference/auth/login) , or by using [Cloud Shell](/shell/docs), which automatically logs you into the `gcloud` CLI . You can check the currently active account by running [`gcloud auth list`](/sdk/gcloud/reference/auth/list).\n\n\nExecute the following command:\n\n```\ncurl -X GET \\\n -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n \"https://securesourcemanager.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/repositories?instance=projects/PROJECT_ID/locations/LOCATION/instances/INSTANCE_ID\"\n```\n\n#### PowerShell (Windows)\n\n| **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](/sdk/gcloud/reference/init) or [`gcloud auth login`](/sdk/gcloud/reference/auth/login) . You can check the currently active account by running [`gcloud auth list`](/sdk/gcloud/reference/auth/list).\n\n\nExecute the following command:\n\n```\n$cred = gcloud auth print-access-token\n$headers = @{ \"Authorization\" = \"Bearer $cred\" }\n\nInvoke-WebRequest `\n -Method GET `\n -Headers $headers `\n -Uri \"https://securesourcemanager.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/repositories?instance=projects/PROJECT_ID/locations/LOCATION/instances/INSTANCE_ID\" | Select-Object -Expand Content\n```\n\nYou should receive a JSON response similar to the following:\n\n```\n{\n \"repositories\" : [\n {\n \"createTime\" : \"2023-08-09T19:32:15Z\",\n \"instance\" : \"projects/012345678901/locations/us-central1/instances/my-instance\",\n \"name\" : \"projects/my-project/locations/us-central1/repositories/my-repo\",\n \"uris\" : {\n \"api\" : \"https://my-instance-012345678901-api.us-central1.sourcemanager.dev/v1/projects/my-project/locations/us-central1/repositories/my-repo\",\n \"gitHttps\" : \"https://my-instance-012345678901-git.us-central1.sourcemanager.dev/my-project/my-repo.git\",\n \"html\" : \"https://my-instance-012345678901.us-central1.sourcemanager.dev/my-project/my-repo\"\n }\n }\n ]\n}\n```\n\n\u003cbr /\u003e\n\nView details for a specific repository\n--------------------------------------\n\nTo list details for a single repository, use the following HTTP method and URL.\n\n\nBefore using any of the request data,\nmake the following replacements:\n\n- \u003cvar class=\"edit\" scope=\"PROJECT_ID\" translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the [project ID](https://cloud.google.com/resource-manager/docs/creating-managing-projects#identifying_projects) of the Google Cloud project where Secure Source Manager is running.\n- \u003cvar class=\"edit\" scope=\"LOCATION\" translate=\"no\"\u003eLOCATION\u003c/var\u003e: the region where your instance is located. For information on supported locations, see [Locations](https://cloud.google.com/secure-source-manager/docs/locations).\n- \u003cvar class=\"edit\" scope=\"REPOSITORY_ID\" translate=\"no\"\u003eREPOSITORY_ID\u003c/var\u003e: the repository ID.\n\n\nHTTP method and URL:\n\n```\nGET https://securesourcemanager.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/repositories/REPOSITORY_ID\n```\n\nTo send your request, expand one of these options:\n\n#### curl (Linux, macOS, or Cloud Shell)\n\n| **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](/sdk/gcloud/reference/init) or [`gcloud auth login`](/sdk/gcloud/reference/auth/login) , or by using [Cloud Shell](/shell/docs), which automatically logs you into the `gcloud` CLI . You can check the currently active account by running [`gcloud auth list`](/sdk/gcloud/reference/auth/list).\n\n\nExecute the following command:\n\n```\ncurl -X GET \\\n -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n \"https://securesourcemanager.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/repositories/REPOSITORY_ID\"\n```\n\n#### PowerShell (Windows)\n\n| **Note:** The following command assumes that you have logged in to the `gcloud` CLI with your user account by running [`gcloud init`](/sdk/gcloud/reference/init) or [`gcloud auth login`](/sdk/gcloud/reference/auth/login) . You can check the currently active account by running [`gcloud auth list`](/sdk/gcloud/reference/auth/list).\n\n\nExecute the following command:\n\n```\n$cred = gcloud auth print-access-token\n$headers = @{ \"Authorization\" = \"Bearer $cred\" }\n\nInvoke-WebRequest `\n -Method GET `\n -Headers $headers `\n -Uri \"https://securesourcemanager.googleapis.com/v1/projects/PROJECT_ID/locations/LOCATION/repositories/REPOSITORY_ID\" | Select-Object -Expand Content\n```\n\nYou should receive a JSON response similar to the following:\n\n```\n {\n \"createTime\" : \"2023-08-09T19:32:15Z\",\n \"instance\" : \"projects/012345678901/locations/us-central1/instances/my-instance\",\n \"name\" : \"projects/my-project/locations/us-central1/repositories/my-repo\",\n \"uris\" : {\n \"api\" : \"https://my-instance-012345678901-api.us-central1.sourcemanager.dev/v1/projects/my-project/locations/us-central1/repositories/my-repo\",\n \"gitHttps\" : \"https://my-instance-012345678901-git.us-central1.sourcemanager.dev/my-project/my-repo.git\",\n \"html\" : \"https://my-instance-012345678901.us-central1.sourcemanager.dev/my-project/my-repo\"\n }\n }\n```\n\nView repositories in the web interface\n--------------------------------------\n\nYou can search for repositories within the **My repositories** tab by keyword.\n\n1. In the Secure Source Manager web interface, enter your search keyword in\n the **Search repository names** search bar.\n\n The search results include all repositories that include your keyword in\n their repository ID.\n2. Select the repository you want to view.\n\n The repository page opens.\n\nWhat's next\n-----------\n\n- [Create a repository](/secure-source-manager/docs/create-repository).\n- [Grant repository-level roles](/secure-source-manager/docs/grant-repository-roles).\n- [Delete a repository](/secure-source-manager/docs/delete-repository)."]]