Exporting cloud asset inventory issues
BachateroJ opened this issue · comments
Hey
Im trying to run gcpviz on my environment, got an error while running:
asf-VirtualBox:~$ go version
go version go1.22.1 linux/amd64
export ORGANIZATION_ID=bachaterorg
export CAI_BUCKET_NAME=gcpmapping
gcloud asset export
--content-type resource
--organization $ORGANIZATION_ID
--output-path "gs://$CAI_BUCKET_NAME/resource_inventory.json"
after i run the last command, i get the following error:
-VirtualBox:~$ gcloud asset export --content-type resource --organization $ORGANIZATION_ID --output-path "gs://$CAI_BUCKET_NAME/resource_inventory.json"
ERROR: (gcloud.asset.export) code: 400
details:
- '@type': type.googleapis.com/google.rpc.BadRequest
fieldViolations:- description: Invalid parent in request.
field: parent
- description: Invalid parent in request.
- '@type': type.googleapis.com/google.rpc.Help
links:- description: 'To check permissions required for this RPC:'
url: https://cloud.google.com/asset-inventory/docs/access-control#required_permissions - description: 'To get a valid organization id:'
url: https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id - description: 'To get a valid folder or project id:'
url: https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects
message: Invalid parent in request.
status: INVALID_ARGUMENT
- description: 'To check permissions required for this RPC:'
I have already checked and i have the necessary permissions to perform the required actions