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);
}
}
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}
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 string
- The unique name of the resource.
- args CameraRolesArgs
- 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 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 string
- The unique name of the resource.
- args CameraRolesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CameraRolesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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:
- Organization
Id string - organizationId path parameter. Organization ID
- Applied
On List<CameraDevices Roles Applied On Device> - Device tag on which this specified permission is applied.
- Applied
On List<CameraNetworks Roles Applied On Network> - Network tag on which this specified permission is applied.
- Applied
Org List<CameraWides Roles Applied Org Wide> - Permissions to be applied org wide.
- Name string
- The name of the new role. Must be unique. This parameter is required.
- Role
Id string - roleId path parameter. Role ID
- Organization
Id string - organizationId path parameter. Organization ID
- Applied
On []CameraDevices Roles Applied On Device Args - Device tag on which this specified permission is applied.
- Applied
On []CameraNetworks Roles Applied On Network Args - Network tag on which this specified permission is applied.
- Applied
Org []CameraWides Roles Applied Org Wide Args - Permissions to be applied org wide.
- Name string
- The name of the new role. Must be unique. This parameter is required.
- Role
Id string - roleId path parameter. Role ID
- organization
Id String - organizationId path parameter. Organization ID
- applied
On List<CameraDevices Roles Applied On Device> - Device tag on which this specified permission is applied.
- applied
On List<CameraNetworks Roles Applied On Network> - Network tag on which this specified permission is applied.
- applied
Org List<CameraWides Roles Applied Org Wide> - Permissions to be applied org wide.
- name String
- The name of the new role. Must be unique. This parameter is required.
- role
Id String - roleId path parameter. Role ID
- organization
Id string - organizationId path parameter. Organization ID
- applied
On CameraDevices Roles Applied On Device[] - Device tag on which this specified permission is applied.
- applied
On CameraNetworks Roles Applied On Network[] - Network tag on which this specified permission is applied.
- applied
Org CameraWides Roles Applied Org Wide[] - Permissions to be applied org wide.
- name string
- The name of the new role. Must be unique. This parameter is required.
- role
Id string - roleId path parameter. Role ID
- organization_
id str - organizationId path parameter. Organization ID
- applied_
on_ Sequence[Cameradevices Roles Applied On Device Args] - Device tag on which this specified permission is applied.
- applied_
on_ Sequence[Cameranetworks Roles Applied On Network Args] - Network tag on which this specified permission is applied.
- applied_
org_ Sequence[Camerawides Roles Applied Org Wide Args] - 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
- organization
Id String - organizationId path parameter. Organization ID
- applied
On List<Property Map>Devices - Device tag on which this specified permission is applied.
- applied
On List<Property Map>Networks - Network tag on which this specified permission is applied.
- applied
Org List<Property Map>Wides - Permissions to be applied org wide.
- name String
- The name of the new role. Must be unique. This parameter is required.
- role
Id 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)
Resource lookup is not supported in YAML
- 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.
- Applied
On List<CameraDevices Roles Applied On Device> - Device tag on which this specified permission is applied.
- Applied
On List<CameraNetworks Roles Applied On Network> - Network tag on which this specified permission is applied.
- Applied
Org List<CameraWides Roles Applied Org Wide> - Permissions to be applied org wide.
- Name string
- The name of the new role. Must be unique. This parameter is required.
- Organization
Id string - organizationId path parameter. Organization ID
- Role
Id string - roleId path parameter. Role ID
- Applied
On []CameraDevices Roles Applied On Device Args - Device tag on which this specified permission is applied.
- Applied
On []CameraNetworks Roles Applied On Network Args - Network tag on which this specified permission is applied.
- Applied
Org []CameraWides Roles Applied Org Wide Args - Permissions to be applied org wide.
- Name string
- The name of the new role. Must be unique. This parameter is required.
- Organization
Id string - organizationId path parameter. Organization ID
- Role
Id string - roleId path parameter. Role ID
- applied
On List<CameraDevices Roles Applied On Device> - Device tag on which this specified permission is applied.
- applied
On List<CameraNetworks Roles Applied On Network> - Network tag on which this specified permission is applied.
- applied
Org List<CameraWides Roles Applied Org Wide> - Permissions to be applied org wide.
- name String
- The name of the new role. Must be unique. This parameter is required.
- organization
Id String - organizationId path parameter. Organization ID
- role
Id String - roleId path parameter. Role ID
- applied
On CameraDevices Roles Applied On Device[] - Device tag on which this specified permission is applied.
- applied
On CameraNetworks Roles Applied On Network[] - Network tag on which this specified permission is applied.
- applied
Org CameraWides Roles Applied Org Wide[] - Permissions to be applied org wide.
- name string
- The name of the new role. Must be unique. This parameter is required.
- organization
Id string - organizationId path parameter. Organization ID
- role
Id string - roleId path parameter. Role ID
- applied_
on_ Sequence[Cameradevices Roles Applied On Device Args] - Device tag on which this specified permission is applied.
- applied_
on_ Sequence[Cameranetworks Roles Applied On Network Args] - Network tag on which this specified permission is applied.
- applied_
org_ Sequence[Camerawides Roles Applied Org Wide Args] - 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
- applied
On List<Property Map>Devices - Device tag on which this specified permission is applied.
- applied
On List<Property Map>Networks - Network tag on which this specified permission is applied.
- applied
Org List<Property Map>Wides - Permissions to be applied org wide.
- name String
- The name of the new role. Must be unique. This parameter is required.
- organization
Id String - organizationId path parameter. Organization ID
- role
Id String - roleId path parameter. Role ID
Supporting Types
CameraRolesAppliedOnDevice, CameraRolesAppliedOnDeviceArgs
- Id string
- Device id.
- In
Networks stringWith Id - Network id scope
- In
Networks stringWith Tag - Network tag scope
- Permission
Level string - Permission
Scope string - Permission
Scope stringId - Permission scope id
- Tag string
- Device tag.
- Id string
- Device id.
- In
Networks stringWith Id - Network id scope
- In
Networks stringWith Tag - Network tag scope
- Permission
Level string - Permission
Scope string - Permission
Scope stringId - Permission scope id
- Tag string
- Device tag.
- id String
- Device id.
- in
Networks StringWith Id - Network id scope
- in
Networks StringWith Tag - Network tag scope
- permission
Level String - permission
Scope String - permission
Scope StringId - Permission scope id
- tag String
- Device tag.
- id string
- Device id.
- in
Networks stringWith Id - Network id scope
- in
Networks stringWith Tag - Network tag scope
- permission
Level string - permission
Scope string - permission
Scope stringId - Permission scope id
- tag string
- Device tag.
- id str
- Device id.
- in_
networks_ strwith_ id - Network id scope
- in_
networks_ strwith_ tag - Network tag scope
- permission_
level str - permission_
scope str - permission_
scope_ strid - Permission scope id
- tag str
- Device tag.
- id String
- Device id.
- in
Networks StringWith Id - Network id scope
- in
Networks StringWith Tag - Network tag scope
- permission
Level String - permission
Scope String - permission
Scope StringId - Permission scope id
- tag String
- Device tag.
CameraRolesAppliedOnNetwork, CameraRolesAppliedOnNetworkArgs
- Id string
- Network id.
- Permission
Level string - Permission
Scope string - Permission
Scope stringId - Permission scope id
- Tag string
- Network tag
- Id string
- Network id.
- Permission
Level string - Permission
Scope string - Permission
Scope stringId - Permission scope id
- Tag string
- Network tag
- id String
- Network id.
- permission
Level String - permission
Scope String - permission
Scope StringId - Permission scope id
- tag String
- Network tag
- id string
- Network id.
- permission
Level string - permission
Scope string - permission
Scope stringId - Permission scope id
- tag string
- Network tag
- id str
- Network id.
- permission_
level str - permission_
scope str - permission_
scope_ strid - Permission scope id
- tag str
- Network tag
- id String
- Network id.
- permission
Level String - permission
Scope String - permission
Scope StringId - Permission scope id
- tag String
- Network tag
CameraRolesAppliedOrgWide, CameraRolesAppliedOrgWideArgs
- Permission
Level string - Permission
Scope string - Permission
Scope stringId - Permission scope id
- Tag string
- Permission
Level string - Permission
Scope string - Permission
Scope stringId - Permission scope id
- Tag string
- permission
Level String - permission
Scope String - permission
Scope StringId - Permission scope id
- tag String
- permission
Level string - permission
Scope string - permission
Scope stringId - Permission scope id
- tag string
- permission_
level str - permission_
scope str - permission_
scope_ strid - Permission scope id
- tag str
- permission
Level String - permission
Scope String - permission
Scope StringId - Permission scope id
- tag String
Import
$ pulumi import meraki:organizations/cameraRoles:CameraRoles example "organization_id,role_id"
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.