When creating an alarm query in Oracle Cloud Infrastructure (OCI) Monitoring, which of the following statement is NOT valid?
Task 1: Create a Bucket in Object Storage
Create a bucket named CloudOpsBucket_<user id> with the following properties:
Storage tier: Standard
Auto-tiering: Disabled
Object versioning: Enabled
Emit events: Disabled
Keys: Oracle-managed
Visibility: Private
Task 2: Upload a Directory's Contents to Object Storage
Upload the contents of the directory ~/dir_to_upload and its subdirectories to the bucket CloudOpsBucket
Task 3: Add a Lifecycle Policy to the Bucket
Create a lifecycle policy rule that deletes all files from ~/dir_to_upload/temp after 30 days
Task 1:Create a bucket in Object Storage
1. Open Cloud Shell in the console. UnderNetworkalong the top, selectEphemeral Private Network Setup.
2. Select the subnet of the compute instance.
3. SSH into the compute instance using the provided SSH key:
ssh -i /path/to/key opc@
4. In the compute instance, create the bucket with the following command (note that it's one long line):
oci os bucket create -c '<compartment_id>' --name 'CloudOpsBucket' --auth instance_principal --versioning 'Enabled'
Task 2:Upload a directory's contents to Object Storage
1. Upload the contents of the specified directory and subdirectories with the following command (note that it's one long line):
oci os object bulk-upload -bn 'CloudOpsBucket' --src-dir '~/dir_to_upload' --auth instance_principal
Task 3:Add a lifecycle policy to the bucket
1. Create a file named rule.json
2. Add the following content to rule.json:
{'items': [{'action': 'DELETE','is-enabled': true,'name': 'Delete-Rule','object-name-filter': {'exclusion-patterns': null,'inclusion-patterns': null,'inclusion-prefixes': ['temp/']},'target': 'objects','time-amount': 30,'time-unit': 'DAYS'}]}
3. Add the lifecycle policy rule with the following command:
oci os object-lifecycle-policy put -bn 'CloudOpsBucket' --from-json file://rule.json ---auth instance_principal
Top of Form
Lezlie
9 months agoRolande
9 months agoMa
8 months agoRozella
9 months agoHana
9 months agoMa
10 months agoRodney
10 months agoMelodie
10 months agoNaomi
10 months agoShannan
10 months agoAilene
8 months agoMarguerita
9 months agoJeanice
9 months agoNidia
9 months agoAnabel
9 months agoBelen
9 months agoMa
10 months ago