Skip to content

Commit 135df33

Browse files
committed
fixed formatting for core_instance
1 parent 64ba2d4 commit 135df33

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

website/docs/r/core_instance.html.markdown

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,11 +216,19 @@ The following arguments are supported:
216216

217217
**Metadata Example**
218218

219-
"metadata" : { "quake_bot_level" : "Severe", "ssh_authorized_keys" : "ssh-rsa <your_public_SSH_key>== rsa-key-20160227", "user_data" : "<your_public_SSH_key>==" } **Getting Metadata on the Instance**
219+
```
220+
"metadata" : { "quake_bot_level" : "Severe", "ssh_authorized_keys" : "ssh-rsa <your_public_SSH_key>== rsa-key-20160227", "user_data" : "<your_public_SSH_key>==" }
221+
```
222+
223+
**Getting Metadata on the Instance**
220224

221225
To get information about your instance, connect to the instance using SSH and issue any of the following GET requests:
222226

223-
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/ curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/ curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/<any-key-name>
227+
```
228+
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/
229+
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/
230+
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/<any-key-name>
231+
```
224232

225233
You'll get back a response that includes all the instance information; only the metadata information; or the metadata information for the specified key name, respectively.
226234

0 commit comments

Comments
 (0)