1. Packages
  2. Cisco Meraki Provider
  3. API Docs
  4. organizations
  5. CameraRoles
Cisco Meraki v0.4.1 published on Saturday, Mar 15, 2025 by Pulumi

meraki.organizations.CameraRoles

Explore with Pulumi AI

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.meraki.organizations.CameraRoles;
import com.pulumi.meraki.organizations.CameraRolesArgs;
import com.pulumi.meraki.organizations.inputs.CameraRolesAppliedOnDeviceArgs;
import com.pulumi.meraki.organizations.inputs.CameraRolesAppliedOnNetworkArgs;
import com.pulumi.meraki.organizations.inputs.CameraRolesAppliedOrgWideArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new CameraRoles("example", CameraRolesArgs.builder()
            .appliedOnDevices(CameraRolesAppliedOnDeviceArgs.builder()
                .id("")
                .permission_scope_id("1")
                .tag("reception-desk")
                .build())
            .appliedOnNetworks(CameraRolesAppliedOnNetworkArgs.builder()
                .id("")
                .permission_scope_id("2")
                .tag("building-a")
                .build())
            .appliedOrgWides(CameraRolesAppliedOrgWideArgs.builder()
                .permission_scope_id("2")
                .build())
            .name("Security_Guard")
            .organizationId("string")
            .build());

        ctx.export("merakiOrganizationsCameraRolesExample", example);
    }
}
Copy
resources:
  example:
    type: meraki:organizations:CameraRoles
    properties:
      appliedOnDevices:
        - id: ""
          permission_scope_id: '1'
          tag: reception-desk
      appliedOnNetworks:
        - id: ""
          permission_scope_id: '2'
          tag: building-a
      appliedOrgWides:
        - permission_scope_id: '2'
      name: Security_Guard
      organizationId: string
outputs:
  merakiOrganizationsCameraRolesExample: ${example}
Copy

Create CameraRoles Resource

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

Constructor syntax

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

@overload
def CameraRoles(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                organization_id: Optional[str] = None,
                applied_on_devices: Optional[Sequence[CameraRolesAppliedOnDeviceArgs]] = None,
                applied_on_networks: Optional[Sequence[CameraRolesAppliedOnNetworkArgs]] = None,
                applied_org_wides: Optional[Sequence[CameraRolesAppliedOrgWideArgs]] = None,
                name: Optional[str] = None,
                role_id: Optional[str] = None)
func NewCameraRoles(ctx *Context, name string, args CameraRolesArgs, opts ...ResourceOption) (*CameraRoles, error)
public CameraRoles(string name, CameraRolesArgs args, CustomResourceOptions? opts = null)
public CameraRoles(String name, CameraRolesArgs args)
public CameraRoles(String name, CameraRolesArgs args, CustomResourceOptions options)
type: meraki:organizations:CameraRoles
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 This property is required. CameraRolesArgs
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 This property is required. CameraRolesArgs
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 This property is required. CameraRolesArgs
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 This property is required. CameraRolesArgs
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. CameraRolesArgs
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 cameraRolesResource = new Meraki.Organizations.CameraRoles("cameraRolesResource", new()
{
    OrganizationId = "string",
    AppliedOnDevices = new[]
    {
        new Meraki.Organizations.Inputs.CameraRolesAppliedOnDeviceArgs
        {
            Id = "string",
            InNetworksWithId = "string",
            InNetworksWithTag = "string",
            PermissionLevel = "string",
            PermissionScope = "string",
            PermissionScopeId = "string",
            Tag = "string",
        },
    },
    AppliedOnNetworks = new[]
    {
        new Meraki.Organizations.Inputs.CameraRolesAppliedOnNetworkArgs
        {
            Id = "string",
            PermissionLevel = "string",
            PermissionScope = "string",
            PermissionScopeId = "string",
            Tag = "string",
        },
    },
    AppliedOrgWides = new[]
    {
        new Meraki.Organizations.Inputs.CameraRolesAppliedOrgWideArgs
        {
            PermissionLevel = "string",
            PermissionScope = "string",
            PermissionScopeId = "string",
            Tag = "string",
        },
    },
    Name = "string",
    RoleId = "string",
});
Copy
example, err := organizations.NewCameraRoles(ctx, "cameraRolesResource", &organizations.CameraRolesArgs{
	OrganizationId: pulumi.String("string"),
	AppliedOnDevices: organizations.CameraRolesAppliedOnDeviceArray{
		&organizations.CameraRolesAppliedOnDeviceArgs{
			Id:                pulumi.String("string"),
			InNetworksWithId:  pulumi.String("string"),
			InNetworksWithTag: pulumi.String("string"),
			PermissionLevel:   pulumi.String("string"),
			PermissionScope:   pulumi.String("string"),
			PermissionScopeId: pulumi.String("string"),
			Tag:               pulumi.String("string"),
		},
	},
	AppliedOnNetworks: organizations.CameraRolesAppliedOnNetworkArray{
		&organizations.CameraRolesAppliedOnNetworkArgs{
			Id:                pulumi.String("string"),
			PermissionLevel:   pulumi.String("string"),
			PermissionScope:   pulumi.String("string"),
			PermissionScopeId: pulumi.String("string"),
			Tag:               pulumi.String("string"),
		},
	},
	AppliedOrgWides: organizations.CameraRolesAppliedOrgWideArray{
		&organizations.CameraRolesAppliedOrgWideArgs{
			PermissionLevel:   pulumi.String("string"),
			PermissionScope:   pulumi.String("string"),
			PermissionScopeId: pulumi.String("string"),
			Tag:               pulumi.String("string"),
		},
	},
	Name:   pulumi.String("string"),
	RoleId: pulumi.String("string"),
})
Copy
var cameraRolesResource = new CameraRoles("cameraRolesResource", CameraRolesArgs.builder()
    .organizationId("string")
    .appliedOnDevices(CameraRolesAppliedOnDeviceArgs.builder()
        .id("string")
        .inNetworksWithId("string")
        .inNetworksWithTag("string")
        .permissionLevel("string")
        .permissionScope("string")
        .permissionScopeId("string")
        .tag("string")
        .build())
    .appliedOnNetworks(CameraRolesAppliedOnNetworkArgs.builder()
        .id("string")
        .permissionLevel("string")
        .permissionScope("string")
        .permissionScopeId("string")
        .tag("string")
        .build())
    .appliedOrgWides(CameraRolesAppliedOrgWideArgs.builder()
        .permissionLevel("string")
        .permissionScope("string")
        .permissionScopeId("string")
        .tag("string")
        .build())
    .name("string")
    .roleId("string")
    .build());
Copy
camera_roles_resource = meraki.organizations.CameraRoles("cameraRolesResource",
    organization_id="string",
    applied_on_devices=[{
        "id": "string",
        "in_networks_with_id": "string",
        "in_networks_with_tag": "string",
        "permission_level": "string",
        "permission_scope": "string",
        "permission_scope_id": "string",
        "tag": "string",
    }],
    applied_on_networks=[{
        "id": "string",
        "permission_level": "string",
        "permission_scope": "string",
        "permission_scope_id": "string",
        "tag": "string",
    }],
    applied_org_wides=[{
        "permission_level": "string",
        "permission_scope": "string",
        "permission_scope_id": "string",
        "tag": "string",
    }],
    name="string",
    role_id="string")
Copy
const cameraRolesResource = new meraki.organizations.CameraRoles("cameraRolesResource", {
    organizationId: "string",
    appliedOnDevices: [{
        id: "string",
        inNetworksWithId: "string",
        inNetworksWithTag: "string",
        permissionLevel: "string",
        permissionScope: "string",
        permissionScopeId: "string",
        tag: "string",
    }],
    appliedOnNetworks: [{
        id: "string",
        permissionLevel: "string",
        permissionScope: "string",
        permissionScopeId: "string",
        tag: "string",
    }],
    appliedOrgWides: [{
        permissionLevel: "string",
        permissionScope: "string",
        permissionScopeId: "string",
        tag: "string",
    }],
    name: "string",
    roleId: "string",
});
Copy
type: meraki:organizations:CameraRoles
properties:
    appliedOnDevices:
        - id: string
          inNetworksWithId: string
          inNetworksWithTag: string
          permissionLevel: string
          permissionScope: string
          permissionScopeId: string
          tag: string
    appliedOnNetworks:
        - id: string
          permissionLevel: string
          permissionScope: string
          permissionScopeId: string
          tag: string
    appliedOrgWides:
        - permissionLevel: string
          permissionScope: string
          permissionScopeId: string
          tag: string
    name: string
    organizationId: string
    roleId: string
Copy

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

OrganizationId This property is required. string
organizationId path parameter. Organization ID
AppliedOnDevices List<CameraRolesAppliedOnDevice>
Device tag on which this specified permission is applied.
AppliedOnNetworks List<CameraRolesAppliedOnNetwork>
Network tag on which this specified permission is applied.
AppliedOrgWides List<CameraRolesAppliedOrgWide>
Permissions to be applied org wide.
Name string
The name of the new role. Must be unique. This parameter is required.
RoleId string
roleId path parameter. Role ID
OrganizationId This property is required. string
organizationId path parameter. Organization ID
AppliedOnDevices []CameraRolesAppliedOnDeviceArgs
Device tag on which this specified permission is applied.
AppliedOnNetworks []CameraRolesAppliedOnNetworkArgs
Network tag on which this specified permission is applied.
AppliedOrgWides []CameraRolesAppliedOrgWideArgs
Permissions to be applied org wide.
Name string
The name of the new role. Must be unique. This parameter is required.
RoleId string
roleId path parameter. Role ID
organizationId This property is required. String
organizationId path parameter. Organization ID
appliedOnDevices List<CameraRolesAppliedOnDevice>
Device tag on which this specified permission is applied.
appliedOnNetworks List<CameraRolesAppliedOnNetwork>
Network tag on which this specified permission is applied.
appliedOrgWides List<CameraRolesAppliedOrgWide>
Permissions to be applied org wide.
name String
The name of the new role. Must be unique. This parameter is required.
roleId String
roleId path parameter. Role ID
organizationId This property is required. string
organizationId path parameter. Organization ID
appliedOnDevices CameraRolesAppliedOnDevice[]
Device tag on which this specified permission is applied.
appliedOnNetworks CameraRolesAppliedOnNetwork[]
Network tag on which this specified permission is applied.
appliedOrgWides CameraRolesAppliedOrgWide[]
Permissions to be applied org wide.
name string
The name of the new role. Must be unique. This parameter is required.
roleId string
roleId path parameter. Role ID
organization_id This property is required. str
organizationId path parameter. Organization ID
applied_on_devices Sequence[CameraRolesAppliedOnDeviceArgs]
Device tag on which this specified permission is applied.
applied_on_networks Sequence[CameraRolesAppliedOnNetworkArgs]
Network tag on which this specified permission is applied.
applied_org_wides Sequence[CameraRolesAppliedOrgWideArgs]
Permissions to be applied org wide.
name str
The name of the new role. Must be unique. This parameter is required.
role_id str
roleId path parameter. Role ID
organizationId This property is required. String
organizationId path parameter. Organization ID
appliedOnDevices List<Property Map>
Device tag on which this specified permission is applied.
appliedOnNetworks List<Property Map>
Network tag on which this specified permission is applied.
appliedOrgWides List<Property Map>
Permissions to be applied org wide.
name String
The name of the new role. Must be unique. This parameter is required.
roleId String
roleId path parameter. Role ID

Outputs

All input properties are implicitly available as output properties. Additionally, the CameraRoles 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 CameraRoles Resource

Get an existing CameraRoles 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?: CameraRolesState, opts?: CustomResourceOptions): CameraRoles
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        applied_on_devices: Optional[Sequence[CameraRolesAppliedOnDeviceArgs]] = None,
        applied_on_networks: Optional[Sequence[CameraRolesAppliedOnNetworkArgs]] = None,
        applied_org_wides: Optional[Sequence[CameraRolesAppliedOrgWideArgs]] = None,
        name: Optional[str] = None,
        organization_id: Optional[str] = None,
        role_id: Optional[str] = None) -> CameraRoles
func GetCameraRoles(ctx *Context, name string, id IDInput, state *CameraRolesState, opts ...ResourceOption) (*CameraRoles, error)
public static CameraRoles Get(string name, Input<string> id, CameraRolesState? state, CustomResourceOptions? opts = null)
public static CameraRoles get(String name, Output<String> id, CameraRolesState state, CustomResourceOptions options)
resources:  _:    type: meraki:organizations:CameraRoles    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:
AppliedOnDevices List<CameraRolesAppliedOnDevice>
Device tag on which this specified permission is applied.
AppliedOnNetworks List<CameraRolesAppliedOnNetwork>
Network tag on which this specified permission is applied.
AppliedOrgWides List<CameraRolesAppliedOrgWide>
Permissions to be applied org wide.
Name string
The name of the new role. Must be unique. This parameter is required.
OrganizationId string
organizationId path parameter. Organization ID
RoleId string
roleId path parameter. Role ID
AppliedOnDevices []CameraRolesAppliedOnDeviceArgs
Device tag on which this specified permission is applied.
AppliedOnNetworks []CameraRolesAppliedOnNetworkArgs
Network tag on which this specified permission is applied.
AppliedOrgWides []CameraRolesAppliedOrgWideArgs
Permissions to be applied org wide.
Name string
The name of the new role. Must be unique. This parameter is required.
OrganizationId string
organizationId path parameter. Organization ID
RoleId string
roleId path parameter. Role ID
appliedOnDevices List<CameraRolesAppliedOnDevice>
Device tag on which this specified permission is applied.
appliedOnNetworks List<CameraRolesAppliedOnNetwork>
Network tag on which this specified permission is applied.
appliedOrgWides List<CameraRolesAppliedOrgWide>
Permissions to be applied org wide.
name String
The name of the new role. Must be unique. This parameter is required.
organizationId String
organizationId path parameter. Organization ID
roleId String
roleId path parameter. Role ID
appliedOnDevices CameraRolesAppliedOnDevice[]
Device tag on which this specified permission is applied.
appliedOnNetworks CameraRolesAppliedOnNetwork[]
Network tag on which this specified permission is applied.
appliedOrgWides CameraRolesAppliedOrgWide[]
Permissions to be applied org wide.
name string
The name of the new role. Must be unique. This parameter is required.
organizationId string
organizationId path parameter. Organization ID
roleId string
roleId path parameter. Role ID
applied_on_devices Sequence[CameraRolesAppliedOnDeviceArgs]
Device tag on which this specified permission is applied.
applied_on_networks Sequence[CameraRolesAppliedOnNetworkArgs]
Network tag on which this specified permission is applied.
applied_org_wides Sequence[CameraRolesAppliedOrgWideArgs]
Permissions to be applied org wide.
name str
The name of the new role. Must be unique. This parameter is required.
organization_id str
organizationId path parameter. Organization ID
role_id str
roleId path parameter. Role ID
appliedOnDevices List<Property Map>
Device tag on which this specified permission is applied.
appliedOnNetworks List<Property Map>
Network tag on which this specified permission is applied.
appliedOrgWides List<Property Map>
Permissions to be applied org wide.
name String
The name of the new role. Must be unique. This parameter is required.
organizationId String
organizationId path parameter. Organization ID
roleId String
roleId path parameter. Role ID

Supporting Types

CameraRolesAppliedOnDevice
, CameraRolesAppliedOnDeviceArgs

Id string
Device id.
InNetworksWithId string
Network id scope
InNetworksWithTag string
Network tag scope
PermissionLevel string
PermissionScope string
PermissionScopeId string
Permission scope id
Tag string
Device tag.
Id string
Device id.
InNetworksWithId string
Network id scope
InNetworksWithTag string
Network tag scope
PermissionLevel string
PermissionScope string
PermissionScopeId string
Permission scope id
Tag string
Device tag.
id String
Device id.
inNetworksWithId String
Network id scope
inNetworksWithTag String
Network tag scope
permissionLevel String
permissionScope String
permissionScopeId String
Permission scope id
tag String
Device tag.
id string
Device id.
inNetworksWithId string
Network id scope
inNetworksWithTag string
Network tag scope
permissionLevel string
permissionScope string
permissionScopeId string
Permission scope id
tag string
Device tag.
id str
Device id.
in_networks_with_id str
Network id scope
in_networks_with_tag str
Network tag scope
permission_level str
permission_scope str
permission_scope_id str
Permission scope id
tag str
Device tag.
id String
Device id.
inNetworksWithId String
Network id scope
inNetworksWithTag String
Network tag scope
permissionLevel String
permissionScope String
permissionScopeId String
Permission scope id
tag String
Device tag.

CameraRolesAppliedOnNetwork
, CameraRolesAppliedOnNetworkArgs

Id string
Network id.
PermissionLevel string
PermissionScope string
PermissionScopeId string
Permission scope id
Tag string
Network tag
Id string
Network id.
PermissionLevel string
PermissionScope string
PermissionScopeId string
Permission scope id
Tag string
Network tag
id String
Network id.
permissionLevel String
permissionScope String
permissionScopeId String
Permission scope id
tag String
Network tag
id string
Network id.
permissionLevel string
permissionScope string
permissionScopeId string
Permission scope id
tag string
Network tag
id str
Network id.
permission_level str
permission_scope str
permission_scope_id str
Permission scope id
tag str
Network tag
id String
Network id.
permissionLevel String
permissionScope String
permissionScopeId String
Permission scope id
tag String
Network tag

CameraRolesAppliedOrgWide
, CameraRolesAppliedOrgWideArgs

PermissionLevel string
PermissionScope string
PermissionScopeId string
Permission scope id
Tag string
PermissionLevel string
PermissionScope string
PermissionScopeId string
Permission scope id
Tag string
permissionLevel String
permissionScope String
permissionScopeId String
Permission scope id
tag String
permissionLevel string
permissionScope string
permissionScopeId string
Permission scope id
tag string
permissionLevel String
permissionScope String
permissionScopeId String
Permission scope id
tag String

Import

$ pulumi import meraki:organizations/cameraRoles:CameraRoles example "organization_id,role_id"
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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