#Catalog import
7 messages · Page 1 of 1 (latest)
backstage/plugins/catalog-backend/src/schema/openapi.yaml
I grabbed the YAML from the Backstage source and then tweaked it back to the 2.x version that Swagger editor / viewer could display in the site.
Looks like you can do a post to the locations endpoint and based on the response looks like it'd return back the entities it was able to view / import.
Not 100% on this as I haven't tried it personally, but looks like something to explore.
The default local host version of backstage is configured to launch at the following endpoint:
http://localhost:7007/api/catalog
So the endpoint would be /api/catalog/locations.
Oh, please note if you get any issues with the import you'll want to verify the default permissions for the catalog so that you're enabled to import the specific "kind" of entities from the remote location you want to import. ex. Domain, System, Group, User, Location, Component, API, Resource, or ... whatever else.
Thanks @steady mortar I will try this
I believe the "dry run" is what the catalog import uses to preview what would be imported. Running without should do a real import. Assuming everything was valid and permissions / allowed type creation was setup.
yep but that can only point to URLs that get pulled