### DNS Record Setup Example Source: https://docs.arvancloud.ir/fa/cdn/domain/cname-setup Illustrates how to configure DNS records for CNAME setup, including both NS records for initial setup and the final CNAME record. ```APIDOC ## DNS Record Setup Examples ### Initial NS Records (Example) This shows the NS records that might be present before converting to CNAME setup. ```dns $ORIGIN example.com. example.com. 86400 IN NS a.ns.arvancdn.ir. example.com. 86400 IN NS z.ns.arvancdn.ir. ``` ### CNAME Record for Subdomain (Example) This demonstrates how to set up a CNAME record for a subdomain after converting to CNAME setup. ```dns blog.example.com. 0 IN CNAME 802d64fa68594323a174bdea336ae4e5.cname.arvancdn.ir. ``` ### Description These examples provide a clear illustration of how DNS records should be configured when using ArvanCloud's CDN service with CNAME setup. The first example shows typical NS records, while the second shows the final CNAME record pointing to the ArvanCloud CDN service. This helps users understand the transition and the final state of their DNS configuration. ``` -------------------------------- ### Go: Run s3_list_multipart_upload.go Example Source: https://docs.arvancloud.ir/fa/developer-tools/sdk/object-storage/list-multipart-upload This example shows how to execute a Go program named 's3_list_multipart_upload.go' from the command line. It requires a 'BUCKET_NAME' argument to be provided. ```bash go run s3_list_multipart_upload.go BUCKET_NAME ``` -------------------------------- ### Get Bucket Policy Status (PHP) Source: https://docs.arvancloud.ir/fa/developer-tools/sdk/object-storage/get-bucket-policy-status Retrieve the status of a bucket policy using the AWS SDK for PHP. This example shows how to interact with the S3 client to get the policy status. ```APIDOC ## GET /bucket-policy-status ### Description Retrieves the status of a bucket policy using the AWS SDK for PHP. ### Method GET ### Endpoint Not explicitly defined, as this is an SDK operation. ### Parameters #### Path Parameters None #### Query Parameters None #### Request Body None ### Request Example ```php '; try { $result = $client->getBucketPolicyStatus([ 'Bucket' => $bucket, // REQUIRED ]); var_dump($result); } catch (AwsException $e) { // Display error message echo $e->getMessage(); echo "\n"; } ?> ``` ### Response #### Success Response (200) - **Status** (array) - Contains information about the bucket policy status. #### Response Example ```json { "IsPublic": true/false } ``` ``` -------------------------------- ### دسترسی به Options در اسکریپت برنامه Source: https://docs.arvancloud.ir/fa/cdn/marketplace/develop این نمونه کد نشان می‌دهد که چگونه می‌توان به پارامترهای تعریف شده در بخش 'options' فایل install.json از داخل اسکریپت برنامه دسترسی پیدا کرد. پارامترها از طریق آبجکت INSTALL_OPTIONS قابل دسترس هستند. ```javascript INSTAL_OPTIONS.token ``` -------------------------------- ### Install Packages with .custom_env Script Source: https://docs.arvancloud.ir/fa/developer-tools/cloud-shell/customize The .custom_env script runs automatically when your Cloud Shell starts and executes with root privileges. This allows you to install any Debian packages needed for your sessions. The script runs once at boot, making installed packages available shortly after. ```shell #!/bin/sh apt-get update apt-get -y install erlang ``` -------------------------------- ### تعریف Options در install.json Source: https://docs.arvancloud.ir/fa/cdn/marketplace/develop این نمونه نحوه تعریف پارامترهای ورودی کاربر (options) را برای اپلیکیشن‌های بازارچه آروان نشان می‌دهد. از استاندارد JSON-Schema برای تعریف و اعتبارسنجی مقادیر استفاده می‌شود. ```json { "options": { "properties": { "