Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 733 Bytes

namespace-contacts.md

File metadata and controls

25 lines (17 loc) · 733 Bytes

Namespace Contacts

Warning: As of v1.88.0, the setNamespaceAttributes and getNamespaceAttributesAPI endpoints are now deprecated. This page should not be consulted.

Use the following API to set a namespace owner, contact info and enable/disable email alerts. This API is available at:

http://<kubecost-address>/api/setNamespaceAttributes

Here's an example address:

http://localhost:9090/api/setNamespaceAttributes

You should pass a POST variable in this format:

namespaces: {
  kubecost: {
    ownerLabel: "Ajay Tripathy", 
    email: "[email protected]", 
    sendAlert: "true"
  }
}

Expected response: this API should return a 200 response code with JSON string representation of the object passed.