Full name: projects.locations.instances.contentHub.contentPacks.upload
Imports a content pack from a ZIP file (up to 500MB). Use this method to add external use case packages to your SecOps instance.
HTTP request
* Upload URI, for media upload requests:
POST https://chronicle.africa-south1.rep.googleapis.com/upload/v1beta/{parent}/contentPacks:importPack * Metadata URI, for metadata-only requests:POST https://chronicle.africa-south1.rep.googleapis.com/v1beta/{parent}/contentPacks:importPack Path parameters
| Parameters | |
|---|---|
parent |
Required. The resource parent of the ContentPack to import. Format: projects/{project}/locations/{location}/instances/{instance}/contentHub/contentPacks |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{ "media": { object ( |
| Fields | |
|---|---|
media |
Zip file of the imported content pack. |
mediaInfo |
Metadata about the media upload request. |
Response body
Response message for importing content pack.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{
"contentPack": string,
"mediaInfo": {
object ( |
| Fields | |
|---|---|
contentPack |
Output only. Identifier of the content pack |
mediaInfo |
Scotty properties (won't be visible in exposed API) |
Authorization scopes
Requires one of the following OAuth scopes:
https://www.googleapis.com/auth/cloud-platformhttps://www.googleapis.com/auth/chroniclehttps://www.googleapis.com/auth/chronicle.readonly
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the parent resource:
chronicle.contentPacks.create
For more information, see the IAM documentation.