Access management in Network Load Balancer
In this section, you will learn:
- Which resources you can assign a role for.
- Which roles exist in the service.
- Which roles are required for particular actions.
About access management
In Yandex Cloud, all transactions are checked in Yandex Identity and Access Management. If a subject does not have the required permission, the service returns an error.
To grant permission for a resource, assign roles for this resource to the subject that will perform operations. Roles can be assigned to a Yandex account, a service account, federated users, a user group, or a system group. For more information, see How access management works in Yandex Cloud.
Roles for a resource can be assigned by users who have at least one of the following roles for that resource:
admin
resource-manager.admin
organization-manager.admin
resource-manager.clouds.owner
organization-manager.organizations.owner
Which resources you can assign a role for
As with other services, you can assign roles for clouds, folder and service accounts. The roles assigned for clouds and folders also apply to nested resources.
Which roles exist in the service
The chart below shows which roles are available in the service and how they inherit each other's permissions. For example, the editor
role includes all the permissions of viewer
. You can find the description of each role under the chart.
Service roles
load-balancer.auditor
The load-balancer.auditor
role enables viewing the list of target groups and network load balancers, as well as viewing the info on them and on the Network Load Balancer quotas.
Users with this role can:
- View the list of target groups and the info on them.
- View the list of network load balancers and the info on them.
- View the list of operations with the Network Load Balancer resources.
- View information on the relevant cloud and folder.
- View info on Network Load Balancer quotas.
load-balancer.viewer
The load-balancer.viewer
role enables viewing the list of target groups and network load balancers, as well as viewing the info on them, the list of operations on them, the info on the relevant cloud and folder, and the Network Load Balancer quotas.
Users with this role can:
- View the list of target groups and the info on them.
- View the list of network load balancers and the info on them.
- View the list of operations with the Network Load Balancer resources.
- View information on the relevant cloud and folder.
- View info on Network Load Balancer quotas.
This role includes the load-balancer.auditor
permissions.
load-balancer.privateAdmin
The load-balancer.privateAdmin
role enables managing internal network load balancers and target groups, as well as viewing info on them and on the cloud networks, subnets, route tables, gateways, security groups, and IP addresses.
Users with this role can:
- View the list of network load balancers and the info on them, as well as create internal network load balances (including those with UDP listeners), modify, delete, start, and stop them.
- View the list of target groups and the info on them, as well as create, modify, delete, and use target groups.
- View the list of cloud networks and the info on them.
- View the list of subnets and info on them, as well as use them.
- View the list of cloud resource addresses and the info on them.
- View the list of route tables and the info on them.
- View the list of security groups and the info on them.
- View information on NAT gateways.
- View the info on the used IP addresses in subnets, as well as create internal addresses.
- View the info on operations with the Virtual Private Cloud and Compute Cloud resources.
- View the list of operations with the Network Load Balancer resources.
- View information on the relevant cloud and folder.
- View info on Network Load Balancer and Virtual Private Cloud quotas.
This role includes the load-balancer.viewer
and vpc.viewer
permissions.
load-balancer.admin
The load-balancer.admin
role enables managing internal and external network load balancers and target groups, as well as viewing info on them and on the cloud networks, subnets, route tables, gateways, security groups, and IP addresses.
Users with this role can:
- View the list of network load balancers and info on them.
- Create internal and external network load balancers and those with UDP listeners, as well as modify, delete, start, and stop load balancers.
- View the list of target groups and the info on them, as well as create, modify, delete, and use target groups.
- View the list of cloud networks and info on them, as well as set up external access to them.
- View the list of subnets and info on them, as well as use them.
- View the list of cloud resource addresses and the info on them.
- View the list of route tables and the info on them.
- View the list of security groups and the info on them.
- View information on NAT gateways.
- View the info on the used IP addresses, create private and public addresses, and use them.
- View the info on operations with the Virtual Private Cloud and Compute Cloud resources.
- View the list of operations with the Network Load Balancer resources.
- View information on the relevant cloud and folder.
- View info on Network Load Balancer and Virtual Private Cloud quotas.
This role includes the load-balancer.privateAdmin
permissions.
Primitive roles
auditor
Grants permission to view service configuration and metadata without access to data.
viewer
Enables you to view information about resources.
editor
Allows managing (creating, editing, and deleting) resources.
admin
Allows you to manage your resources and access to them.
For more information about primitive roles, see the Yandex Cloud role reference.
What roles do I need
The table below lists the roles needed to perform a particular action. You can always assign a role granting more permissions than the role specified. For example, you can assign the editor
role instead of viewer
.
Any operations with a network load balancer that has a public IP address require the load-balancer.admin
role. In networks where target groups are located, you can have the vpc.publicAdmin
role instead. Operations on the internal network load balancer require the load-balancer.privateAdmin
role and operations on its target groups, the load-balancer.privateAdmin
or compute.admin
role.
Operations on target groups located in subnets, where the specified administrative roles are missing, require the vpc.user
role for these subnets.
Action | Methods | Required roles |
---|---|---|
View data | ||
View information about any resource | get , list , listOperations |
viewer for this resource |
Manage network load balancers | ||
Create and update load balancers in folders | create |
load-balancer.privateAdmin / load-balancer.admin or editor for the folder and, if the load balancer is public, networks where target groups are located |
Delete load balancers | update , delete |
load-balancer.privateAdmin / load-balancer.admin or editor for the load balancer |
Attach target groups | attachTargetGroup |
load-balancer.privateAdmin / load-balancer.admin or editor for the folder and, if the load balancer is public, networks where target groups are located |
Detach target groups | detachTargetGroup |
load-balancer.privateAdmin / load-balancer.admin or editor for the load balancer |
Get states of target groups | getTargetStates |
load-balancer.viewer or viewer for the load balancer and the specified target groups |
Add and remove listeners | addListener , removeListener |
load-balancer.privateAdmin / load-balancer.admin or editor for the load balancer |
Stop and start a load balancer | stop , start |
load-balancer.privateAdmin / load-balancer.admin or editor for the load balancer |
Manage target groups | ||
Create and update target groups in folders | create |
load-balancer.privateAdmin / load-balancer.admin or editor for the folder and subnets where target groups are located |
Delete target groups | update , delete |
load-balancer.privateAdmin / load-balancer.admin or editor for the target group and load balancer |
Add resources in a target group | addTargets |
load-balancer.privateAdmin / load-balancer.admin or editor for the target group, load balancer, and subnets where target groups are located |
Remove resources in a target group | removeTargets |
load-balancer.privateAdmin / load-balancer.admin or editor for the target group |
Manage resource access | ||
Grant a role, revoke a role, and view roles granted for the resource | setAccessBindings , updateAccessBindings , listAccessBindings |
admin for the resource |