Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
oci_configuration [2022/02/06 23:13] – created andonovj | oci_configuration [2022/03/18 08:16] (current) – [Test] andonovj | ||
---|---|---|---|
Line 23: | Line 23: | ||
Of course, use yours user and tenancy OCIDs, as well as the private key of the public key you have added as API key. | Of course, use yours user and tenancy OCIDs, as well as the private key of the public key you have added as API key. | ||
+ | ====Test==== | ||
+ | After that, you can test if you are set up, by listing your resources: | ||
+ | < | ||
+ | (poce_env) julien.andonov@julienandonovs-MacBook-Pro .oci % oci iam compartment list --compartment-id ocid1.tenancy.oc1..aaaaaaaa5ywubcssitfupa2xmwpwng2zms4dt52cw7gsbymr3nxesbkgdgrq | ||
+ | </ | ||
+ | There are other commands which you can use as well: | ||
+ | |||
+ | < | ||
+ | ###Get Namespace | ||
+ | oci os ns get | ||
+ | |||
+ | |||
+ | #Get tenancy | ||
+ | oci iam compartment list -c ocid1.tenancy.oc1..aaaaaaaa5ywubcssitfupa2xmwpwng2zms4dt52cw7gsbymr3nxesbkgdgrq | ||
+ | |||
+ | ###Get Buckets: | ||
+ | oci os bucket list -ns frsg5o7pykju --compartment-id ocid1.tenancy.oc1..aaaaaaaa5ywubcssitfupa2xmwpwng2zms4dt52cw7gsbymr3nxesbkgdgrq | ||
+ | |||
+ | ###Create bucket | ||
+ | oci os bucket create --compartment-id ocid1.tenancy.oc1..aaaaaaaa5ywubcssitfupa2xmwpwng2zms4dt52cw7gsbymr3nxesbkgdgrq --name testbucket | ||
+ | |||
+ | ###Upload file | ||
+ | oci os object put -ns frsg5o7pykju -bn testbucket --name test.txt --file / | ||
+ | |||
+ | |||
+ | ###List instance based on compartment | ||
+ | oci compute instance list -c ocid1.compartment.oc1..aaaaaaaawmkoyiqsxkalddfg3xxapwk22yovanosn766hjr2xwhk7td7zusa --lifecycle-state RUNNING | jq -r ' | ||
+ | </ |