### GET /hosting/web/moduleList Return Example Source: https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/api-webhosting.md Example response from the GET /hosting/web/moduleList endpoint, returning a list of module IDs available for installation. ```json [ 195, 184, 38, 176 ] ``` -------------------------------- ### Example output of the Nginx setup Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/backing-up-volumes-stash.md Example output from applying the manifest, checking the pod, waiting for the external IP, and curling the service. Shows the created resources, the pod running, the LoadBalancer getting an external IP, and HTTP 200 responses. ```console $ kubectl apply -f nginx-example.yml namespace/nginx-example created persistentvolumeclaim/nginx-logs created deployment.apps/nginx-deployment created service/nginx-service created $ kubectl get pod -n nginx-example NAME READY STATUS RESTARTS AGE nginx-deployment-766444c4d9-cxd2p 1/1 Running 0 32s $ kubectl -n nginx-example get svc nginx-service -w NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE nginx-service LoadBalancer 10.3.39.164 80:31734/TCP 49s nginx-service LoadBalancer 10.3.39.164 51.210.210.247 80:31734/TCP 3m $ curl -I 51.210.210.247 HTTP/1.1 200 OK Server: nginx/1.7.9 Date: Tue, 21 Dec 2021 14:16:20 GMT Content-Type: text/html Content-Length: 612 Last-Modified: Tue, 23 Dec 2014 16:25:09 GMT Connection: keep-alive ETag: "54999765-264" Accept-Ranges: bytes $ curl -I 51.210.210.247 HTTP/1.1 200 OK Server: nginx/1.7.9 Date: Tue, 21 Dec 2021 14:16:31 GMT Content-Type: text/html Content-Length: 612 Last-Modified: Tue, 23 Dec 2014 16:25:09 GMT Connection: keep-alive ETag: "54999765-264" Accept-Ranges: bytes ``` -------------------------------- ### Install SDK dependencies with example path Source: https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/vmware-installation-api.md Example command that installs the SDK dependencies using the absolute path to the cloned SDK directory. ```bash pip install --upgrade --force-reinstall -r requirements.txt --extra-index-url file:///root/vsphere-automation-sdk-python/lib ``` -------------------------------- ### Example Backup Agent installation command Source: https://docs.ovhcloud.com/en/guides/storage-and-backup/backup-agent/linux-cli-assistant.md Example installation command with actual URLs from the OVHcloud Control Panel. Replace the URLs with your own. ```bash curl -sSL "https://ovh-ba-downloads.s3.xxx.xxx/tmp/ovh-ba-install.sh" | sudo bash -s -- --setup "https://s3.xxx.xxx.cloud.ovh.net/xxxx/LinuxAgentPackages.vspc_tenant_xxxx.sh?X-Amz-Algorithm=xxx&X-Amz-Credential=xxx&X-Amz-Date=2xxx&X-Amz-Expires=xxx&X-Amz-SignedHeaders=xxx&X-Amz-Signature=xxx" --script-url "https://ovh-ba-downloads.s3.xxx.xxx/tmp/ovh-ba-install.sh" ``` -------------------------------- ### Example API reply for OS installation Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/api-os-installation.md Example JSON response from the OS installation API call, showing the task ID, status, start date, and function. The task ID can be used to follow the installation status. ```json { "taskId": 123456789, "status": "init", "startDate": "2024-01-26T17:57:10+01:00", "doneDate": null, "function": "reinstallServer", "comment": "Start bare metal OS installation" } ``` -------------------------------- ### Install and start Tailscale on Prague instance Source: https://docs.ovhcloud.com/en/guides/public-cloud/compute/local-zones-vpn-tailscale-integration.md Install Tailscale on the Prague instance and start it with the provided auth key. The command downloads and runs the official install script, then brings up the Tailscale interface using the $TAILSCALE-KEY environment variable. ```bash curl -fsSL https://tailscale.com/install.sh | sh && sudo tailscale up --auth-key=$TAILSCALE-KEY ``` -------------------------------- ### Start QEMU guest agent service (Debian) Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/virtual-private-servers/using-automated-backups-on-a-vps.md Starts the qemu-guest-agent service to ensure it is running after installation. ```bash sudo service qemu-guest-agent start ``` -------------------------------- ### GET /hosting/web/moduleList/{id} Return Example Source: https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/api-webhosting.md Example response from the GET /hosting/web/moduleList/{id} endpoint, showing detailed information about a specific module including version, language requirements, and size. ```json { "keywords": [ "gallery" ], "adminNameType": "string", "author": "OVH", "branch": "old", "id": 195, "size": { "value": 0, "unit": "B" }, "name": "myname", "upgradeFrom": [], "language": [ "en", "fr", "de", "es", "pl" ], "version": "1.4.2.2", "active": false, "languageRequirement": { "value": "php", "unit": "supported versions: ''\nnon supported versions: '8+'" }, "latest": true } ``` -------------------------------- ### Example output of kubeseal installation and version check Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/encrypt-secret-sealed-secrets-kubeseal.md Example output from installing kubeseal via Homebrew and checking its version. ```console $ brew install kubeseal Running `brew update --preinstall`... ==> Auto-updated Homebrew! ... ==> Pouring kubeseal--0.17.3.arm64_big_sur.bottle.tar.gz 🍺 /Users/avache/homebrew/Cellar/kubeseal/0.17.3: 5 files, 35.3MB ==> Running `brew cleanup kubeseal`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). $ kubeseal --version kubeseal version: v0.17.3 ``` -------------------------------- ### Install dependencies and run the app locally Source: https://docs.ovhcloud.com/en/guides/public-cloud/data-platform/tutorials-app-development-react-shadcn.md Installs dependencies and starts the development server. The dev server runs on http://localhost:3333. ```bash npm install npm run dev ``` -------------------------------- ### Install PostgreSQL and create database/user Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/virtual-private-servers/install-env-web-dev-on-vps.md Install PostgreSQL with the PHP extension and create a database and user as an example. ```bash sudo apt install -y postgresql postgresql-contrib php-pgsql ``` ```bash sudo -u postgres psql -c "CREATE DATABASE db_name;" sudo -u postgres psql -c "CREATE USER db_user WITH ENCRYPTED PASSWORD 'strong_password';" sudo -u postgres psql -c "GRANT ALL PRIVILEGES ON DATABASE db_name TO db_user;" ``` -------------------------------- ### Apply and get VirtualService example output Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/traffic-management-istio.md Example output from applying the VirtualService and retrieving its configuration, showing the created rule and the resulting VirtualService YAML. ```console $ kubectl apply -n istio-apps -f ./reviews-50-v2-50-v3.yaml virtualservice.networking.istio.io/reviews created $ kubectl -n istio-apps get virtualservice reviews -o yaml apiVersion: networking.istio.io/v1beta1 kind: VirtualService metadata: [...] spec: hosts: - reviews http: - route: - destination: host: reviews subset: v2 weight: 50 - destination: host: reviews subset: v3 weight: 50 ``` -------------------------------- ### Install Djehouty from source Source: https://docs.ovhcloud.com/en/guides/manage-and-operate/observability/logs-data-platform/djehouty.md Install Djehouty from source by cloning the OVH GitHub repository and running the setup script. The output shows the clone and installation process. ```bash $ git clone git@github.com:ovh/djehouty.git Cloning into 'djehouty'... remote: Counting objects: 58, done. remote: Compressing objects: 100% (53/53), done. remote: Total 58 (delta 26), reused 0 (delta 0) Receiving objects: 100% (58/58), 9.62 KiB | 0 bytes/s, done. Resolving deltas: 100% (26/26), done. Checking connectivity... done. $ cd djehouty $ python setup.py install [...] Using /usr/lib/python2.7/site-packages Finished processing dependencies for djehouty== ``` -------------------------------- ### GET /hosting/web/{serviceName}/database Return Example Source: https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/api-webhosting.md Example response from the GET /hosting/web/{serviceName}/database endpoint, listing the database names associated with the web hosting service. ```json [ "example.mysql.db", "example2.mysql.db" ] ``` -------------------------------- ### Example hostname for ISPmanager Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/virtual-private-servers/install-ispmanager.md Example of a valid hostname to enter when prompted by the installer. ```console ispmanager.mondomaine.ovh ``` -------------------------------- ### Clone the getting-started repository and open it Source: https://docs.ovhcloud.com/en/guides/public-cloud/data-platform/tutorials-app-development-build.md Clones the forepaas/getting-started repository and changes into the directory. ```bash git clone https://github.com/forepaas/getting-started.git cd getting-started/ ``` -------------------------------- ### Install Python requests library Source: https://docs.ovhcloud.com/en/guides/public-cloud/ai-machine-learning/ai-endpoints-catalog-api.md Install the requests library required for the Python examples in this guide. ```bash pip install requests ``` -------------------------------- ### Install OpenAI JavaScript SDK Source: https://docs.ovhcloud.com/en/guides/public-cloud/ai-machine-learning/ai-endpoints-batch-mode.md Install the official OpenAI SDK for Node.js, required for the JavaScript examples in this guide. ```sh npm install openai ``` -------------------------------- ### Create and enter project directory Source: https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/static-website-installation-cecil-api-call.md Creates a directory named 'myWebSite' and switches into it, preparing the environment for installing Cecil. ```bash mkdir myWebSite cd myWebSite ``` -------------------------------- ### Install OpenAI Python client Source: https://docs.ovhcloud.com/en/guides/public-cloud/ai-machine-learning/ai-endpoints-batch-mode.md Install the OpenAI Python client library, required for the Python examples in this guide. ```sh pip install openai ``` -------------------------------- ### Install Pydantic AI with pip Source: https://docs.ovhcloud.com/en/guides/public-cloud/ai-machine-learning/ai-endpoints-pydantic-ai-integration.md Installs the Pydantic AI package using pip. Run this in your terminal to get started. ```bash pip install pydantic-ai ``` -------------------------------- ### POST /hosting/web/{serviceName}/database Return Example Source: https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/api-webhosting.md Example response from the POST /hosting/web/{serviceName}/database endpoint, showing the database creation task details with timestamps and status. ```json { "doneDate": "2024-08-22T09:24:35.206Z", "function": "string", "id": 0, "lastUpdate": "2024-08-22T09:24:35.206Z", "objectId": "string", "objectType": "Abuse", "startDate": "2024-08-22T09:24:35.206Z", "status": "cancelled" } ``` -------------------------------- ### Output of kubectl get crd showing NodePools CRD Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/managing-nodes.md Example output from `kubectl get crd` listing installed CRDs. The `nodepools.kube.cloud.ovh.com` entry is highlighted in yellow. ```console $ kubectl get crd NAME CREATED AT ... ingresses.networking.internal.knative.dev 2023-01-03T07:25:05Z ipamblocks.crd.projectcalico.org 2022-09-22T07:00:52Z ipamconfigs.crd.projectcalico.org 2022-09-22T07:00:52Z ipamhandles.crd.projectcalico.org 2022-09-22T07:00:53Z ippools.crd.projectcalico.org 2022-09-22T07:00:53Z ipreservations.crd.projectcalico.org 2022-09-22T07:00:53Z kubecontrollersconfigurations.crd.projectcalico.org 2022-09-22T07:00:53Z metrics.autoscaling.internal.knative.dev 2023-01-03T07:25:05Z networkpolicies.crd.projectcalico.org 2022-09-22T07:00:53Z networksets.crd.projectcalico.org 2022-09-22T07:00:53Z nodefeaturerules.nfd.k8s-sigs.io 2023-04-25T07:59:58Z nodefeatures.nfd.k8s-sigs.io 2023-04-25T07:59:58Z nodepools.kube.cloud.ovh.com 2022-09-22T06:59:43Z podautoscalers.autoscaling.internal.knative.dev 2023-01-03T07:25:05Z podmonitors.monitoring.coreos.com 2023-04-26T09:19:12Z podvolumebackups.velero.io 2022-10-04T06:56:54Z podvolumerestores.velero.io 2022-10-04T06:56:54Z probes.monitoring.coreos.com 2023-04-26T09:19:12Z ... ``` -------------------------------- ### GET /dedicated/ceph/{serviceName} Example Source: https://docs.ovhcloud.com/en/guides/storage-and-backup/block-storage/cloud-disk-array/ceph-check-cluster-status.md Retrieves detailed information about a Ceph cluster, including status, region, and monitor IPs. The example shows a response with status 'INSTALLED' and state 'ACTIVE'. ```bash GET /dedicated/ceph/98d166d8-7c88-47b7-9cb6-63acd5a59c15 { updateDate: "2016-07-26T09:16:07" status: "INSTALLED" region: "SBG1" serviceName: "98d166d8-7c88-47b7-9cb6-63acd5a59c15" state: "ACTIVE" createDate: "2016-07-20T08:00:37" cephMons: [ "10.99.187.210" "10.99.191.210" "10.97.131.210" ] crushTunables: "OPTIMAL" label: "Ceph cluster" cephVersion: "9.2.1" } ``` -------------------------------- ### GET /domain/{serviceName} Response Example Source: https://docs.ovhcloud.com/en/guides/web-cloud/domains/api-domain-dns.md Response example for the GET /domain/{serviceName} API call. Shows the domain name details, including the nameServerType field which indicates the DNS setup type (hosted or external). The hostSupported field indicates whether hosts are supported as entities by the registry, which is relevant for glue records. ```js { "parentService": null, "domain": "test.com", "offer": "gold", "dnssecSupported": true, "owoSupported": true, "transferLockStatus": "locked", "whoisOwner": "123456", "hostSupported": true, "glueRecordIpv6Supported": true, "glueRecordMultiIpSupported": true, "lastUpdate": "2021-11-02T12:01:13+01:00", "nameServerType": "hosted" } ``` -------------------------------- ### Build output example Source: https://docs.ovhcloud.com/en/guides/hosted-private-cloud/opcp/how-to-create-centos-image.md Example output showing the generated qcow2 image and the dib-manifests directory. ```console my-centos8-image.qcow2 my-centos8-image.d: dib-manifests ``` -------------------------------- ### Install OpenVPN client Source: https://docs.ovhcloud.com/en/guides/public-cloud/network-services/stormshield-vrack.md Installs the OpenVPN client on the instance. ```bash sudo apt-get update sudo apt-get install -y openvpn ``` -------------------------------- ### Generic locustfile.py example Source: https://docs.ovhcloud.com/en/guides/public-cloud/ai-machine-learning/ai-deploy-load-test-app.md A basic Locust load test script that defines a user class with a task that sends GET requests to /hello and /world. This is the starting point for configuring Locust. ```python from locust import HttpUser, task class HelloWorldUser(HttpUser): @task def hello_world(self): self.client.get("/hello") self.client.get("/world") ``` -------------------------------- ### Helm install notes with example Ingress and Secret Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/install-nginx-ingress.md Notes output from the Helm install, including an example Ingress resource and a TLS Secret example. ```console NOTES: The ingress-nginx controller has been installed. It may take a few minutes for the LoadBalancer IP to be available. You can watch the status by running 'kubectl --namespace ingress-nginx get services -o wide -w ingress-nginx-controller' An example Ingress that makes use of the controller: apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: example namespace: foo spec: ingressClassName: nginx rules: - host: www.example.com http: paths: - pathType: Prefix backend: service: name: exampleService port: number: 80 path: / # This section is only required if TLS is to be enabled for the Ingress tls: - hosts: - www.example.com secretName: example-tls If TLS is enabled for the Ingress, a Secret containing the certificate and key must also be provided: apiVersion: v1 kind: Secret metadata: name: example-tls namespace: foo data: tls.crt: tls.key: type: kubernetes.io/tls ``` -------------------------------- ### Download Istio and set up istioctl Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/install-istio.md Download and extract the latest Istio release, move into the package directory, and add the istioctl client to the PATH. The package directory contains sample applications in samples/ and the istioctl binary in bin/. ```bash curl -L https://istio.io/downloadIstio | sh - ``` ```bash cd istio-1.11.2 ``` ```bash export PATH=$PWD/bin:$PATH ``` -------------------------------- ### Install Kyverno CLI from source Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/install-kyverno.md Install the Kyverno CLI from source by cloning the repository, building the CLI with `make cli`, and copying the binary to `/usr/local/bin/kyverno`. The console output shows the expected build process and the resulting binary copy. ```bash git clone https://github.com/kyverno/kyverno cd kyverno make cli cp ./cmd/cli/kubectl-kyverno/kyverno /usr/local/bin/kyverno ``` ```console $ git clone https://github.com/kyverno/kyverno Cloning into 'kyverno'... remote: Enumerating objects: 64593, done. remote: Counting objects: 100% (984/984), done. remote: Compressing objects: 100% (496/496), done. Receiving objects: 6% (3876/64593), 876.01 KiB | 1.60 MiB/s Receiving objects: 6% (4222/64593), 876.01 KiB | 1.60 MiB/s remote: Total 64593 (delta 531), reused 832 (delta 483), pack-reused 63609 Receiving objects: 100% (64593/64593), 55.81 MiB | 3.43 MiB/s, done. Resolving deltas: 100% (35868/35868), done. $ cd kyverno $ make cli GOOS=darwin go build -o /Users/avache/git/github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/kyverno -ldflags="-s -w -X github.com/kyverno/kyverno/pkg/version.BuildVersion=v1.5.0-rc1-223-gf0359f82 -X github.com/kyverno/kyverno/pkg/version.BuildHash=main/f0359f8272a181923db0704696803d44a43f69f8 -X github.com/kyverno/kyverno/pkg/version.BuildTime=2022-01-19_12:10:05" /Users/avache/git/github.com/kyverno/kyverno/cmd/cli/kubectl-kyverno/main.go go: downloading k8s.io/klog v1.0.0 go: downloading github.com/spf13/cobra v1.2.1 go: downloading sigs.k8s.io/controller-runtime v0.10.3 go: downloading k8s.io/apiextensions-apiserver v0.22.4 go: downloading k8s.io/apimachinery v0.22.4 go: downloading k8s.io/klog/v2 v2.10.0 go: downloading sigs.k8s.io/yaml v1.3.0 go: downloading github.com/fatih/color v1.12.0 go: downloading github.com/go-git/go-billy/v5 v5.0.0 go: downloading github.com/go-git/go-git/v5 v5.2.0 go: downloading github.com/go-logr/logr v0.4.0 go: downloading github.com/kataras/tablewriter v0.0.0-20180708051242-e063d29b7c23 go: downloading github.com/lensesio/tableprinter v0.0.0-20201125135848-89e81fc956e7 go: downloading k8s.io/api v0.22.4 go: downloading k8s.io/cli-runtime v0.22.4 go: downloading github.com/evanphx/json-patch v4.11.0+incompatible go: downloading k8s.io/client-go v0.22.4 go: downloading github.com/googleapis/gnostic v0.5.5 go: downloading github.com/kyverno/json-patch/v5 v5.5.1-0.20210915204938-7578f4ee9c77 go: downloading github.com/orcaman/concurrent-map v0.0.0-20190826125027-8c72a8bb44f6 go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b go: downloading k8s.io/kube-openapi v0.0.0-20211115234752-e816edb12b65 go: downloading github.com/distribution/distribution v2.7.1+incompatible ... go: downloading github.com/dimchansky/utfbom v1.1.1 $ cp ./cmd/cli/kubectl-kyverno/kyverno /usr/local/bin/kyverno ``` -------------------------------- ### Example output for 4 Solidigm drives Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/solidigm-d7-p5520-fw-update.md Example output from running the sofu utility on a server with 4 Solidigm drives to update. Shows device details and successful update status for each drive. ```bash PS C:\Users\admin\Desktop\P5520_FW_to_9CV10490_Win64> .\sofu_2.1_win64.exe - PHAX2165021L1P9BGN 1 - ModelNumber : INTEL SSDPF2KX019T1O DevicePath : \\\.\\PHYSICALDRIVE2 ProductFamily : Intel SSD DC P5520 Series Firmware : 9CV10207 SerialNumber : PHAX2165021L1P9BGN FirmwareUpdateAvailable : 9CV10490 Index : 2 Bootloader : Value not found DeviceStatus : Healthy Updating firmware... Status : Firmware updated successfully. Please reboot the system. ================================================= S U C C E S S ================================================= Status : Firmware updated successfully. Please reboot the system. - BTAX4443088A1P9BGN 1 - ModelNumber : INTEL SSDPF2KX019T1O DevicePath : \\\.\\PHYSICALDRIVE3 ProductFamily : Intel SSD DC P5520 Series Firmware : 9CV10207 SerialNumber : BTAX4443088A1P9BGN FirmwareUpdateAvailable : 9CV10490 Index : 3 Bootloader : Value not found DeviceStatus : Healthy Updating firmware... Status : Firmware updated successfully. Please reboot the system. ================================================= S U C C E S S ================================================= Status : Firmware updated successfully. Please reboot the system. - BTAX444308M31P9BGN 1 - ModelNumber : INTEL SSDPF2KX019T1O DevicePath : \\\.\\PHYSICALDRIVE4 ProductFamily : Intel SSD DC P5520 Series Firmware : 9CV10207 SerialNumber : BTAX444308M31P9BGN FirmwareUpdateAvailable : 9CV10490 Index : 4 Bootloader : Value not found DeviceStatus : Healthy Updating firmware... Status : Firmware updated successfully. Please reboot the system. ================================================= S U C C E S S ================================================= Status : Firmware updated successfully. Please reboot the system. - PHAX216501QX1P9BGN 1 - ModelNumber : INTEL SSDPF2KX019T1O DevicePath : \\\.\\PHYSICALDRIVE5 ProductFamily : Intel SSD DC P5520 Series Firmware : 9CV10207 SerialNumber : PHAX216501QX1P9BGN FirmwareUpdateAvailable : 9CV10490 Index : 5 Bootloader : Value not found DeviceStatus : Healthy Updating firmware... Status : Firmware updated successfully. Please reboot the system. ================================================= S U C C E S S ================================================= Status : Firmware updated successfully. Please reboot the system. ``` -------------------------------- ### GET /hosting/web response example Source: https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/api-webhosting.md Example response from the GET /hosting/web endpoint. It returns a list of serviceName values for your web hosting services. ```json [ "example.cluster01.hosting.ovh.net", "example2.cluster02.hosting.ovh.net" ] ``` -------------------------------- ### Start and verify QEMU agent on RedHat Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/virtual-private-servers/using-automated-backups-on-a-vps.md Starts the qemu-guest-agent service and checks its status on RedHat-based systems. ```bash sudo service qemu-guest-agent start sudo service qemu-guest-agent status ``` -------------------------------- ### Check Plakar installation Source: https://docs.ovhcloud.com/en/guides/storage-and-backup/backup-and-disaster-recovery-solutions/third-party-software/automated-plakar.md Verify that Plakar is installed on the VPS after following the official installation guide. ```bash plakar version ``` -------------------------------- ### Example 1: Mount command for RedHat-based distributions Source: https://docs.ovhcloud.com/en/guides/storage-and-backup/file-storage/ha-nas/nas-nfs.md Example mount command using a sample IP address and path. Mounts the partition to /mount/ha_nas. ```bash root@server:~$ sudo mount -t nfs 10.1.1.1:/zpool-123456/partition01 /mount/ha_nas ``` -------------------------------- ### Create index.html and verify file Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/backing-up-cluster-velero.md Writes 'hello world' to the nginx web root and lists the directory to confirm the file exists. ```bash kubectl -n nginx-example exec -it deploy/nginx-deployment -- sh -c 'echo hello world > /usr/share/nginx/html/index.html' kubectl -n nginx-example exec -it deploy/nginx-deployment -- ls -lh /usr/share/nginx/html total 20K -rw-r--r-- 1 root root 12 Aug 27 15:53 index.html drwx------ 2 root root 16K Aug 27 15:51 lost+found ``` -------------------------------- ### Install and run a Vanilla Minecraft server on a VPS Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/virtual-private-servers/minecraft-server-on-vps.md Commands to download the server jar, accept the EULA, manage screen sessions, launch the server, and the expected startup output. ```sh ~/server$ wget download_link ``` ```sh ~/server$ echo "eula=true" > eula.txt ``` ```sh ~/server$ screen -S minecraft1 ``` ```sh ~/server$ screen -ls ``` ```sh ~/server$ screen -x name_of_shell ``` ```sh ~/server$ java -Xmx1024M -Xms1024M -jar server.jar nogui ``` ```sh ~/server$ java -jar server.jar ``` ```console [14:52:58] [Server thread/INFO]: Done (41.530s)! For help, type "help" ``` -------------------------------- ### GET /dedicated/ceph/{serviceName}/user response example Source: https://docs.ovhcloud.com/en/guides/storage-and-backup/block-storage/cloud-disk-array/ceph-change-user-rights.md Example response from the GET /dedicated/ceph/{serviceName}/user API call, showing the current user's rights and capabilities. ```bash GET /dedicated/ceph/98d166d8-7c88-47b7-9cb6-63acd5a59c15/user [ { mdsCaps: "", monCaps: "allow r", serviceName: "98d166d8-7c88-47b7-9cb6-63acd5a59c15", name: "myuser" osdCaps: "allow class-read object_prefix rbd_children, allow rwx pool=mypool", key: "AQA9KpdXoBrDNhAAFCM7m/XOtmWh3LMSNlHVqw==", } ] ``` -------------------------------- ### Expected output of the setup workflow Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/backup-restore-pv-volume-snapshot.md Shows the expected output of the entire setup workflow, including resource creation, service IP assignment, curl responses, and the access log entries. This is the reference output for verifying that the Nginx example is working correctly. ```console $ kubectl apply -f nginx-example-with-pv.yml namespace/nginx-example created persistentvolumeclaim/nginx-logs created deployment.apps/nginx-deployment created service/nginx-service created $ kubectl -n nginx-example get svc nginx-service -w NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE nginx-service LoadBalancer 10.3.28.41 80:32675/TCP 4s nginx-service LoadBalancer 10.3.28.41 80:32675/TCP 91s nginx-service LoadBalancer 10.3.28.41 135.125.XX.XXX 80:32675/TCP 91s nginx-service LoadBalancer 10.3.28.41 135.125.XX.XXX 80:32675/TCP 95s $ export LB_IP=$(kubectl -n nginx-example get svc nginx-service -o jsonpath='{.status.loadBalancer.ingress[0].ip}') $ echo $LB_IP 135.125.XX.XXX $ curl -I $LB_IP HTTP/1.1 200 OK Server: nginx/1.7.9 Date: Mon, 26 Sep 2022 06:56:32 GMT Content-Type: text/html Content-Length: 612 Last-Modified: Tue, 23 Dec 2014 16:25:09 GMT Connection: keep-alive ETag: "54999765-264" Accept-Ranges: bytes $ curl -I $LB_IP HTTP/1.1 200 OK Server: nginx/1.7.9 Date: Mon, 26 Sep 2022 06:56:33 GMT Content-Type: text/html Content-Length: 612 Last-Modified: Tue, 23 Dec 2014 16:25:09 GMT Connection: keep-alive ETag: "54999765-264" Accept-Ranges: bytes $ export POD_NAME=$(kubectl get po -n nginx-example -o name) $ echo $POD_NAME pod/nginx-deployment-5bfc8c9f6f-zplsl $ kubectl -n nginx-example exec $POD_NAME -c nginx -- cat /var/log/nginx/access.log 10.2.0.0 - - [26/Sep/2022:06:56:32 +0000] "HEAD / HTTP/1.1" 200 0 "-" "curl/7.64.1" "-" 141.94.164.46 - - [26/Sep/2022:06:56:33 +0000] "HEAD / HTTP/1.1" 200 0 "-" "curl/7.64.1" "-" ``` -------------------------------- ### Example output of kubectl get license Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/backup-restore-cluster-trilio.md Example output from `kubectl get license -n tvk` showing an active cluster license with capacity 500 and expiration in 2027. ```text NAMESPACE NAME STATUS MESSAGE CURRENT NODE COUNT GRACE PERIOD END TIME EDITION CAPACITY EXPIRATION TIME MAX NODES tvk trilio-license Active Cluster License Activated successfully. 3 Basic 500 2027-06-21T00:00:00Z 3 ``` -------------------------------- ### Example output for Repository creation Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/backing-up-volumes-stash.md Example output of applying the repository.yaml file. ```console $ kubectl apply -f repository.yaml repository.stash.appscode.com/s3-repo created ``` -------------------------------- ### GET /iam/permissionsGroup response example Source: https://docs.ovhcloud.com/en/guides/account-and-service-management/account-information/iam-permission-groups.md Example response from the GET /iam/permissionsGroup API, showing a permission group object with its id, urn, name, owner, description, permissions, and timestamps. ```json { "id": "00000000-0000-0000-0001-000000000001", "urn": "urn:v1:eu:permissionsGroup:ovh:globalAdmin", "name": "globalAdmin", "owner": "ovh", "description": "Give global admin access across all OVHcloud products", "permissions": { "allow": [ { "action": "*" } ] }, "createdAt": "2023-03-14T09:10:57.40418Z", "updatedAt": null }, ``` -------------------------------- ### GET /hosting/web/{serviceName}/user return example Source: https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/api-webhosting.md Return example for the GET /hosting/web/{serviceName}/user endpoint. Shows the list of FTP/SSH user logins returned when listing users. ```json [ "user1", "user2", "user3", "user4" ] ``` -------------------------------- ### Create and initialize a Go Pulumi project Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-private-registry/creation.md Create a directory and initialize a new Go Pulumi project. ```bash mkdir ovh-registry-go && cd ovh-registry-go pulumi new go -y ``` -------------------------------- ### Example response for GET /dedicatedCloud/{serviceName}/nsxt Source: https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/nsx-add-user-rights.md Example response from the OVHcloud API endpoint GET /dedicatedCloud/{serviceName}/nsxt, showing the NSX-T version, state, URL, and per-datacenter states. ```shell { "version": "4.1.1.0.0-22224312", "state": "enabled", "url": "https://nsxt.pcc-XX-X-X-X.ovh.X", "datacentersState": [ { "id": 1542, "state": "disabled" }, { "state": "enabled", "id": 1345 } ] } ``` -------------------------------- ### Output for deploying Bookinfo Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/install-istio.md Example output showing the resources created when applying the Bookinfo manifest. ```console $ kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml -n istio-apps service/details created serviceaccount/bookinfo-details created deployment.apps/details-v1 created service/ratings created serviceaccount/bookinfo-ratings created deployment.apps/ratings-v1 created service/reviews created serviceaccount/bookinfo-reviews created deployment.apps/reviews-v1 created deployment.apps/reviews-v2 created deployment.apps/reviews-v3 created service/productpage created serviceaccount/bookinfo-productpage created deployment.apps/productpage-v1 created ``` -------------------------------- ### Example output of GET /ip/{ip}/spam/{ipSpamming} Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/antispam-best-practices.md Example result from the GET /ip/{ip}/spam/{ipSpamming} API call, showing blocking details such as duration, date, and state. Use this to confirm the IP is blocked and to get the 'ipSpamming' value for subsequent calls. ```bash time: 3600, date: "2022-08-29T17:42:50+01:00", ipSpamming: "122.122.122.122", state: "blockedForSpam" ``` -------------------------------- ### Install PHPMailer with Composer Source: https://docs.ovhcloud.com/en/guides/web-cloud/web-hosting/email-sending-best-practices.md Install PHPMailer via Composer before using the PHP sending example. ```bash composer require phpmailer/phpmailer ``` -------------------------------- ### Install required packages Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/sme-sev-enable-and-use.md Install libvirt, virtinst, qemu-utils, and cloud-image-utils for VM management. ```bash sudo apt update sudo apt install libvirt-daemon-system virtinst qemu-utils cloud-image-utils ``` -------------------------------- ### Example output of kubectl get nodes Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/install-keycloak.md Example output of the kubectl --user=oidc get nodes command, showing the nodes of the Managed Kubernetes Service. If you see this output, your Keycloak instance is up and running. ```console $ kubectl --user=oidc get nodes NAME STATUS ROLES AGE VERSION nodepool-d18716fa-e910-4e77-a2-node-79add5 Ready 2d v1.34.0 nodepool-d18716fa-e910-4e77-a2-node-aa7701 Ready 2d v1.34.0 nodepool-d18716fa-e910-4e77-a2-node-f9f18e Ready 2d v1.34.0 ``` -------------------------------- ### Run the Linux installation script Source: https://docs.ovhcloud.com/en/guides/storage-and-backup/backup-agent/first-configuration.md Run the downloaded installation file on your Linux server. Replace with your company name. ```bash sudo ./LinuxAgentPackages..sh ``` -------------------------------- ### Example output of GET /ip Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/antispam-best-practices.md Example output from the GET /ip API call, showing a list of IP blocks for OVHcloud services. Use this to identify the IP block to query in subsequent steps. ```bash "2001:41d0:67:d200::/56", "2001:41d0:68:a00::/56", "2001:41d0:68:f000::/56", "2001:41d0:117:db00::/56", "122.122.122.121/28", "145.56.222.96/28", "188.81.49.30/28", ``` -------------------------------- ### Example output for BackupConfiguration creation Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/backing-up-volumes-stash.md Example output of applying the backup-configuration.yaml file. ```console $ kubectl apply -f backup-configuration.yaml backupconfiguration.stash.appscode.com/nginx-backup created ``` -------------------------------- ### Output of pip install python-openstackclient awscli Source: https://docs.ovhcloud.com/en/guides/public-cloud/containers-orchestration/managed-kubernetes/install-popeye.md Example output of the pip install command, showing the successful installation of the OpenStack client and AWS CLI. ```console $ pip install python-openstackclient awscli DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621 Collecting python-openstackclient Using cached python_openstackclient-5.7.0-py3-none-any.whl (970 kB) Collecting awscli Using cached awscli-1.22.54-py3-none-any.whl (3.8 MB) ... Successfully installed PrettyTable-3.1.0 PyYAML-5.4.1 appdirs-1.4.4 attrs-21.4.0 autopage-0.5.0 awscli-1.22.54 botocore-1.23.54 certifi-2021.10.8 cffi-1.15.0 charset-normalizer-2.0.12 cliff-3.10.0 cmd2-2.3.3 colorama-0.4.3 cryptography-36.0.1 debtcollector-2.4.0 decorator-5.1.1 docutils-0.15.2 dogpile.cache-1.1.5 idna-3.3 iso8601-1.0.2 jmespath-0.10.0 jsonpatch-1.32 jsonpointer-2.2 keystoneauth1-4.4.0 msgpack-1.0.3 munch-2.5.0 netaddr-0.8.0 netifaces-0.11.0 openstacksdk-0.61.0 os-service-types-1.7.0 osc-lib-2.4.2 oslo.config-8.7.1 oslo.i18n-5.1.0 oslo.serialization-4.2.0 oslo.utils-4.12.1 packaging-21.3 pbr-5.8.1 pyasn1-0.4.8 pycparser-2.21 pyparsing-3.0.7 pyperclip-1.8.2 python-cinderclient-8.2.0 python-dateutil-2.8.2 python-keystoneclient-4.4.0 python-novaclient-17.6.0 python-openstackclient-5.7.0 pytz-2021.3 requests-2.27.1 requestsexceptions-1.4.0 rfc3986-2.0.0 rsa-4.7.2 s3transfer-0.5.1 simplejson-3.17.6 stevedore-3.5.0 urllib3-1.26.8 wcwidth-0.2.5 wrapt-1.13.3 ``` -------------------------------- ### Install vSphere Perl SDK Source: https://docs.ovhcloud.com/en/guides/hosted-private-cloud/powered-by-vmware/vmware-installation-api.md Change to the extracted SDK directory and start the installer. Accept the terms and continue; the SDK will be installed to /usr/bin by default. ```bash cd vmware-vsphere-cli-distrib ``` ```bash ./vmware-install.pl ``` -------------------------------- ### Verify Swift client setup Source: https://docs.ovhcloud.com/en/guides/storage-and-backup/object-storage/pcs-create-container.md Verifies the Swift client setup and displays the list of available Swift commands. ```bash swift --help ``` -------------------------------- ### Verify ESO Installation with kubectl get all Source: https://docs.ovhcloud.com/en/guides/manage-and-operate/secret-manager/external-secret-operator.md Output of `kubectl get all -n external-secrets` showing the ESO pods, service, deployments, and replicasets after installation. Note that the cert-controller and webhook pods may not be ready immediately. ```bash $ kubectl get all -n external-secrets NAME READY STATUS RESTARTS AGE pod/external-secrets-8cbc56569-9875p 1/1 Running 0 12s pod/external-secrets-cert-controller-565fcd479b-xbkcp 0/1 Running 0 12s pod/external-secrets-webhook-7fb59d4b88-9tkl6 0/1 Running 0 12s NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/external-secrets-webhook ClusterIP 10.3.43.102 443/TCP 13s NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/external-secrets 1/1 1 1 13s deployment.apps/external-secrets-cert-controller 0/1 1 0 13s deployment.apps/external-secrets-webhook 0/1 1 0 13s NAME DESIRED CURRENT READY AGE replicaset.apps/external-secrets-8cbc56569 1 1 1 13s replicaset.apps/external-secrets-cert-controller-565fcd479b 1 1 0 13s replicaset.apps/external-secrets-webhook-7fb59d4b88 1 1 0 13s ``` -------------------------------- ### Create an instance from pre-created volumes (recommended) Source: https://docs.ovhcloud.com/en/guides/hosted-private-cloud/cloud-platform/glance-image-management.md Creates an instance using pre-created volumes referenced by `source_type=volume`. This is recommended over creating multiple `source_type=image` block devices in one call to avoid stuck states. ```bash openstack server create \ --block-device uuid=,source_type=volume,destination_type=volume,boot_index=0 \ ... ``` -------------------------------- ### Example output of GET /ip/{ip}/spam Source: https://docs.ovhcloud.com/en/guides/bare-metal-cloud/dedicated-servers/antispam-best-practices.md Example result from the GET /ip/{ip}/spam API call, showing an IP address in the 'blockedForSpam' state. This is used to identify the specific IP that is blocked. ```bash "122.122.122.122" ```