centurylinkcloud / clc-go-cli Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
The new autocomplete script changes adding a source to the .bashrc file to adding a source to the non-existent .bash_profile file. Which ends up creating the file and making it look like the below:
[[ -s /home/work/.bash_completion.d/clc ]] && source /home/work/.bash_completion.d/clc
Since .bashrc is used more commonly, especially on Debian-based systems, perhaps a fallback option of adding the line to .bashrc would be appropriate?
Hi, guys. I've tried to install clc on my MacBook using links from README, but it didn't worked for me. Here is what I have in my terminal:
Ilyas-MacBook-Pro:tmp idrabenia$ clc login --user name --password xxx
Logged in as name.
Ilyas-MacBook-Pro:tmp idrabenia$ clc server list
DataCenter: non zero value required
Ilyas-MacBook-Pro:tmp idrabenia$ CLC_TRACE=true clc server list
DataCenter: non zero value required
Ilyas-MacBook-Pro:tmp idrabenia$ CLC_DEBUG=true clc server list
DataCenter: non zero value required
some of the exe cli commands don't work the same as others.
i.e. if I run clc server list = i get all my servers
if i run clc network list = "DataCenter: non zero value required"
same for load-balancer
seems inconsistent as the --help shows there are no other required fields on the list command
i'm having issues creating a firewall policy. can you provide an example?
clc firewall-policy create --data-center CA3 --destination-account SUB9 --source 10.101.50.0/24 --destination 10.101.111.0/24 --ports tcp/1433
it just spits out
`10.101.50.0/24` must be array specified either in JSON or in key=value,.. format.
It would be to validate, that data center with such ID exists
As you may know, MacOS is widely used as development platform due its simplicity.
A prebuilt MacOS client binary would create an incentive for many developers to try this tool eliminating the work on their side to build from source.
Furthermore, since the tool has autocomplete functionality that must be installed locally, packaging in a MacOS pkg file would be ideal.
Thanks for reading.
Hi,
I ran the examples on https://github.com/CenturyLinkCloud/clc-go-cli as demo and realized the names of the queries are in lower cases, which would give errors, like templates.name (templates.name: there is no such field in the result), id. After removing the query from the command, the output shows that the query names need to capitalize the first letter. Is this by design or both lower and upper case name should work?
Some of the commands ran are:
clc data-center get-deployment-capabilities --data-center --query templates.name --output text
clc group list --all --filter location-id= --query id --output text
I verified the behaviours in both Windows and CentOS are the same. I am running clc-2015-11-06-windows-x64.zip and clc-2015-11-06-linux-amd64.tar.gz binary.
Thanks
Gavin
A customer is scheduling a task using the CLI and it fails when using the SYSTEM account, even when passing the user name and password in line, the details from the client below:
Yes, and using the default settings (which launch the process under the user account that was used to create the task), it initially works. However, if you were to edit the properties of this task, click “Change User or Group…”, type “SYSTEM”, click OK, click OK again, and run the task again, you’ll see it fail with the same error we get under SQLAgent. This is because the SYSTEM account lacks a profile/home directory altogether, which is what seems to cause the go-based clc.exe application to fail with the error no matter what we try to do. Here’s a bat file I used to test and verify this with the Windows Task Scheduler:
@echo off
REM -- Settings (Note that a double-percent character is used to escape a single percent character.)
SET CLC_EXE="C:\Development\clc-cli\clc.exe"
SET CLC_TEMP_FILE="C:\Development\clc-cli\temp.txt"
SET CLCUSR=REDACTED
SET CLCPWD=REDACTED
echo "" > %CLC_TEMP_FILE%
%CLC_EXE% server list --data-center IL1 --output table --user %CLCUSR% --password %CLCPWD% 1> %CLC_TEMP_FILE% 2>&1
…The same behavior also occurs when renaming CLCUSR to CLC_USER and CLCPWD to CLC_PASSWORD and removing the --user and --password arguments (which works when run under my user account, which of course has a profile directory).
Do we somehow need the clc\config.yml file to run the CLI?
Thanks
Gavin
can you help me with the profile code? by default this is what's in my yml file.
user: chris.little.ccva
password: XXXXX
defaultformat: ""
profiles: {}
the example you posted in the readme doesn't show the whole sample and i've tried a few configurations and cannot get it to work.
how does one leverage the CLI to list servers for sub accounts of a parent account?
I login with my user in the parent. as admin in the parent I can view, execute, operate the stack for any sub account.
i don't see a way to put in an account alias field if i want to do actions against my hierarchy of accounts.
There's a small issue the occurs after install_autocompletion
script creates the .bash_completion
directory in my home folder on Linux. When opening new terminal sessions, it presents the error below:
bash: .: /home/derek/.bash_completion: is a directory
bash: .: /home/derek/.bash_completion: is a directory
I'm not overly familiar with the hierarchy of profile scripts that are sourced when a session starts, but there's clearly a conflict. Bash is expecting a script or executable where it finds a directory. I solved this by not running install_autocompletion
.
The script adds this line to the user's .bashrc
file:
source ~/.bash_completion/clc"
Instead, I added this line:
source ~/bin/clc_cli/autocomplete/bash_autocomplete
They're the same script. It should still work because they don't seem to use relative paths (except those relative to ~
). Another option could be for install_autocompletion
to copy the bash_completion
script to ~/.clc
, then have .bashrc
source it from that directory.
Granted, this could just be a quirk of my installation since I haven't seen any other issues submitted for this, but it could be a nice workaround for others like me.
according to this pull request the ips install/unistall endpoint has changed.
https://github.com/CenturyLinkCloud/PublicKB/pull/985/files
we may need the IPS code updated
Good afternoon,
The current support for custom field is only for id and value, would it be expand to include 'isRquired', type and name?
Thanks
Gavin
We should use either --user option or user information stored in cofig file instead
getting an odd error. hopefully I got the command right..I edited out the password
C:\clc>clc db create --instance-type mysql --external-id chrismysql --machine-config "cpu=2,memory=4,storage=15" --backup-retention-days 5 --users "name=chris,password=XXXX --data-center VA1
panic: runtime error: index out of range
goroutine 1 [running]:
github.com/centurylinkcloud/clc-go-cli/model_validator.pretifyError(0xc0820d6dc0, 0x1d, 0x0, 0x0)
/Users/ldmberman/.gvm/pkgsets/go1.4.2/centurylink/src/github.com/centurylinkcloud/clc-go-cli/model_validator/model_validator.go:100 +0x1e1
github.com/centurylinkcloud/clc-go-cli/model_validator.ValidateModel(0x7d2ee0, 0xc082066160, 0x0, 0x0)
/Users/ldmberman/.gvm/pkgsets/go1.4.2/centurylink/src/github.com/centurylinkcloud/clc-go-cli/model_validator/model_validator.go:23 +0x1c7
main.Run(0xc082022010, 0xc, 0xc, 0x0, 0x0)
/Users/ldmberman/Programming/clc-go-cli/cmd/clc/runner.go:90 +0xa76
main.main()
/Users/ldmberman/Programming/clc-go-cli/cmd/clc/main.go:21 +0x1dd
goroutine 2 [runnable]:
runtime.forcegchelper()
/Users/ldmberman/.gvm/gos/go1.4.2/src/runtime/proc.go:90
runtime.goexit()
/Users/ldmberman/.gvm/gos/go1.4.2/src/runtime/asm_amd64.s:2232 +0x1
goroutine 3 [runnable]:
runtime.bgsweep()
/Users/ldmberman/.gvm/gos/go1.4.2/src/runtime/mgc0.go:82
runtime.goexit()
/Users/ldmberman/.gvm/gos/go1.4.2/src/runtime/asm_amd64.s:2232 +0x1
goroutine 4 [runnable]:
runtime.runfinq()
/Users/ldmberman/.gvm/gos/go1.4.2/src/runtime/malloc.go:712
runtime.goexit()
/Users/ldmberman/.gvm/gos/go1.4.2/src/runtime/asm_amd64.s:2232 +0x1
we have now launched our relationdb mysql service. please get the API's into the CLI for managing this service.
is there a way we could create a default output to csv for the CLI? we have TAMs (account mgrs) using the tool and being able to output to csv native would really help them.
Good morning,
CLI version: 2016-Jan-06
I have been trying to have the --generate-cli-skeleton working, from both the example and from trying myself. From the example:
clc group list --filter 'servers-count>0' --generate-cli-skeleton > groups_with_servers.json
clc group list --from-file groups_with_servers.json
Output: All does not accept any value.
While this works:
clc server list --all --query details.host-name --generate-cli-skeleton > servername.json
clc server list --from-file servername.json
[
{
"HostName": "va1rfpdweb401"
},
{
"HostName": "va1rfpdweb202"
},
{
"HostName": "va1rfpdweb103"
},
{
"HostName": "va1rfpdweb301"
}
]
But clc server delete --from-file servername.json would not work:
Unknown option or argument: All
.
Is that normal behaviour?
Thanks
Gavin
Error message should be shown to user in case if he tries to use --query option with property that don't exists
I don't see a server reboot action in the clc server --help command. reboot is a portal action.
Using Aug 29 binary the login option to create config.yml, by default, it looks like this:
user: 'gavin.lai.ccva'
password: 'xxxxxxxxxxxx'
defaultformat: ""
profiles: {}
I would get this error message:
C:\Users\gavin.lai\Downloads\clc>clc server list
Error occured while sending request to API. Status code: 400. Server says: We didn't recognize the username or password you entered. Please try again..
Once the defaultdatacenter: "CA3" parameter is inserted in config.yml, everything works fine.
On the latest Windows binary, the configuration is no longer at .clc directory, it move to to clc directory under the user account, but the permission error is fixed.
In Linux, with the same file, the default file looks like this:
user: [email protected]
password: 'xxxxxxxxxxx'
defaultformat: ""
profiles: {}
defaultdatacenter: ""
I would get this error:
owncloud@CA3CCVAOCLOUD03:~/clc-2015-09-03-linux-amd64$ ./clc server list
DataCenter: non zero value required
Once I added the defaultdatacenter parameter, it works fine.
is there a way to crawl an entire account alias hierarchy with the server list function? i couldn't see anything in the help.
i'd like to crawl a top level and a tree of 20 sub accounts for a server list by specific data center.
command:
clc server create --name VM --description managed --group-id 33d5f780df43437fa46ab0d41f89548f --source-server-id windows2012R2DataCenter_64Bit --primary-dns 10.100.98.13 --secondary-dns 10.100.98.14 --network-id e25b7e0b0e134865b256d76b51bf48d3 --cpu 4 --memory-gb 8 --type standard --storage-type standard
Field MemoryGb
does not exist.
C:\clc>clc server create --name VM --description managed --group-id 33d5f780df43437fa46ab0d41f89548f --source-server-id windows2012R2DataCenter_64Bit --is-manag
ed-os false --primary-dns 10.100.98.13 --secondary-dns 10.100.98.14 --network-id e25b7e0b0e134865b256d76b51bf48d3 --cpu 4 --memory-gb 8 --type standard --storage-type standard
Field IsManagedOs
does not exist.
the --help seems to show it should work.
simple backup is now live please include in the CLI
https://www.ctl.io/simple-backup-service/
APIs: https://api-va1.backup.ctl.io/clc-backup-api/swagger-ui.html
separate from this as backup, IPS, dbaas evolve how should we keep things updating? iterations are coming fast and furious......
please put these in the CLI
https://www.ctl.io/api-docs/v2/#groups-set-group-horizontal-autoscale-policy
https://www.ctl.io/api-docs/v2/#groups-get-group-horizontal-autoscale-policy
https://www.ctl.io/api-docs/v2/#groups-get-group-scheduled-activities
https://www.ctl.io/api-docs/v2/#groups-set-group-defaults
include patching as a service API's to CLI
https://www.ctl.io/api-docs/v2/#patching
clc server create --help
no option is shown for OS flavor
--os-type says its for bare metal only.
https://www.ctl.io/api-docs/v2/#servers-get-server
new string:
displayName string Friendly display name for the server (can be the same as the name)
it doesn't appear in any create API's but wanted you to know its there now.
can you put an example or help me with my config for executing a package during server build. I can't seem to get it right.
clc server create --name HYPER --description "HYPER" --group-name "hyper" --template-name WIN2012R2DTC-64 --network-name "DMZ_10.100.191.0/24" --cpu 2 --memory-gb 8 --type hyperscale --storage-type hyperscale --anti-affinity-policy-name "hyper" --packages ["b229535c-a313-4a31-baf8-6aa71ff4b9ed"]
I always get 'b229535c-a313-4a31-baf8-6aa71ff4b9ed must be an object specified either in JSON or in key=value,.. format'
I'm sure i've just got something wrong in the call.
C:\clc>clc load-balancer delete --data-center DE1 --load-balancer-name test --profile sandbox
There are no load balancers with name test in DE1.
C:\clc>clc load-balancer delete --data-center DE1 --load-balancer-name Test --profile sandbox
job completes. is the code supposed to be (for LB name) case sensitive?
also test the action as for me the CLI never went back to the cmd prompt until i hit enter, like it was stuck
command:
clc server create --name VM --description Test --group-id 33d5f780df43437fa46ab0d41f89548f --source-server-id WIN2012R2DTC-64 --primary-dns 10.100.98.13 --secondary-dns 10.100.98.14 --network-id e25b7e0b0e134865b256d76b51bf48d3 --cpu 4 --memory-GB 8 --type standard --storage-type standard
{
"ErrorMessage": "",
"IsQueued": true,
"Links": [
{
"Href": "/v2/operations/ccva/status/ca3-19801",
"Id": "ca3-19801",
"Name": "",
"Rel": "status",
"Verbs": null
},
{
"Href": "/v2/servers/CCVA/96b1b02afab844e8ae92bb6828ac2ed0?uuid=True",
"Id": "96b1b02afab844e8ae92bb6828ac2ed0",
"Name": "",
"Rel": "self",
"Verbs": [
"GET"
]
}
],
"Server": "vm"
}
VM created but came out 'premium' storage. build log below
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<State>
<Context>
<Properties/>
</Context>
<Template>
<Properties>
<Property Name="${deb0dc7a-edff-4bf7-b931-d52688c5b633.Network}" Value="vlan_296_10.100.96"/>
<Property Name="${deb0dc7a-edff-4bf7-b931-d52688c5b633.ShouldConfigureNetwork}" Value="False"/>
<Property Name="${deb0dc7a-edff-4bf7-b931-d52688c5b633.ContinueOnError}" Value="False"/>
<Property Name="${deb0dc7a-edff-4bf7-b931-d52688c5b633.IsFixed}" Value="False"/>
<Property Name="${deb0dc7a-edff-4bf7-b931-d52688c5b633.ID}" Value="deb0dc7a-edff-4bf7-b931-d52688c5b633"/>
<Property Name="${deb0dc7a-edff-4bf7-b931-d52688c5b633.UUID}" Value="00000000-0000-0000-0000-000000000000"/>
<Property Name="${deb0dc7a-edff-4bf7-b931-d52688c5b633.Title}" Value="Reserve Network"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.Title}" Value="Build Server VM"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.Classification}" Value="Server"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.UUID}" Value="cb9762b3-61a6-4cfb-af97-96bf7dbfc359"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.Template}" Value="WIN2012R2DTC-64"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.TemplatePassword}" Value="OMhtaesI8uwQag0p4jaq/w==" Value-Seed="5epsn7OTxATisbKTNnjnLFdVuR6qjzy2iJN3CPTqPsdnLfLJ4eb2hgZs5BdxK4mGRHWLf4kmub66H2GedihBxhNisfA7n6N3jb9s5AyeLNia87gjUvEdigZBMvFRWmK5" Encrypt="True"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.IsHyperscale}" Value="False"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.IsManagedOS}" Value="False"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.MemoryGB}" Value="8"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.ServiceLevel}" Value="Premium"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.TaskStepID}" Value="53641"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.CpuCount}" Value="4"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.Alias}" Value="VM"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.CustomFieldsJson}" Value="[]"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.GroupID}" Value="33d5f780df43437fa46ab0d41f89548f"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.HardwareType}" Value="Standard"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.IPAddress}" Value="10.100.96.13"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.Network}" Value="${deb0dc7a-edff-4bf7-b931-d52688c5b633.Network}"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.NetworkId}" Value="67939d52007445fab2d5b171513ef123"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.Vlan}" Value="296"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.Password}" Value="tmKp3ZaDJZRcyBxsKNUzYd9MRy01jy0NJWUN/Lt3CVQ=" Value-Seed="KPZvD77qgT9XNKdTLSXzDbRwHp3xvkWUbBCQspfW3rFxSOfgvTozridLr7VBhHXsfHoXh2qXGmZqq6ZDEmmKXjFhFFwtoEO3S4jNiGOrv4gqrkA4OzUUNbnwVnjPKKmn" Encrypt="True"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.PrimaryDNS}" Value="172.17.1.26"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.SecondaryDNS}" Value="172.17.1.27"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.ServerName}" Value="CA3CCVAVM51"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.ServerUUID}" Value="96b1b02a-fab8-44e8-ae92-bb6828ac2ed0"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.ContinueOnError}" Value="False"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.IsFixed}" Value="False"/>
<Property Name="${19da344a-8ed4-4ac7-a9b7-f4080e41c09f.ID}" Value="19da344a-8ed4-4ac7-a9b7-f4080e41c09f"/>
</Properties>
</Template>
</State>
can we get the autocomplete functionality built into the tool vs. another item to configure? seems inefficient to have it separate
we'd like cross DC API added to CLI
https://www.ctl.io/api-docs/v2/#firewall-policies-create-a-cross-data-center-firewall-policy
https://www.ctl.io/api-docs/v2/#firewall-policies-delete-a-cross-data-center-firewall-policy
https://www.ctl.io/api-docs/v2/#firewall-policies-get-cross-data-center-firewall-policy
https://www.ctl.io/api-docs/v2/#firewall-policies-get-cross-data-center-firewall-policy-list
https://www.ctl.io/api-docs/v2/#firewall-policies-update-cross-data-center-firewall-policy
For now it is: "API request completed successfully. Status code: 200."
Maybe it will be better something like this: "Command executed successfully." or no message at all, as it is the case in most command line tools @jruckle @chrislittle what do you thin about this?
some new API's to get into the CLI
https://www.ctl.io/api-docs/v2/#groups-set-group-scheduled-activities
please improve the documentation on how to modify/create/delete firewall policies.
for example:
clc firewall-policy create --help doesn't tell me what else is required or how to format my rule on the windows CLI exe. there is nothing documented and I appear to have to just guess the formatting for a rule.
./out/clc network update --network some-id --user user --password password
some-id
must be object specified either in JSON or in key=value,.. format.
It will be better if error message will be 'Unknown option or argument: `Network1.'
seems like the --account-alias flag doesn't work on get dc capabilities to get sub account details.
C:\clc>clc data-center get-deployment-capabilities --account-alias SUB9
{
"DeployableNetworks": [
{
"AccountId": "CCVA",
"Name": "DMZ_10.135.169.0/24",
"NetworkId": "efca0ee7cf6a47c6bfca8a3e331fa5c8",
"Type": "private"
},
{
"AccountId": "CCVA",
"Name": "DSM_10.135.34.0/24",
"NetworkId": "bbcd1e0d76594f039e120c22117fdde7",
"Type": "private"
},
{
"AccountId": "CCVA",
"Name": "TRUST_10.128.8.0/24",
"NetworkId": "11a1e756a406418f8407fb2ae7a33457",
"Type": "private"
}
],
"ImportableOsTypes": [
{
"Description": "RedHat Enterprise Linux 6 64-bit",
"Id": 38,
"LabProductCode": "SOFT-LAB-REDHAT-CPU",
"PremiumProductCode": "SOFT-PREM-REDHAT-CPU",
"Type": "RedHat6_64Bit"
},
{
"Description": "Windows 2008 R2 Datacenter 64-bit",
"Id": 45,
"LabProductCode": "SOFT-LAB-WINSRVSTD-CPU",
"PremiumProductCode": "SOFT-PREM-WINSRVSTD-CPU",
"Type": "Windows2008R2DataCenter_64bit"
},
{
"Description": "Windows 2012R2 Datacenter 64-bit",
"Id": 28,
"LabProductCode": "SOFT-LAB-WINSRVSTD-CPU",
"PremiumProductCode": "SOFT-PREM-WINSRVSTD-CPU",
"Type": "Windows2012R2DataCenter_64Bit"
}
command
clc server update --help
no item in the help that says --server-id is a required field and the required field 'memory' is different than the 'memory-gb' in the create server command. might want to keep them consistent.
From my point of view, links in the output of the CLI just ocupy a lot of extra space, but don't provide useful information for user, Maybe it would be better to don't show them at all?
Another option is don't show them by default, but add --show-links option, that will return them to the output.
@chrislittle @jruckle what do you think?
The server name and Network name (and possibly account alias) are case sensitive when running the commands used when adding secondary nics.
https://www.ctl.io/knowledge-base/network/add-or-remove-network-interface-to-server-using-go-cli/
I've put in a PM request to update documentation for this, but it seems like removing case sensitivity would be worthwhile from the commands as well.
When trying to log in with a profile, I get the error below. I'm assuming the tool is expecting some kind of delimitation in the config somewhere.
$ clc login --profile p1
Failed to load config file, error: yaml: line 5: did not find expected ',' or '}'
What is the correct way to have the profiles added? Your documentation doesn't mention the braces, so are they required? When I remove the braces and try again, I get this error.
$ clc login --profile p1
Failed to load config file, error: yaml: line 4: found character that cannot start any token
Here's my config.yml.
user: username1
password: password1
defaultformat: text
profiles: {
p1:
user: username2
password: password2
p2:
user: username3
password: password3
}
defaultdatacenter: IL1
Good afternoon,
A few customers are asking ways to schedule creation and deletion in a regular interval, in order to delete a snapshot, the delete-snapshot command requires the snapshot ID. The Snapshot ID is not part of the get server output: (for example)
clc server get --server-name CA3CCVA2TAKE02
The snapshot output:
{
"Snapshots": [
{
"Name": "2016-03-29.19:54:14"
}
]
}
It will give me the snapshot creation date, not the snapshot ID under details.snapshots.links
I can see the snapshot ID in the trace as below:
"snapshots":[{"name":"2016-03-29.19:54:14","links":[{"rel":"self","href":"/v2/servers/ccva/ca3ccva2take02/snapshots/157"},{"rel":"delete","href":"/v2/servers/ccva/ca3ccva2take02/snapshots/157"}
The snapshot ID is 157.
Is there a way to get the snapshot ID from the clc output to help scripting the creation and deletion of the snapshot?
Thanks
Gavin
add the location of the config.yml to readme. mine was stored in C:\Users\Chris.clc
so its likely C:\users%username%.clc
generally if you can update the code to avoid a period in a folder name that might be a wise idea on Windows.
please add site to site vpn (including an example in the readme) v2 api to the CLI
@jruckle
https://www.ctl.io/api-docs/v2/#networks-create-a-site-to-site-vpn
https://www.ctl.io/api-docs/v2/#networks-delete-a-site-to-site-vpn
https://www.ctl.io/api-docs/v2/#networks-get-site-to-site-vpns
https://www.ctl.io/api-docs/v2/#networks-update-a-site-to-site-vpn
a few folks on our team are playing with the CLI and having issues using it on Mac. can you compile something for download for mac?
please remove all traces of premium storage from CLI. its retired.
there seems to be some case sensitive code that makes the usage a little unfriendly. i.e. if i issued this command
clc server create --name DEVSQL --description "Dev SQL Server" --group-name "Development Services" --template-name WIN2012R2DTC-64 --network-name "DEV_10.135.174.0/24" --cpu 1 --memory-gb 4 --type standard --storage-type standard --profile demo
if I run
clc server create --name DEVSQL --description "Dev SQL Server" --group-name "Development Services" --template-name WIN2012R2DTC-64 --network-name "DEV_10.135.174.0/24" --cpu 1 --memory-gb 4 --type Standard --storage-type Standard --profile demo
it states
Type value must be one of standard, hyperscale, bareMetal.
seems the capital 'S' on types matters which isn't a good idea.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.