Manage Access Control List for SQLServer Flex
Diese Seite ist noch nicht in deiner Sprache verfügbar. Englische Seite aufrufen
Prerequisites
Section titled “Prerequisites”- You have created a SQLServer Flex instance.
Check Create and manage instances for SQLServer Flex
Introduction
Section titled “Introduction”Access Control Lists (ACLs) in SQLServer Flex provide a simple and effective way to control network access to your database instances. Only the IP addresses or IP ranges explicitly defined by you are permitted to establish a connection. All other addresses are denied by default.
This mechanism adds an essential layer of security by ensuring that only trusted networks and systems can reach your SQLServer Flex instance. ACLs can be configured and managed through the STACKIT Portal, the CLI, Cloud Foundry, or Terraform, giving you full flexibility to integrate access control into your workflows.
Add an ACL entry
Section titled “Add an ACL entry”To add a new ACL entry:
- Open your project in the STACKIT Portal
- Navigate to Databases > SQLServer Flex
- Select your SQLServer Flex instance and go to the Overview page
- Click on Edit in the General information Tab
- Click on Add IP range
- Enter the desired ACL IP address, including the subnet mask (e.g., 192.168.0.0/24)
- Click on Save
STACKIT API
Find the latest and most comprehensive documentation.
To add a new ACL entry:
-
Open your project in the STACKIT Portal
-
Copy the project id
-
Navigate to Databases > SQLServer Flex
-
Select your SQLServer Flex instance and go to the Overview page
-
Copy the instance id
-
The region is visible at the flavor description (-eu01)
-
Sent request to STACKIT API
Terminal window curl --request \PATCH 'https://mssql-flex-service.api.stackit.cloud/v2/projects/[projectId]/regions/[region of your instance]/instances/[instance id]' \--header 'Authorization: Bearer [Insert your short-lived or long-lived token here]'--data '{"acl": {"items": ["[add-your-ip]/32"]}}'
STACKIT CLI
Find the latest and most comprehensive documentation.
To add a new ACL entry:
-
Login to STACKIT CLI
Terminal window > stackit auth login -
Open your project in the STACKIT Portal
-
Copy the project id from the Overview
-
Set the project id for the STACKIT CLI
Terminal window > stackit config set --project-id [project id] -
Navigate to Databases > SQLServer Flex
-
Select your SQLServer Flex instance and go to the Overview page
-
Copy the instance id from the SQLServer Flex instance Overview
-
Update ACL entry
Terminal window > stackit sqlserverflex instance update [instance id] --acl "[add-your-ip]/32"Are you sure you want to update instance "[instance name]"? [y/N] yUpdating instance ✓Updated instance "[instance name]"
Delete an ACL entry
Section titled “Delete an ACL entry”To delete an ACL entry:
- Open your project in the STACKIT Portal
- Navigate to Databases > SQLServer Flex
- Select your SQLServer Flex instance and go to the Overview page
- Click on Edit in the General information Tab
- Click on the X on the side of the ACL entry you want to delete
- Click on Save