CloudStorageDestination
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Cấu hình cho một đích đến trong Google Cloud Storage.
Biểu diễn dưới dạng JSON |
{
"bucket": string,
"filenamePrefix": string,
"permissions": enum (TilePermissions ),
"bucketCorsUris": [
string
]
} |
Trường |
bucket |
string
Bộ chứa đích trên Google Cloud Storage.
|
filenamePrefix |
string
Chuỗi được dùng làm tiền tố cho mỗi tệp đầu ra. Dấu "/" ở cuối cho biết một đường dẫn. Tên tệp của các tệp đã xuất sẽ được tạo từ tiền tố này, toạ độ của từng tệp trong một ảnh ghép (nếu có) và phần mở rộng tệp tương ứng với định dạng tệp.
|
permissions |
enum (TilePermissions )
Chỉ định các quyền cần đặt trên thẻ thông tin đã xuất. Nếu không chỉ định, giá trị mặc định sẽ là DEFAULT_OBJECT_ACL.
|
bucketCorsUris[] |
string
Danh sách URI không bắt buộc để đưa vào danh sách cho phép cho chế độ cài đặt CORS trên bộ chứa. Dùng để cho phép các trang web truy cập vào các tệp đã xuất qua JavaScript.
|
TilePermissions
Quyền cần thiết để thiết lập trên thẻ thông tin bản đồ đã xuất.
Enum |
TILE_PERMISSIONS_UNSPECIFIED |
Không xác định. |
PUBLIC |
Viết thẻ thông tin công khai. Yêu cầu phương thức gọi phải là CHỦ SỞ HỮU của bộ chứa. |
DEFAULT_OBJECT_ACL |
Viết thẻ thông tin bằng ACL đối tượng mặc định của bộ chứa. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eExports data to Google Cloud Storage, utilizing a specified bucket and filename prefix for organization.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of file permissions, including public access or adherence to bucket defaults.\u003c/p\u003e\n"],["\u003cp\u003eOptionally, enables cross-origin resource sharing (CORS) by whitelisting specific URIs for web-based access to exported files.\u003c/p\u003e\n"]]],["This describes configuration settings for a Google Cloud Storage destination. Key elements include the `bucket` (destination), `filenamePrefix` (output file prefix, supporting paths), and `permissions` (access control for exported tiles, defaulting to `DEFAULT_OBJECT_ACL`). `permissions` can be `PUBLIC` or `DEFAULT_OBJECT_ACL`, and `bucketCorsUris` allows for enabling cross-origin access through JavaScript. `TilePermissions` is a list of permission settings that are available.\n"],null,["# CloudStorageDestination\n\nConfiguration for a destination in Google Cloud Storage.\n\n| JSON representation |\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"bucket\": string, \"filenamePrefix\": string, \"permissions\": enum (/earth-engine/reference/rest/v1beta/CloudStorageDestination#TilePermissions), \"bucketCorsUris\": [ string ] } ``` |\n\n| Fields ||\n|--------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `bucket` | `string` The Google Cloud Storage destination bucket. |\n| `filenamePrefix` | `string` The string used as the prefix for each output file. A trailing \"/\" indicates a path. The filenames of the exported files will be constructed from this prefix, the coordinates of each file in a mosaic (if any), and a file extension corresponding to the file format. |\n| `permissions` | `enum (`[TilePermissions](/earth-engine/reference/rest/v1beta/CloudStorageDestination#TilePermissions)`)` Specifies the permissions to set on the exported tiles. If unspecified, defaults to DEFAULT_OBJECT_ACL. |\n| `bucketCorsUris[]` | `string` Optional list of URIs to whitelist for the CORS settings on the bucket. Used to enable websites to access exported files via JavaScript. |\n\nTilePermissions\n---------------\n\nPermissions to set on exported map tiles.\n\n| Enums ||\n|--------------------------------|-----------------------------------------------------------------------|\n| `TILE_PERMISSIONS_UNSPECIFIED` | Unspecified. |\n| `PUBLIC` | Write public tiles. Requires the caller to be an OWNER of the bucket. |\n| `DEFAULT_OBJECT_ACL` | Write tiles using the bucket's default object ACL. |"]]