Struct zoom_api::rooms_location::RoomsLocation [−][src]
pub struct RoomsLocation { /* fields omitted */ }
Implementations
pub async fn list_zr_locations(
&self,
parent_location_id: &str,
type_: &str,
page_size: i64,
next_page_token: &str
) -> Result<Vec<AddAzrLocationResponse>>
pub async fn list_zr_locations(
&self,
parent_location_id: &str,
type_: &str,
page_size: i64,
next_page_token: &str
) -> Result<Vec<AddAzrLocationResponse>>
List Zoom Room locations.
This function performs a GET
to the /rooms/locations
endpoint.
A Zoom account owner or a Zoom Room administrator can establish a location hierarchy to help manage Zoom Rooms that are spread among a variety of locations. Use this API to list the different location types used for Zoom Rooms in an account.
Prerequisites:
- Account owner or admin permissions.
- Zoom Rooms Version 4.0 or higher
Scopes:room:read:admin
Rate Limit Label: Medium
Parameters:
parent_location_id: &str
– A unique identifier of the parent location. For instance, if a Zoom Room is located in Floor 1 of Building A, the location of Building A will be the parent location of Floor 1. Use this parameter to filter the response by a specific location hierarchy level.type_: &str
– Use this field to filter the response by the type of location. The value can be one of the following:country
,states
,city
,campus
,building
,floor
. .page_size: i64
– The number of records returned within a single API call.next_page_token: &str
– The next page token is used to paginate through large result sets. A next page token will be returned whenever the set of available results exceeds the current page size. The expiration period for this token is 15 minutes.
pub async fn list_all_zr_locations(
&self,
parent_location_id: &str,
type_: &str
) -> Result<Vec<AddAzrLocationResponse>>
pub async fn list_all_zr_locations(
&self,
parent_location_id: &str,
type_: &str
) -> Result<Vec<AddAzrLocationResponse>>
List Zoom Room locations.
This function performs a GET
to the /rooms/locations
endpoint.
As opposed to list_zr_locations
, this function returns all the pages of the request at once.
A Zoom account owner or a Zoom Room administrator can establish a location hierarchy to help manage Zoom Rooms that are spread among a variety of locations. Use this API to list the different location types used for Zoom Rooms in an account.
Prerequisites:
- Account owner or admin permissions.
- Zoom Rooms Version 4.0 or higher
Scopes:room:read:admin
Rate Limit Label: Medium
pub async fn add_azr_location(
&self,
body: &AddAzrLocationRequest
) -> Result<AddAzrLocationResponse>
pub async fn add_azr_location(
&self,
body: &AddAzrLocationRequest
) -> Result<AddAzrLocationResponse>
Add a location.
This function performs a POST
to the /rooms/locations
endpoint.
Add a location to the location hierarchial structure(s) of Zoom Rooms in an account.
Prerequisites:
- Account owner or admin permissions.
- Zoom Rooms Version 4.0 or higher
Scopes:room:write:admin
Rate Limit Label: Light
pub async fn get_zr_location_profile(
&self,
location_id: &str
) -> Result<GetZrLocationProfileResponse>
pub async fn get_zr_location_profile(
&self,
location_id: &str
) -> Result<GetZrLocationProfileResponse>
Get Zoom Room location profile.
This function performs a GET
to the /rooms/locations/{locationId}
endpoint.
Each location type of the Zoom Rooms location hierarchy has a profile page that includes information such as name of the location, address, support email, etc. Use this API to retrieve information about a specific Zoom Rooms location type such as information about the city where the Zoom Rooms is located.
Prerequisite:
- Account owner or admin permission
- Zoom Rooms version 4.0 or higher
Scopes:room:read:admin
Rate Limit Label: Medium
Parameters:
location_id: &str
– Unique identifier of the location type. This can be retrieved using the List Zoom Room Location API (Id property in the response).
pub async fn update_zr_location_profile(
&self,
location_id: &str,
body: &GetZrLocationProfileResponse
) -> Result<()>
pub async fn update_zr_location_profile(
&self,
location_id: &str,
body: &GetZrLocationProfileResponse
) -> Result<()>
Update Zoom Room location profile.
This function performs a PATCH
to the /rooms/locations/{locationId}
endpoint.
Each location type of the Zoom Rooms location hierarchy has a profile page that includes information such as name of the location, address, support email, etc. Use this API to update information about a specific Zoom Rooms location type such as information about the city where the Zoom Rooms is located.
Prerequisite:
- Account owner or admin permission
- Zoom Rooms version 4.0 or higher
Scopes:room:write:admin
Rate Limit Label: Medium
Parameters:
location_id: &str
– Unique Identifier of the location. This can be retrieved from the List Zoom Room Locations API.
Get location settings.
This function performs a GET
to the /rooms/locations/{locationId}/settings
endpoint.
Get information on meeting or alert settings applied to Zoom Rooms located in a specific location. By default, only Meeting Settings are returned. To view only Alert Settings, specify alert
as the value of the setting_type
query parameter.
Prerequisites:
- Zoom Room licenses
- Owner or Admin privileges on the Zoom Account.
Scopes:room:read:admin
Rate Limit Label:Medium
Parameters:
setting_type: &str
– The type of setting that you would like to retrieve.
alert
: Alert Settings applied on the Zoom Rooms Account.
meeting
: Meeting settings of the Zoom Rooms Account.
signage
: Digital signage settings of the Zoom Rooms Account.location_id: &str
– Unique identifier of the location type. This can be retrieved using the List Zoom Room Location API (Id property in the response).
Update location settings.
This function performs a PATCH
to the /rooms/locations/{locationId}/settings
endpoint.
Update information on either meeting or alert settings applied to Zoom Rooms located in a specific location. To update Alert Settings, specify alert
as the value of the setting_type
query parameter. Similarly, to update Meeting Settings, specify meeting
as the value of the setting_type
query parameter.
Prerequisites:
- Zoom Room licenses
- Owner or Admin privileges on the Zoom Account.
Scopes:room:write:admin
Rate Limit Label:Medium
Parameters:
setting_type: &str
– The type of setting that you would like to update.
alert
: Alert Settings applied on the Zoom Rooms Account.
meeting
: Meeting settings of the Zoom Rooms Account.
signage
: Digital signage settings.location_id: &str
– Unique identifier of the location type. This can be retrieved using the List Zoom Room Location API (Id property in the response).
Get Zoom Room location structure.
This function performs a GET
to the /rooms/locations/structure
endpoint.
Get the location hierarchial structure(s) applied on the Zoom Rooms in an account.
Prerequisites:
- Zoom Rooms version 4.0 or higher
- Account owner or admin permissions
Scopes:room:read:admin
Rate Limit Label:Light
pub async fn update_zoom_structure(
&self,
body: &GetZrLocationStructureResponse
) -> Result<()>
pub async fn update_zoom_structure(
&self,
body: &GetZrLocationStructureResponse
) -> Result<()>
Update Zoom Rooms location structure.
This function performs a PATCH
to the /rooms/locations/structure
endpoint.
Update the location hierarchial structure(s) applied on the Zoom Rooms in an account.
Prerequisites:
- Zoom Rooms version 4.0 or higher
- Account owner or admin permissions
Scopes:room:write:admin
Rate Limit Label:Medium
pub async fn change_parent_location(
&self,
location_id: &str,
body: &ChangeParentLocationRequest
) -> Result<()>
pub async fn change_parent_location(
&self,
location_id: &str,
body: &ChangeParentLocationRequest
) -> Result<()>
Change the assigned parent location.
This function performs a PUT
to the /rooms/locations/{locationId}/location
endpoint.
An account owner of a Zoom account can establish a Zoom Rooms Location Hierarchy to better organize Zoom Rooms spread accross various location. The location can be structured in a hierarchy with Country being the top-level location, followed by city, campus, building, and floor. The location in the lower level in the hierarchy is considered as a child of the location that is a level above in the hierarchy. Use this API to change the parent location of a child location.
For instance, if the location hierarchy is structured in a way where there are two campuses (Campus 1, and Campus 2) in a City and Campus 1 consists of a building named Building 1 with a floor where Zoom Rooms are located, and you would like to rearrange the structure so that Building 1 along with its child locations (floor and Zoom Rooms) are relocated directly under Campus 2 instead of Campus 1, you must provide the location ID of Building 1 in the path parameter of this request and the location ID of Campus 2 as the value of parent_location_id
in the request body.
Prerequisite:
- Account owner or admin permission
- Zoom Rooms version 4.0 or higher
Scopes:room:write:admin
Rate Limit Label:Medium
Parameters:
location_id: &str
– User’s first name.