Skip to content

Commit

Permalink
fix #261: alb, targetgroup examples (#264)
Browse files Browse the repository at this point in the history
* fix: alb, targetgroup examples

* doc: regen docs
  • Loading branch information
avirtopeanu-ionos authored Mar 27, 2023
1 parent 8683dd6 commit b598490
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions commands/cloudapi-v6/examples.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,8 @@ ionosctl natgateway lan add --datacenter-id DATACENTER_ID --natgateway-id NATGAT
Network Load Balancer ForwardingRule Target Example
*/
listNetworkLoadBalancerRuleTargetExample = `ionosctl networkloadbalancer rule target list --datacenter-id DATACENTER_ID --networkloadbalancer-id NETWORKLOADBALANCER_ID --rule-id FORWARDINGRULE_ID`
addNetworkLoadBalancerRuleTargetExample = `ionosctl networkloadbalancer rule target add --datacenter-id DATACENTER_ID --networkloadbalancer-id NETWORKLOADBALANCER_ID --rule-id FORWARDINGRULE_ID --target-ip TARGET_IP --target-port TARGET_PORT -w`
removeNetworkLoadBalancerRuleTargetExample = `ionosctl nlb rule target remove --datacenter-id DATACENTER_ID --networkloadbalancer-id NETWORKLOADBALANCER_ID --rule-id FORWARDINGRULE_ID --target-ip TARGET_IP --target-port TARGET_PORT -w`
addNetworkLoadBalancerRuleTargetExample = `ionosctl networkloadbalancer rule target add --datacenter-id DATACENTER_ID --networkloadbalancer-id NETWORKLOADBALANCER_ID --rule-id FORWARDINGRULE_ID --ip TARGET_IP --port TARGET_PORT`
removeNetworkLoadBalancerRuleTargetExample = `ionosctl nlb rule target remove --datacenter-id DATACENTER_ID --networkloadbalancer-id NETWORKLOADBALANCER_ID --rule-id FORWARDINGRULE_ID --ip TARGET_IP --port TARGET_PORT`

/*
Target Group Example
Expand All @@ -363,8 +363,8 @@ ionosctl natgateway lan add --datacenter-id DATACENTER_ID --natgateway-id NATGAT
deleteTargetGroupExample = `ionosctl targetgroup delete --targetgroup-id TARGET_GROUP_ID --force`

listTargetGroupTargetExample = `ionosctl targetgroup target list --targetgroup-id TARGET_GROUP_ID`
addTargetGroupTargetExample = `ionosctl targetgroup target add --targetgroup-id TARGET_GROUP_ID --target-ip TARGET_IP --target-port TARGET_PORT`
removeTargetGroupTargetExample = `ionosctl targetgroup target remove --targetgroup-id TARGET_GROUP_ID --target-ip TARGET_IP --target-port TARGET_PORT`
addTargetGroupTargetExample = `ionosctl targetgroup target add --targetgroup-id TARGET_GROUP_ID --ip TARGET_IP --port TARGET_PORT`
removeTargetGroupTargetExample = `ionosctl targetgroup target remove --targetgroup-id TARGET_GROUP_ID --ip TARGET_IP --port TARGET_PORT`

/*
Application Load Balancer Example
Expand Down Expand Up @@ -396,7 +396,7 @@ ionosctl natgateway lan add --datacenter-id DATACENTER_ID --natgateway-id NATGAT
*/
listApplicationLoadBalancerFlowLogExample = `ionosctl applicationloadbalancer flowlog list --datacenter-id DATACENTER_ID --applicationloadbalancer-id APPLICATIONLOADBALANCER_ID`
getApplicationLoadBalancerFlowLogExample = `ionosctl applicationloadbalancer flowlog get --datacenter-id DATACENTER_ID --applicationloadbalancer-id APPLICATIONLOADBALANCER_ID -i FLOWLOG_ID`
createApplicationLoadBalancerFlowLogExample = `ionosctl applicationloadbalancer flowlog create --datacenter-id DATACENTER_ID --applicationloadbalancer-id APPLICATIONLOADBALANCER_ID --action ACTION --name NAME --direction DIRECTION --bucket-name BUCKET_NAME`
createApplicationLoadBalancerFlowLogExample = `ionosctl applicationloadbalancer flowlog create --datacenter-id DATACENTER_ID --applicationloadbalancer-id APPLICATIONLOADBALANCER_ID --action ACTION --name NAME --direction DIRECTION --s3bucket BUCKET_NAME`
updateApplicationLoadBalancerFlowLogExample = `ionosctl applicationloadbalancer flowlog update --datacenter-id DATACENTER_ID --applicationloadbalancer-id APPLICATIONLOADBALANCER_ID -i FLOWLOG_ID --name NAME`
deleteApplicationLoadBalancerFlowLogExample = `ionosctl applicationloadbalancer flowlog delete --datacenter-id DATACENTER_ID --applicationloadbalancer-id APPLICATIONLOADBALANCER_ID -i FLOWLOG_ID`
)
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,6 @@ Required values to run command:
## Examples

```text
ionosctl applicationloadbalancer flowlog create --datacenter-id DATACENTER_ID --applicationloadbalancer-id APPLICATIONLOADBALANCER_ID --action ACTION --name NAME --direction DIRECTION --bucket-name BUCKET_NAME
ionosctl applicationloadbalancer flowlog create --datacenter-id DATACENTER_ID --applicationloadbalancer-id APPLICATIONLOADBALANCER_ID --action ACTION --name NAME --direction DIRECTION --s3bucket BUCKET_NAME
```

Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ Required values to run command:
## Examples

```text
ionosctl targetgroup target add --targetgroup-id TARGET_GROUP_ID --target-ip TARGET_IP --target-port TARGET_PORT
ionosctl targetgroup target add --targetgroup-id TARGET_GROUP_ID --ip TARGET_IP --port TARGET_PORT
```

Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ Required values to run command:
## Examples

```text
ionosctl targetgroup target remove --targetgroup-id TARGET_GROUP_ID --target-ip TARGET_IP --target-port TARGET_PORT
ionosctl targetgroup target remove --targetgroup-id TARGET_GROUP_ID --ip TARGET_IP --port TARGET_PORT
```

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Create a registry to hold container images or OCI compliant artifacts
-c, --config string Configuration file used for authentication (default "$XDG_CONFIG_HOME/ionosctl/config.json")
-f, --force Force command to execute without user input
--garbage-collection-schedule-days strings Specify the garbage collection schedule days
--garbage-collection-schedule-time string Specify the garbage collection schedule time of day
--garbage-collection-schedule-time string Specify the garbage collection schedule time of day using RFC3339 format
-h, --help Print usage
--location string Specify the location of the registry (required)
-n, --name string Specify the name of the registry (required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ For `container-registry` command:
For `repository` command:

```text
[rd del repo rep-del]
[rd del repo rep-del repository-delete]
```

## Description
Expand All @@ -46,6 +46,6 @@ Delete all repository contents. The registry V2 API allows manifests and blobs t
## Examples

```text
ionosctl container-registry locations
ionosctl container-registry repository-delete --registry-id [REGISTRY-ID], --name [REPOSITORY-NAME]
```

2 changes: 1 addition & 1 deletion docs/subcommands/compute-engine/image-upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Required values to run command:
-i, --image strings Slice of paths to images, can be absolute path or relative to current working directory (required)
-a, --image-alias strings Rename the uploaded images. These names should not contain any extension. By default, this is the base of the image path
--licence-type string The OS type of this image. Can be one of: UNKNOWN, WINDOWS, WINDOWS2016, WINDOWS2022, LINUX, OTHER (default "UNKNOWN")
-l, --location strings Location to upload to. Must be an array containing only fra, fkb, txl, lhr, las, ewr, vit (required) (default [fra])
-l, --location strings Location to upload to. Must be an array containing only fra, fkb, txl, lhr, las, ewr, vit (required)
-n, --name string Name of the Image
--nic-hot-plug 'Hot-Plug' NIC (default true)
--nic-hot-unplug 'Hot-Unplug' NIC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,6 @@ Required values to run command:
## Examples

```text
ionosctl networkloadbalancer rule target add --datacenter-id DATACENTER_ID --networkloadbalancer-id NETWORKLOADBALANCER_ID --rule-id FORWARDINGRULE_ID --target-ip TARGET_IP --target-port TARGET_PORT -w
ionosctl networkloadbalancer rule target add --datacenter-id DATACENTER_ID --networkloadbalancer-id NETWORKLOADBALANCER_ID --rule-id FORWARDINGRULE_ID --ip TARGET_IP --port TARGET_PORT
```

Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ Required values to run command:
## Examples

```text
ionosctl nlb rule target remove --datacenter-id DATACENTER_ID --networkloadbalancer-id NETWORKLOADBALANCER_ID --rule-id FORWARDINGRULE_ID --target-ip TARGET_IP --target-port TARGET_PORT -w
ionosctl nlb rule target remove --datacenter-id DATACENTER_ID --networkloadbalancer-id NETWORKLOADBALANCER_ID --rule-id FORWARDINGRULE_ID --ip TARGET_IP --port TARGET_PORT
```

0 comments on commit b598490

Please sign in to comment.