Skip to content

Commit f7fce0f

Browse files
committed
client sync
1 parent 3ee1e6b commit f7fce0f

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

src/main/python/fusionauth/fusionauth_client.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3067,6 +3067,36 @@ def retrieve_system_configuration(self):
30673067
.get() \
30683068
.go()
30693069

3070+
def retrieve_system_health(self):
3071+
"""
3072+
Retrieves the FusionAuth system health. This API will return 200 if the system is healthy, and 500 if the system is un-healthy.
3073+
3074+
Attributes:
3075+
"""
3076+
return self.start_anonymous().uri('/api/health') \
3077+
.get() \
3078+
.go()
3079+
3080+
def retrieve_system_status(self):
3081+
"""
3082+
Retrieves the FusionAuth system status. This request is anonymous and does not require an API key. When an API key is not provided the response will contain a single value in the JSON response indicating the current health check.
3083+
3084+
Attributes:
3085+
"""
3086+
return self.start_anonymous().uri('/api/status') \
3087+
.get() \
3088+
.go()
3089+
3090+
def retrieve_system_status_using_api_key(self):
3091+
"""
3092+
Retrieves the FusionAuth system status using an API key. Using an API key will cause the response to include the product version, health checks and various runtime metrics.
3093+
3094+
Attributes:
3095+
"""
3096+
return self.start().uri('/api/status') \
3097+
.get() \
3098+
.go()
3099+
30703100
def retrieve_tenant(self, tenant_id):
30713101
"""
30723102
Retrieves the tenant for the given Id.

0 commit comments

Comments
 (0)