Overview
IAM
- Account
- Users
- API Tokens
CDN
- IP addresses list
- CDN service
- Origins
- CDN resources
- CDN activity logs
- Log forwarding
- Log viewer
- Logs uploader
- Tools
- Rules
- Rule templates
- Purge history
- SSL certificates
- CA certificates
- CDN Statistics
- Advanced analytics
- Origin shielding
- Let's Encrypt certificates
Managed DNS
- Analyze
- Locations
- Lookup
- Metrics
- Pickers
- DNS Clients
- Zones
- DNSSEC
- RRsets
Cloud
- Bare Metal
- Container as a Service
- Cost Reports
- DDOS Protection
- File Shares
- GETList file shares
- POSTCreate file share
- POSTCheck quota for file share creation
- GETGet file share
- DELDelete file share
- PATCHRename file share
- GETGet file share access rules
- POSTCreate file share access rule
- DELDelete file share access rule
- POSTResize file share
- GETList file share tags
- PUTReplace file share tags
- POSTUpdate file share tags
- GETGet file share tag by key
- DELDelete file share tag by key
- POSTPreview file share price
- GET
- Firewalls
- Floating IPs
- Function as a Service
- GPU Cloud
- IP Ranges
- Images
- Inference Instances
- Instances
- Load Balancers
- Logging
- Managed Kubernetes
- Managed PostgreSQL
- Networks
- Placement Groups
- Projects
- Quotas
- Regions
- Registry
- Reservations
- Reserved IPs
- Routers
- SSH Keys
- Secrets
- Service Endpoints
- Snapshot Schedules
- Snapshots
- Tasks
- User Actions
- User Role Assignments
- Volumes
Security
- Event Logs
- BGP announces
- Security Templates
- Profiles
FastEdge
- Apps
- Binaries
- FastEdge Clients
- FastEdge Secrets
- Stats
- FastEdge Templates
WAAP
- WAAP Service
- Domains
- Policies
- Analytics
- Custom Page Sets
- Custom Rules
- Firewall Rules
- Advanced Rules
- Tags
- Network Organizations
- API Discovery
- IP Spotlight
- Security Insights
Web Security
- Billing Statistics
- Resources
Video Streaming
- Streams
- Overlays
- Broadcasts
- Restreams
- Videos
- Subtitles
- Directories
- Playlists
- QualitySets
- Players
- AI
- Streaming Statistics
Object Storage
- Notifications
- Key
- Location
- Storage
- Storage Statistics
File Shares
Get file share access rules
GET
/
cloud
/
v1
/
file_shares
/
{project_id}
/
{region_id}
/
{file_share_id}
/
access_rule
Copy
Ask AI
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)
Copy
Ask AI
{
"count": 1,
"results": [
{
"access_level": "ro",
"access_to": "192.168.1.1",
"id": "4f09d7dd-f1f8-4352-b015-741b2192db47",
"state": "active"
}
]
}
Authorizations
API key for authentication.
Path Parameters
Project ID
Examples:
1
Region ID
Examples:
1
File Share ID
Examples:
"bd8c47ee-e565-4e26-8840-b537e6827b08"
Response
200 - application/json
OK
The response is of type object
.
Was this page helpful?
Copy
Ask AI
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)
Copy
Ask AI
{
"count": 1,
"results": [
{
"access_level": "ro",
"access_to": "192.168.1.1",
"id": "4f09d7dd-f1f8-4352-b015-741b2192db47",
"state": "active"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.