- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- ApiCategoryState
- CategoryType
- Try it!
Full name: projects.locations.instances.legacyPlaybooks.legacyAddOrUpdatePlaybookCategory
Add or update workflow categories.
HTTP request
Path parameters
Parameters | |
---|---|
instance |
Required. The instance to add or update the workflow category for. Format: projects/{project}/locations/{location}/instances/{instance} |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{ "id": string, "name": string, "creationTimeUnixTimeInMs": string, "modificationTimeUnixTimeInMs": string, "categoryState": enum ( |
Fields | |
---|---|
id |
Required. Id is the unique identifier of the category. |
name |
Required. Name is the name of the category. |
creationTimeUnixTimeInMs |
Required. CreationTimeUnixTimeInMs is the creation time of the category. Represents DateTime CreationTimeUnixTimeInMs as unix time |
modificationTimeUnixTimeInMs |
Required. ModificationTimeUnixTimeInMs is the modification time of the category. Represents DateTime ModificationTimeUnixTimeInMs as unix time |
categoryState |
Output only. CategoryState is the state of the category. |
type |
Required. CategoryType is the type of the category. |
isDefaultCategory |
Required. IsDefaultCategory indicates if the category is the default category. |
Response body
If successful, the response body contains an instance of ApiWorkflowCategoryDataModel
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ApiCategoryState
ApiCategoryState represents the state of a category.
Enums | |
---|---|
API_CATEGORY_STATE_UNSPECIFIED |
The category state is unspecified. |
EMPTY |
The category state is empty. |
FULL |
The category state is full. |
FULL_FROM_RESTRICTED_ENVIRONMENT |
The category state is full from a restricted environment. |
CategoryType
CategoryType represents the type of a category.
Enums | |
---|---|
CATEGORY_TYPE_UNSPECIFIED |
The category type is unspecified. |
REGULAR |
The category type is regular. |
SYSTEM_DEFAULT |
The category type is system default. |
GENERATED_FROM_ALERT_PLAYBOOK |
The category type is generated from alert playbook. |