Interface ICameraRoles
- Namespace
- Meraki.Api.Interfaces.Products.Camera
- Assembly
- Meraki.Api.dll
public interface ICameraRoles
Methods
CreateOrganizationCameraRoleAsync(string, CameraRole, CancellationToken)
Creates new role for this organization.
[Post("/organizations/{organizationId}/camera/roles")]
Task<CameraRole> CreateOrganizationCameraRoleAsync(string organizationId, CameraRole cameraRole, CancellationToken cancellationToken = default)
Parameters
organizationId
stringOrganization ID
cameraRole
CameraRoleCamera Role
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
DeleteOrganizationCameraRoleAsync(string, string, CancellationToken)
Delete an existing role for this organization.
[Delete("/organizations/{organizationId}/camera/roles/{roleId}")]
Task DeleteOrganizationCameraRoleAsync(string organizationId, string roleId, CancellationToken cancellationToken = default)
Parameters
organizationId
stringThe organization id
roleId
stringThe role id
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetOrganizationCameraRoleAsync(string, string, CancellationToken)
Retrieve a single role.
[Get("/organizations/{organizationId}/camera/roles/{roleId}")]
Task<CameraRole> GetOrganizationCameraRoleAsync(string organizationId, string roleId, CancellationToken cancellationToken = default)
Parameters
organizationId
stringOrganization ID
roleId
stringRole ID
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
GetOrganizationCameraRolesAsync(string, CancellationToken)
List all the roles in this organization
[Get("/organizations/{organizationId}/camera/roles")]
Task<List<CameraRole>> GetOrganizationCameraRolesAsync(string organizationId, CancellationToken cancellationToken = default)
Parameters
organizationId
stringOrganization ID
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call
UpdateOrganizationCameraRoleAsync(string, string, CameraRole, CancellationToken)
Update an existing role in this organization.
[Put("/organizations/{organizationId}/camera/roles/{roleId}")]
Task<CameraRole> UpdateOrganizationCameraRoleAsync(string organizationId, string roleId, CameraRole cameraRole, CancellationToken cancellationToken = default)
Parameters
organizationId
stringOrganization ID
roleId
stringcameraRole
CameraRoleCamera Role
cancellationToken
CancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call