0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

curlでのメタデータ確認

Last updated at Posted at 2019-07-16

curlでのメタデータ確認

2019/07/15 時点
Computeインスタンスから取得できる情報

$ curl -L http://169.254.169.254/opc/v1/instance/
{
"availabilityDomain" : "",
"faultDomain" : "
",
"compartmentId" : "",
"displayName" : "
",
"id" : "",
"image" : "
",
"metadata" : {
"ssh_authorized_keys" : "",
"user_data" : "
"
},
"region" : "",
"canonicalRegionName" : "
",
"shape" : "",
"state" : "
",
"timeCreated" : ****,
"agentConfig" : {
"monitoringDisabled" : false
}
}

Public IPが確認出来ないのは残念

あと残念な点として、URIを忘れた際に、途中まで入力しても403になってしまう点
AWSのEC2なら、選択できる先のpathも表示されていて便利だった。

$ curl -L http://169.254.169.254/opc/v1/
<html>
<head><title>403 Forbidden</title></head>
<body bgcolor="white">
<center><h1>403 Forbidden</h1></center>
</body>
</html>
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?