https://rancher.com/ logo
#fleet
Title
b

bland-area-30120

04/29/2022, 12:55 PM
I'm trying to automate pausing and un-pausing repos with the api. Anyone know if that's possible? The only documentation I've been able to find for the api is the rancher v3 api but when I look up repos in fleet they're on v1 ie. /v1/fleet.cattle.io.gitrepos
p

prehistoric-barista-70029

04/29/2022, 2:26 PM
just do a PUT on
v1/fleet.cattle.io.gitrepos/<fleet workspace>/<gitrepo name>
and set
paused: true
in the spec.
FYI you can do F12 in your browser, change to the network tab and then do the pause in the UI to see what call it does 🙂
b

bland-area-30120

04/29/2022, 2:46 PM
Thanks so much!
f

full-painter-23916

04/30/2022, 7:15 AM
They are standard k8s custom resources; use the regular k8s API to manipulate them. /v1 is an internal implementation detail to support the UI, not documented and not guaranteed to stay the same between any 2 versions.
9 Views