Skip to content

addK8sProtectionSet

Add a Kubernetes protection set Supported in v9.1+ Adds a Kubernetes protection set to the Rubrik cluster.

Arguments

Argument Type Description
input (required) AddK8sProtectionSetInput! Input for V1AddK8sProtectionSet.

Returns

K8sProtectionSetSummary!

Sample

mutation AddK8sProtectionSet($input: AddK8sProtectionSetInput!) {
  addK8sProtectionSet(input: $input) {
    definition
    hookConfigs
    id
    kubernetesClusterUuid
    kubernetesNamespace
    name
    rsType
  }
}
{
  "input": {
    "config": {
      "definition": "example-string",
      "kubernetesClusterId": "example-string",
      "name": "example-string",
      "rsType": "example-string"
    }
  }
}
{
  "data": {
    "addK8sProtectionSet": {
      "definition": "example-string",
      "hookConfigs": [
        "example-string"
      ],
      "id": "example-string",
      "kubernetesClusterUuid": "example-string",
      "kubernetesNamespace": "example-string",
      "name": "example-string"
    }
  }
}