Update the control plane access control list

Updates a specific cluster's control plane access control list.

Permissions and scopes

To call this operation, you need permissions, based on the model you're using:

  • Identity and access permissions. Your user needs a role with these permissions. Learn more.

    • Roles: lkecluster_admin
  • OAuth scopes. Your user needs these scopes assigned. Learn more.

    • Scopes: lke:read_write

CLI

linode-cli lke cluster-acl-update 12345 \ --acl.enabled true \ --acl.addresses.ipv4 "203.0.113.1" \ --acl.addresses.ipv6 "2001:db8:1234:abcd::/64"

Learn more

Path Params
string
enum
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

Allowed:
integer
required

ID of the Kubernetes cluster to look up.

Body Params
acl
object

Defines settings related to the IP-based ACL of the LKE cluster. The object requires the enabled and addresses keys. It also supports the optional key revision-id. The default policy is set to ALLOW, so that access controls are disabled. An empty object value ({}) sets default elements.

Responses

revision-id provided will be reflected on GET response when (and only after) the ACL stanza is verified as enforced.

Response body
object
acl
object

Defines settings related to the IP-based ACL of the LKE cluster. The object requires the enabled and addresses keys. It also supports the optional key revision-id. The default policy is set to ALLOW, so that access controls are disabled. An empty object value ({}) sets default elements.

addresses
object

Supports keys ipv4 and ipv6. Defaults to {}.

boolean

Defines a default policy. A value of true results in a default policy of DENY. A value of false results in a default policy of ALLOW, such as for disabled access controls. It defaults to true. Creating a cluster with ACL, or upgrading a cluster to use ACL for LKE, is an irreversible change. Once upgraded, you can only toggle access controls with this field.

string

Enables clients to track events related to ACL update requests and enforcements. Optional field. If omitted, defaults to a randomly generated string.

Cluster does not support Control Plane ACL.

Language
Credentials