Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
oci_configuration [2022/02/06 23:13] – created andonovjoci_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:
  
 +<Code:bast|List all instances in your compartment>
 +(poce_env) julien.andonov@julienandonovs-MacBook-Pro .oci % oci iam compartment list --compartment-id ocid1.tenancy.oc1..aaaaaaaa5ywubcssitfupa2xmwpwng2zms4dt52cw7gsbymr3nxesbkgdgrq
  
 +</Code>
  
 +There are other commands which you can use as well:
 +
 +<Code:bash|OCI interface>
 +###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 /Users/julien.andonov/Work/POCE/oci-ansible-collection/samples/compute/launch_compute_instance/test.txt
 +
 +
 +###List instance based on compartment
 +oci compute instance list -c ocid1.compartment.oc1..aaaaaaaawmkoyiqsxkalddfg3xxapwk22yovanosn766hjr2xwhk7td7zusa --lifecycle-state RUNNING | jq -r '.data[]."id"'
 +</Code>
  • oci_configuration.1644189224.txt.gz
  • Last modified: 2022/02/06 23:13
  • by andonovj