{"id":18245790,"url":"https://github.com/baskaran-md/gcp-metadata","last_synced_at":"2025-04-04T14:31:06.685Z","repository":{"id":147824143,"uuid":"126642105","full_name":"baskaran-md/gcp-metadata","owner":"baskaran-md","description":"Script for getting the gcp instance informations","archived":false,"fork":false,"pushed_at":"2018-03-24T21:59:40.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T14:40:14.893Z","etag":null,"topics":["cli","gcp","gcp-cloud","gcp-metadata","gcp-tools"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/baskaran-md.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-24T21:34:08.000Z","updated_at":"2021-11-10T13:38:07.000Z","dependencies_parsed_at":"2023-05-27T15:15:14.664Z","dependency_job_id":null,"html_url":"https://github.com/baskaran-md/gcp-metadata","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskaran-md%2Fgcp-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskaran-md%2Fgcp-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskaran-md%2Fgcp-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/baskaran-md%2Fgcp-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/baskaran-md","download_url":"https://codeload.github.com/baskaran-md/gcp-metadata/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247193941,"owners_count":20899399,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","gcp","gcp-cloud","gcp-metadata","gcp-tools"],"created_at":"2024-11-05T09:22:55.103Z","updated_at":"2025-04-04T14:31:06.679Z","avatar_url":"https://github.com/baskaran-md.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gcp-metadata\n\nScript for getting the gcp instance informations. \nIt is very similar to aws-metadata (https://aws.amazon.com/code/ec2-instance-metadata-query-tool/)\n\nFor more information on Google Cloud meta-data, refer to the documentation at\nhttps://cloud.google.com/compute/docs/storing-retrieving-metadata\n\n## Prerequisites\n1. Linux Environment running on GCP\n2. curl package\n\n## Usage\n```\n    gcp-metadata v1.0.0\n\n    Use to retrieve GCP instance metadata from within a running GCP instance.\n    e.g. to get instance id: 'gcp-metadata -i'\n\t\t to get instance type: 'gcp-metadata -t'\n\t\t to get help: 'gcp-metadata --help'\n\n    For more information on Google Cloud meta-data, refer to the documentation at\n    https://cloud.google.com/compute/docs/storing-retrieving-metadata\n\n    Usage: gcp-metadata \u003coption\u003e\n\n    Options:\n    --h/--help                  Show help on the command\n    --all                       Show all metadata information\n    -p/--project-id             The Project, the instance belongs to.\n    -a/--image                  Image of the instance (Currently not available)\n    -n/--instance-name          Name of the instance as it appears on the GCP Console\n    -i/--instance-id            Numeric instance-id of the instance\n    -t/--instance-type          The type of instance. Details @ https://cloud.google.com/compute/docs/machine-types\n    -h/--local-hostname         The local hostname of the instance.\n    -o/--local-ipv4             Private IP of the instance\n    -v/--public-ipv4            NATted Public IP of the instance\n    -m/--mac                    MAC Id of the instance\n    -z/--availability-zone      The availability zone in which the instance is launched.\n    -e/--description            Description of the instance\n    -d/--disks                  All the disks attached to the instance\n    -s/--service-account        IAM Profile / Service Account attached to the instance\n    -l/--instance-template      Instance template used to launch the instance\n    -c/--created-by             Source that created the instance, like instance group\n    -g/--tags                   Tags associated to the instance\n    -u/--user-data              User-supplied data. Available only if it is supplied at instance launch time.\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaskaran-md%2Fgcp-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaskaran-md%2Fgcp-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaskaran-md%2Fgcp-metadata/lists"}