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
organizationIdstringOrganization ID
cameraRoleCameraRoleCamera Role
cancellationTokenCancellationToken
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
organizationIdstringThe organization id
roleIdstringThe role id
cancellationTokenCancellationToken
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
organizationIdstringOrganization ID
roleIdstringRole ID
cancellationTokenCancellationToken
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
organizationIdstringOrganization ID
cancellationTokenCancellationToken
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
organizationIdstringOrganization ID
roleIdstringcameraRoleCameraRoleCamera Role
cancellationTokenCancellationToken
Returns
Exceptions
- ApiException
Thrown when fails to make API call