sumologic.CsoarPlaybook
Import
CSOAR playbooks must be imported before they can be managed by Terraform. Import using the playbook name:
bash
$ pulumi import sumologic:index/csoarPlaybook:CsoarPlaybook example "My Playbook Name"
Create CsoarPlaybook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CsoarPlaybook(name: string, args?: CsoarPlaybookArgs, opts?: CustomResourceOptions);@overload
def CsoarPlaybook(resource_name: str,
args: Optional[CsoarPlaybookArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def CsoarPlaybook(resource_name: str,
opts: Optional[ResourceOptions] = None,
csoar_playbook_id: Optional[str] = None,
description: Optional[str] = None,
draft: Optional[bool] = None,
is_deleted: Optional[bool] = None,
is_enabled: Optional[bool] = None,
is_published: Optional[bool] = None,
links: Optional[str] = None,
name: Optional[str] = None,
nested: Optional[bool] = None,
nodes: Optional[str] = None,
tags: Optional[str] = None,
type: Optional[str] = None,
updated_name: Optional[str] = None)func NewCsoarPlaybook(ctx *Context, name string, args *CsoarPlaybookArgs, opts ...ResourceOption) (*CsoarPlaybook, error)public CsoarPlaybook(string name, CsoarPlaybookArgs? args = null, CustomResourceOptions? opts = null)
public CsoarPlaybook(String name, CsoarPlaybookArgs args)
public CsoarPlaybook(String name, CsoarPlaybookArgs args, CustomResourceOptions options)
type: sumologic:CsoarPlaybook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CsoarPlaybookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CsoarPlaybookArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CsoarPlaybookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CsoarPlaybookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CsoarPlaybookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var csoarPlaybookResource = new Sumologic.CsoarPlaybook("csoarPlaybookResource", new()
{
CsoarPlaybookId = "string",
Description = "string",
Draft = false,
IsDeleted = false,
IsEnabled = false,
IsPublished = false,
Links = "string",
Name = "string",
Nested = false,
Nodes = "string",
Tags = "string",
Type = "string",
UpdatedName = "string",
});
example, err := sumologic.NewCsoarPlaybook(ctx, "csoarPlaybookResource", &sumologic.CsoarPlaybookArgs{
CsoarPlaybookId: pulumi.String("string"),
Description: pulumi.String("string"),
Draft: pulumi.Bool(false),
IsDeleted: pulumi.Bool(false),
IsEnabled: pulumi.Bool(false),
IsPublished: pulumi.Bool(false),
Links: pulumi.String("string"),
Name: pulumi.String("string"),
Nested: pulumi.Bool(false),
Nodes: pulumi.String("string"),
Tags: pulumi.String("string"),
Type: pulumi.String("string"),
UpdatedName: pulumi.String("string"),
})
var csoarPlaybookResource = new CsoarPlaybook("csoarPlaybookResource", CsoarPlaybookArgs.builder()
.csoarPlaybookId("string")
.description("string")
.draft(false)
.isDeleted(false)
.isEnabled(false)
.isPublished(false)
.links("string")
.name("string")
.nested(false)
.nodes("string")
.tags("string")
.type("string")
.updatedName("string")
.build());
csoar_playbook_resource = sumologic.CsoarPlaybook("csoarPlaybookResource",
csoar_playbook_id="string",
description="string",
draft=False,
is_deleted=False,
is_enabled=False,
is_published=False,
links="string",
name="string",
nested=False,
nodes="string",
tags="string",
type="string",
updated_name="string")
const csoarPlaybookResource = new sumologic.CsoarPlaybook("csoarPlaybookResource", {
csoarPlaybookId: "string",
description: "string",
draft: false,
isDeleted: false,
isEnabled: false,
isPublished: false,
links: "string",
name: "string",
nested: false,
nodes: "string",
tags: "string",
type: "string",
updatedName: "string",
});
type: sumologic:CsoarPlaybook
properties:
csoarPlaybookId: string
description: string
draft: false
isDeleted: false
isEnabled: false
isPublished: false
links: string
name: string
nested: false
nodes: string
tags: string
type: string
updatedName: string
CsoarPlaybook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CsoarPlaybook resource accepts the following input properties:
- Csoar
Playbook stringId - The ID for this playbook (same as name).
- Description string
- The description of the playbook. Supports HTML markup.
- Draft bool
- Whether the playbook is in draft state.
- Is
Deleted bool - Whether the playbook is deleted.
- Is
Enabled bool - Whether the playbook is enabled.
- Is
Published bool - Whether the playbook is published.
- Links string
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- Name string
- The current name of the playbook. This is used to identify the playbook for import and updates.
- Nested bool
- Whether the playbook is nested.
- Nodes string
- JSON string representation of playbook nodes.
- string
- Comma-separated tags for the playbook.
- Type string
- The type of playbook.
- Updated
Name string - When specified, this will rename the playbook to the new name.
- Csoar
Playbook stringId - The ID for this playbook (same as name).
- Description string
- The description of the playbook. Supports HTML markup.
- Draft bool
- Whether the playbook is in draft state.
- Is
Deleted bool - Whether the playbook is deleted.
- Is
Enabled bool - Whether the playbook is enabled.
- Is
Published bool - Whether the playbook is published.
- Links string
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- Name string
- The current name of the playbook. This is used to identify the playbook for import and updates.
- Nested bool
- Whether the playbook is nested.
- Nodes string
- JSON string representation of playbook nodes.
- string
- Comma-separated tags for the playbook.
- Type string
- The type of playbook.
- Updated
Name string - When specified, this will rename the playbook to the new name.
- csoar
Playbook StringId - The ID for this playbook (same as name).
- description String
- The description of the playbook. Supports HTML markup.
- draft Boolean
- Whether the playbook is in draft state.
- is
Deleted Boolean - Whether the playbook is deleted.
- is
Enabled Boolean - Whether the playbook is enabled.
- is
Published Boolean - Whether the playbook is published.
- links String
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- name String
- The current name of the playbook. This is used to identify the playbook for import and updates.
- nested Boolean
- Whether the playbook is nested.
- nodes String
- JSON string representation of playbook nodes.
- String
- Comma-separated tags for the playbook.
- type String
- The type of playbook.
- updated
Name String - When specified, this will rename the playbook to the new name.
- csoar
Playbook stringId - The ID for this playbook (same as name).
- description string
- The description of the playbook. Supports HTML markup.
- draft boolean
- Whether the playbook is in draft state.
- is
Deleted boolean - Whether the playbook is deleted.
- is
Enabled boolean - Whether the playbook is enabled.
- is
Published boolean - Whether the playbook is published.
- links string
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- name string
- The current name of the playbook. This is used to identify the playbook for import and updates.
- nested boolean
- Whether the playbook is nested.
- nodes string
- JSON string representation of playbook nodes.
- string
- Comma-separated tags for the playbook.
- type string
- The type of playbook.
- updated
Name string - When specified, this will rename the playbook to the new name.
- csoar_
playbook_ strid - The ID for this playbook (same as name).
- description str
- The description of the playbook. Supports HTML markup.
- draft bool
- Whether the playbook is in draft state.
- is_
deleted bool - Whether the playbook is deleted.
- is_
enabled bool - Whether the playbook is enabled.
- is_
published bool - Whether the playbook is published.
- links str
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- name str
- The current name of the playbook. This is used to identify the playbook for import and updates.
- nested bool
- Whether the playbook is nested.
- nodes str
- JSON string representation of playbook nodes.
- str
- Comma-separated tags for the playbook.
- type str
- The type of playbook.
- updated_
name str - When specified, this will rename the playbook to the new name.
- csoar
Playbook StringId - The ID for this playbook (same as name).
- description String
- The description of the playbook. Supports HTML markup.
- draft Boolean
- Whether the playbook is in draft state.
- is
Deleted Boolean - Whether the playbook is deleted.
- is
Enabled Boolean - Whether the playbook is enabled.
- is
Published Boolean - Whether the playbook is published.
- links String
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- name String
- The current name of the playbook. This is used to identify the playbook for import and updates.
- nested Boolean
- Whether the playbook is nested.
- nodes String
- JSON string representation of playbook nodes.
- String
- Comma-separated tags for the playbook.
- type String
- The type of playbook.
- updated
Name String - When specified, this will rename the playbook to the new name.
Outputs
All input properties are implicitly available as output properties. Additionally, the CsoarPlaybook resource produces the following output properties:
- Created
By double - ID of the user who created the playbook.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated double - Timestamp of when the playbook was last updated.
- Updated
By double - ID of the user who last updated the playbook.
- Created
By float64 - ID of the user who created the playbook.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Updated float64 - Timestamp of when the playbook was last updated.
- Updated
By float64 - ID of the user who last updated the playbook.
- created
By Double - ID of the user who created the playbook.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated Double - Timestamp of when the playbook was last updated.
- updated
By Double - ID of the user who last updated the playbook.
- created
By number - ID of the user who created the playbook.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Updated number - Timestamp of when the playbook was last updated.
- updated
By number - ID of the user who last updated the playbook.
- created_
by float - ID of the user who created the playbook.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
updated float - Timestamp of when the playbook was last updated.
- updated_
by float - ID of the user who last updated the playbook.
- created
By Number - ID of the user who created the playbook.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Updated Number - Timestamp of when the playbook was last updated.
- updated
By Number - ID of the user who last updated the playbook.
Look up Existing CsoarPlaybook Resource
Get an existing CsoarPlaybook resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CsoarPlaybookState, opts?: CustomResourceOptions): CsoarPlaybook@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_by: Optional[float] = None,
csoar_playbook_id: Optional[str] = None,
description: Optional[str] = None,
draft: Optional[bool] = None,
is_deleted: Optional[bool] = None,
is_enabled: Optional[bool] = None,
is_published: Optional[bool] = None,
last_updated: Optional[float] = None,
links: Optional[str] = None,
name: Optional[str] = None,
nested: Optional[bool] = None,
nodes: Optional[str] = None,
tags: Optional[str] = None,
type: Optional[str] = None,
updated_by: Optional[float] = None,
updated_name: Optional[str] = None) -> CsoarPlaybookfunc GetCsoarPlaybook(ctx *Context, name string, id IDInput, state *CsoarPlaybookState, opts ...ResourceOption) (*CsoarPlaybook, error)public static CsoarPlaybook Get(string name, Input<string> id, CsoarPlaybookState? state, CustomResourceOptions? opts = null)public static CsoarPlaybook get(String name, Output<String> id, CsoarPlaybookState state, CustomResourceOptions options)resources: _: type: sumologic:CsoarPlaybook get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Created
By double - ID of the user who created the playbook.
- Csoar
Playbook stringId - The ID for this playbook (same as name).
- Description string
- The description of the playbook. Supports HTML markup.
- Draft bool
- Whether the playbook is in draft state.
- Is
Deleted bool - Whether the playbook is deleted.
- Is
Enabled bool - Whether the playbook is enabled.
- Is
Published bool - Whether the playbook is published.
- Last
Updated double - Timestamp of when the playbook was last updated.
- Links string
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- Name string
- The current name of the playbook. This is used to identify the playbook for import and updates.
- Nested bool
- Whether the playbook is nested.
- Nodes string
- JSON string representation of playbook nodes.
- string
- Comma-separated tags for the playbook.
- Type string
- The type of playbook.
- Updated
By double - ID of the user who last updated the playbook.
- Updated
Name string - When specified, this will rename the playbook to the new name.
- Created
By float64 - ID of the user who created the playbook.
- Csoar
Playbook stringId - The ID for this playbook (same as name).
- Description string
- The description of the playbook. Supports HTML markup.
- Draft bool
- Whether the playbook is in draft state.
- Is
Deleted bool - Whether the playbook is deleted.
- Is
Enabled bool - Whether the playbook is enabled.
- Is
Published bool - Whether the playbook is published.
- Last
Updated float64 - Timestamp of when the playbook was last updated.
- Links string
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- Name string
- The current name of the playbook. This is used to identify the playbook for import and updates.
- Nested bool
- Whether the playbook is nested.
- Nodes string
- JSON string representation of playbook nodes.
- string
- Comma-separated tags for the playbook.
- Type string
- The type of playbook.
- Updated
By float64 - ID of the user who last updated the playbook.
- Updated
Name string - When specified, this will rename the playbook to the new name.
- created
By Double - ID of the user who created the playbook.
- csoar
Playbook StringId - The ID for this playbook (same as name).
- description String
- The description of the playbook. Supports HTML markup.
- draft Boolean
- Whether the playbook is in draft state.
- is
Deleted Boolean - Whether the playbook is deleted.
- is
Enabled Boolean - Whether the playbook is enabled.
- is
Published Boolean - Whether the playbook is published.
- last
Updated Double - Timestamp of when the playbook was last updated.
- links String
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- name String
- The current name of the playbook. This is used to identify the playbook for import and updates.
- nested Boolean
- Whether the playbook is nested.
- nodes String
- JSON string representation of playbook nodes.
- String
- Comma-separated tags for the playbook.
- type String
- The type of playbook.
- updated
By Double - ID of the user who last updated the playbook.
- updated
Name String - When specified, this will rename the playbook to the new name.
- created
By number - ID of the user who created the playbook.
- csoar
Playbook stringId - The ID for this playbook (same as name).
- description string
- The description of the playbook. Supports HTML markup.
- draft boolean
- Whether the playbook is in draft state.
- is
Deleted boolean - Whether the playbook is deleted.
- is
Enabled boolean - Whether the playbook is enabled.
- is
Published boolean - Whether the playbook is published.
- last
Updated number - Timestamp of when the playbook was last updated.
- links string
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- name string
- The current name of the playbook. This is used to identify the playbook for import and updates.
- nested boolean
- Whether the playbook is nested.
- nodes string
- JSON string representation of playbook nodes.
- string
- Comma-separated tags for the playbook.
- type string
- The type of playbook.
- updated
By number - ID of the user who last updated the playbook.
- updated
Name string - When specified, this will rename the playbook to the new name.
- created_
by float - ID of the user who created the playbook.
- csoar_
playbook_ strid - The ID for this playbook (same as name).
- description str
- The description of the playbook. Supports HTML markup.
- draft bool
- Whether the playbook is in draft state.
- is_
deleted bool - Whether the playbook is deleted.
- is_
enabled bool - Whether the playbook is enabled.
- is_
published bool - Whether the playbook is published.
- last_
updated float - Timestamp of when the playbook was last updated.
- links str
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- name str
- The current name of the playbook. This is used to identify the playbook for import and updates.
- nested bool
- Whether the playbook is nested.
- nodes str
- JSON string representation of playbook nodes.
- str
- Comma-separated tags for the playbook.
- type str
- The type of playbook.
- updated_
by float - ID of the user who last updated the playbook.
- updated_
name str - When specified, this will rename the playbook to the new name.
- created
By Number - ID of the user who created the playbook.
- csoar
Playbook StringId - The ID for this playbook (same as name).
- description String
- The description of the playbook. Supports HTML markup.
- draft Boolean
- Whether the playbook is in draft state.
- is
Deleted Boolean - Whether the playbook is deleted.
- is
Enabled Boolean - Whether the playbook is enabled.
- is
Published Boolean - Whether the playbook is published.
- last
Updated Number - Timestamp of when the playbook was last updated.
- links String
JSON string representation of playbook links that connect the nodes together to form the workflow.
Additional data provided in state:
- name String
- The current name of the playbook. This is used to identify the playbook for import and updates.
- nested Boolean
- Whether the playbook is nested.
- nodes String
- JSON string representation of playbook nodes.
- String
- Comma-separated tags for the playbook.
- type String
- The type of playbook.
- updated
By Number - ID of the user who last updated the playbook.
- updated
Name String - When specified, this will rename the playbook to the new name.
Package Details
- Repository
- Sumo Logic sumologic/terraform-provider-sumologic
- License
- Notes
- This Pulumi package is based on the
sumologicTerraform Provider.
