Skip to content

Commit b94fd75

Browse files
Merge pull request #1079 from krastin/fix-coreinstance
fixed formatting for core_instance
2 parents c18399e + 135df33 commit b94fd75

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
@@ -224,11 +224,19 @@ The following arguments are supported:
224224

225225
**Metadata Example**
226226

227-
"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**
227+
```
228+
"metadata" : { "quake_bot_level" : "Severe", "ssh_authorized_keys" : "ssh-rsa <your_public_SSH_key>== rsa-key-20160227", "user_data" : "<your_public_SSH_key>==" }
229+
```
230+
231+
**Getting Metadata on the Instance**
228232

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

231-
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>
235+
```
236+
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/
237+
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/
238+
curl -H "Authorization: Bearer Oracle" http://169.254.169.254/opc/v2/instance/metadata/<any-key-name>
239+
```
232240

233241
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.
234242

0 commit comments

Comments
 (0)