---
title: "POST /v2/projects/{projectsId}/locations/{locationsId}/{locationsId1}:exportImage"
method: POST
path: "/v2/projects/{projectsId}/locations/{locationsId}/{locationsId1}:exportImage"
tags: ["projects"]
---

# POST /v2/projects/{projectsId}/locations/{locationsId}/{locationsId1}:exportImage

`POST /v2/projects/{projectsId}/locations/{locationsId}/{locationsId1}:exportImage`

## Request

- Base URL: `https://run.googleapis.com`
- URL: `https://run.googleapis.com/v2/projects/{projectsId}/locations/{locationsId}/{locationsId1}:exportImage`
- Auth: one of:
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/cloud-platform`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/cloud-platform`
  - OAuth 2 and OAuth 2
    - Implicit: `https://accounts.google.com/o/oauth2/auth`
    - Scopes: `https://www.googleapis.com/auth/run`
    - Authorization code: `https://accounts.google.com/o/oauth2/auth`
    - Token URL: `https://accounts.google.com/o/oauth2/token` scopes: `https://www.googleapis.com/auth/run`

Export image for a given resource.

## Path parameters

- `projectsId` string, required
- `locationsId` string, required
- `locationsId1` string, required

## Query parameters

- `$.xgafv` '1' | '2'
- `access_token` string
- `alt` 'json' | 'media' | 'proto'
- `callback` string
- `fields` string
- `key` string
- `oauth_token` string
- `prettyPrint` boolean
- `quotaUser` string
- `uploadType` string
- `upload_protocol` string

## Request body

- GoogleCloudRunV2ExportImageRequest: Request message for exporting Cloud Run image.
  - `destinationRepo` string: Required. The export destination url (the Artifact Registry repo).

## Response `200`

Successful response

- GoogleCloudRunV2ExportImageResponse: ExportImageResponse contains an operation Id to track the image export operation.
  - `operationId` string: An operation ID used to track the status of image exports tied to the original pod ID in the request.

## Changes

- **2026-12-04** `e2518ceb4284`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/run` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/run` was removed from the endpoint's security scheme `Oauth2c`
- **2026-11-10** `fc67acec61c0`: 4 info
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/cloud-platform` was added to the endpoint's security scheme `Oauth2c`
  - the security scope `https://www.googleapis.com/auth/run` was removed from the endpoint's security scheme `Oauth2`
  - the security scope `https://www.googleapis.com/auth/run` was removed from the endpoint's security scheme `Oauth2c`
- …earlier changes not shown

[Operation history](https://skmtc.dev/google/apis/run/changes/v2/projects/:projectsId/locations/:locationsId/:locationsId1:exportImage/post.md)

---

[API](https://skmtc.dev/google/apis/run.md) - [All operations](https://skmtc.dev/google/apis/run/llms.txt) - [OpenAPI document](https://skmtc.dev/google/apis/run/revisions/e2518ceb4284?raw)
