GET
/
cloud
/
v1
/
file_shares
/
{project_id}
/
{region_id}
/
{file_share_id}
/
access_rule
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
access_rule_list = client.cloud.file_shares.access_rules.list(
    file_share_id="bd8c47ee-e565-4e26-8840-b537e6827b08",
    project_id=1,
    region_id=1,
)
print(access_rule_list.count)
{
  "count": 1,
  "results": [
    {
      "access_level": "ro",
      "access_to": "192.168.1.1",
      "id": "4f09d7dd-f1f8-4352-b015-741b2192db47",
      "state": "active"
    }
  ]
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

project_id
integer
required

Project ID

Examples:

1

region_id
integer
required

Region ID

Examples:

1

file_share_id
string
required

File Share ID

Examples:

"bd8c47ee-e565-4e26-8840-b537e6827b08"

Response

200 - application/json

OK

The response is of type object.