1. Packages
  2. Sumologic Provider
  3. API Docs
  4. RoleV2
Sumo Logic v1.0.6 published on Tuesday, Mar 11, 2025 by Pulumi

sumologic.RoleV2

Explore with Pulumi AI

Provider to manage Sumologic Role v2

Create RoleV2 Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RoleV2(name: string, args?: RoleV2Args, opts?: CustomResourceOptions);
@overload
def RoleV2(resource_name: str,
           args: Optional[RoleV2Args] = None,
           opts: Optional[ResourceOptions] = None)

@overload
def RoleV2(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           audit_data_filter: Optional[str] = None,
           capabilities: Optional[Sequence[str]] = None,
           description: Optional[str] = None,
           log_analytics_filter: Optional[str] = None,
           name: Optional[str] = None,
           security_data_filter: Optional[str] = None,
           selected_views: Optional[Sequence[RoleV2SelectedViewArgs]] = None,
           selection_type: Optional[str] = None)
func NewRoleV2(ctx *Context, name string, args *RoleV2Args, opts ...ResourceOption) (*RoleV2, error)
public RoleV2(string name, RoleV2Args? args = null, CustomResourceOptions? opts = null)
public RoleV2(String name, RoleV2Args args)
public RoleV2(String name, RoleV2Args args, CustomResourceOptions options)
type: sumologic:RoleV2
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args RoleV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args RoleV2Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args RoleV2Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args RoleV2Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RoleV2Args
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 roleV2Resource = new SumoLogic.RoleV2("roleV2Resource", new()
{
    AuditDataFilter = "string",
    Capabilities = new[]
    {
        "string",
    },
    Description = "string",
    LogAnalyticsFilter = "string",
    Name = "string",
    SecurityDataFilter = "string",
    SelectedViews = new[]
    {
        new SumoLogic.Inputs.RoleV2SelectedViewArgs
        {
            ViewName = "string",
            ViewFilter = "string",
        },
    },
    SelectionType = "string",
});
Copy
example, err := sumologic.NewRoleV2(ctx, "roleV2Resource", &sumologic.RoleV2Args{
	AuditDataFilter: pulumi.String("string"),
	Capabilities: pulumi.StringArray{
		pulumi.String("string"),
	},
	Description:        pulumi.String("string"),
	LogAnalyticsFilter: pulumi.String("string"),
	Name:               pulumi.String("string"),
	SecurityDataFilter: pulumi.String("string"),
	SelectedViews: sumologic.RoleV2SelectedViewArray{
		&sumologic.RoleV2SelectedViewArgs{
			ViewName:   pulumi.String("string"),
			ViewFilter: pulumi.String("string"),
		},
	},
	SelectionType: pulumi.String("string"),
})
Copy
var roleV2Resource = new RoleV2("roleV2Resource", RoleV2Args.builder()
    .auditDataFilter("string")
    .capabilities("string")
    .description("string")
    .logAnalyticsFilter("string")
    .name("string")
    .securityDataFilter("string")
    .selectedViews(RoleV2SelectedViewArgs.builder()
        .viewName("string")
        .viewFilter("string")
        .build())
    .selectionType("string")
    .build());
Copy
role_v2_resource = sumologic.RoleV2("roleV2Resource",
    audit_data_filter="string",
    capabilities=["string"],
    description="string",
    log_analytics_filter="string",
    name="string",
    security_data_filter="string",
    selected_views=[{
        "view_name": "string",
        "view_filter": "string",
    }],
    selection_type="string")
Copy
const roleV2Resource = new sumologic.RoleV2("roleV2Resource", {
    auditDataFilter: "string",
    capabilities: ["string"],
    description: "string",
    logAnalyticsFilter: "string",
    name: "string",
    securityDataFilter: "string",
    selectedViews: [{
        viewName: "string",
        viewFilter: "string",
    }],
    selectionType: "string",
});
Copy
type: sumologic:RoleV2
properties:
    auditDataFilter: string
    capabilities:
        - string
    description: string
    logAnalyticsFilter: string
    name: string
    securityDataFilter: string
    selectedViews:
        - viewFilter: string
          viewName: string
    selectionType: string
Copy

RoleV2 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 RoleV2 resource accepts the following input properties:

AuditDataFilter string
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
Capabilities List<string>
List of capabilities associated with this role.
Description string
Description of the role.
LogAnalyticsFilter string
A search filter which would be applied on partitions which belong to Log Analytics product area.
Name string
Name of the role.
SecurityDataFilter string
A search filter which would be applied on partitions which belong to Security Data product area.
SelectedViews List<Pulumi.SumoLogic.Inputs.RoleV2SelectedView>
List of views with specific view level filters in accordance to the selectionType chosen.
SelectionType string
Describes the Permission Construct for the list of views in "selectedViews" parameter.
AuditDataFilter string
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
Capabilities []string
List of capabilities associated with this role.
Description string
Description of the role.
LogAnalyticsFilter string
A search filter which would be applied on partitions which belong to Log Analytics product area.
Name string
Name of the role.
SecurityDataFilter string
A search filter which would be applied on partitions which belong to Security Data product area.
SelectedViews []RoleV2SelectedViewArgs
List of views with specific view level filters in accordance to the selectionType chosen.
SelectionType string
Describes the Permission Construct for the list of views in "selectedViews" parameter.
auditDataFilter String
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
capabilities List<String>
List of capabilities associated with this role.
description String
Description of the role.
logAnalyticsFilter String
A search filter which would be applied on partitions which belong to Log Analytics product area.
name String
Name of the role.
securityDataFilter String
A search filter which would be applied on partitions which belong to Security Data product area.
selectedViews List<RoleV2SelectedView>
List of views with specific view level filters in accordance to the selectionType chosen.
selectionType String
Describes the Permission Construct for the list of views in "selectedViews" parameter.
auditDataFilter string
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
capabilities string[]
List of capabilities associated with this role.
description string
Description of the role.
logAnalyticsFilter string
A search filter which would be applied on partitions which belong to Log Analytics product area.
name string
Name of the role.
securityDataFilter string
A search filter which would be applied on partitions which belong to Security Data product area.
selectedViews RoleV2SelectedView[]
List of views with specific view level filters in accordance to the selectionType chosen.
selectionType string
Describes the Permission Construct for the list of views in "selectedViews" parameter.
audit_data_filter str
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
capabilities Sequence[str]
List of capabilities associated with this role.
description str
Description of the role.
log_analytics_filter str
A search filter which would be applied on partitions which belong to Log Analytics product area.
name str
Name of the role.
security_data_filter str
A search filter which would be applied on partitions which belong to Security Data product area.
selected_views Sequence[RoleV2SelectedViewArgs]
List of views with specific view level filters in accordance to the selectionType chosen.
selection_type str
Describes the Permission Construct for the list of views in "selectedViews" parameter.
auditDataFilter String
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
capabilities List<String>
List of capabilities associated with this role.
description String
Description of the role.
logAnalyticsFilter String
A search filter which would be applied on partitions which belong to Log Analytics product area.
name String
Name of the role.
securityDataFilter String
A search filter which would be applied on partitions which belong to Security Data product area.
selectedViews List<Property Map>
List of views with specific view level filters in accordance to the selectionType chosen.
selectionType String
Describes the Permission Construct for the list of views in "selectedViews" parameter.

Outputs

All input properties are implicitly available as output properties. Additionally, the RoleV2 resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing RoleV2 Resource

Get an existing RoleV2 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?: RoleV2State, opts?: CustomResourceOptions): RoleV2
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        audit_data_filter: Optional[str] = None,
        capabilities: Optional[Sequence[str]] = None,
        description: Optional[str] = None,
        log_analytics_filter: Optional[str] = None,
        name: Optional[str] = None,
        security_data_filter: Optional[str] = None,
        selected_views: Optional[Sequence[RoleV2SelectedViewArgs]] = None,
        selection_type: Optional[str] = None) -> RoleV2
func GetRoleV2(ctx *Context, name string, id IDInput, state *RoleV2State, opts ...ResourceOption) (*RoleV2, error)
public static RoleV2 Get(string name, Input<string> id, RoleV2State? state, CustomResourceOptions? opts = null)
public static RoleV2 get(String name, Output<String> id, RoleV2State state, CustomResourceOptions options)
resources:  _:    type: sumologic:RoleV2    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
AuditDataFilter string
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
Capabilities List<string>
List of capabilities associated with this role.
Description string
Description of the role.
LogAnalyticsFilter string
A search filter which would be applied on partitions which belong to Log Analytics product area.
Name string
Name of the role.
SecurityDataFilter string
A search filter which would be applied on partitions which belong to Security Data product area.
SelectedViews List<Pulumi.SumoLogic.Inputs.RoleV2SelectedView>
List of views with specific view level filters in accordance to the selectionType chosen.
SelectionType string
Describes the Permission Construct for the list of views in "selectedViews" parameter.
AuditDataFilter string
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
Capabilities []string
List of capabilities associated with this role.
Description string
Description of the role.
LogAnalyticsFilter string
A search filter which would be applied on partitions which belong to Log Analytics product area.
Name string
Name of the role.
SecurityDataFilter string
A search filter which would be applied on partitions which belong to Security Data product area.
SelectedViews []RoleV2SelectedViewArgs
List of views with specific view level filters in accordance to the selectionType chosen.
SelectionType string
Describes the Permission Construct for the list of views in "selectedViews" parameter.
auditDataFilter String
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
capabilities List<String>
List of capabilities associated with this role.
description String
Description of the role.
logAnalyticsFilter String
A search filter which would be applied on partitions which belong to Log Analytics product area.
name String
Name of the role.
securityDataFilter String
A search filter which would be applied on partitions which belong to Security Data product area.
selectedViews List<RoleV2SelectedView>
List of views with specific view level filters in accordance to the selectionType chosen.
selectionType String
Describes the Permission Construct for the list of views in "selectedViews" parameter.
auditDataFilter string
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
capabilities string[]
List of capabilities associated with this role.
description string
Description of the role.
logAnalyticsFilter string
A search filter which would be applied on partitions which belong to Log Analytics product area.
name string
Name of the role.
securityDataFilter string
A search filter which would be applied on partitions which belong to Security Data product area.
selectedViews RoleV2SelectedView[]
List of views with specific view level filters in accordance to the selectionType chosen.
selectionType string
Describes the Permission Construct for the list of views in "selectedViews" parameter.
audit_data_filter str
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
capabilities Sequence[str]
List of capabilities associated with this role.
description str
Description of the role.
log_analytics_filter str
A search filter which would be applied on partitions which belong to Log Analytics product area.
name str
Name of the role.
security_data_filter str
A search filter which would be applied on partitions which belong to Security Data product area.
selected_views Sequence[RoleV2SelectedViewArgs]
List of views with specific view level filters in accordance to the selectionType chosen.
selection_type str
Describes the Permission Construct for the list of views in "selectedViews" parameter.
auditDataFilter String
A search filter which would be applied on partitions which belong to Audit Data product area. Help Doc : (https://help.sumologic.com/docs/manage/security/audit-index/).
capabilities List<String>
List of capabilities associated with this role.
description String
Description of the role.
logAnalyticsFilter String
A search filter which would be applied on partitions which belong to Log Analytics product area.
name String
Name of the role.
securityDataFilter String
A search filter which would be applied on partitions which belong to Security Data product area.
selectedViews List<Property Map>
List of views with specific view level filters in accordance to the selectionType chosen.
selectionType String
Describes the Permission Construct for the list of views in "selectedViews" parameter.

Supporting Types

RoleV2SelectedView
, RoleV2SelectedViewArgs

ViewName This property is required. string
ViewFilter string
ViewName This property is required. string
ViewFilter string
viewName This property is required. String
viewFilter String
viewName This property is required. string
viewFilter string
view_name This property is required. str
view_filter str
viewName This property is required. String
viewFilter String

Package Details

Repository
Sumo Logic pulumi/pulumi-sumologic
License
Apache-2.0
Notes
This Pulumi package is based on the sumologic Terraform Provider.