{
  "opencollection": "1.0.0",
  "info": {
    "name": "OpenStorage SDK OpenStorageAlerts OpenStorageCredentials API",
    "version": "0.186.0"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "OpenStorageCredentials",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Enumerate returns a list of credential ids",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/credentials"
          },
          "docs": "Enumerate returns a list of credential ids"
        },
        {
          "info": {
            "name": "Create is used to submit cloud credentials. It will return an\nid of the credentials once they are verified to work.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/credentials",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "##### Example\n{% codetabs name=\"Golang\", type=\"go\" -%}\nid, err := client.Create(context.Background(), &api.SdkCredentialCreateRequest{\n    Name: \"awscred\",\n    UseProxy: false,\n    CredentialType: &api.SdkCredentialCreateRequest_AwsCredential{\n      AwsCredential: &api.SdkAwsCredentialRequest{\n      AccessKey: \"dummy-access\",\n      SecretKey: \"dummy-secret\",\n      Endpoint:  \"dummy-endpoint\",\n      Region:    \"dummy-region\",\n    },\n  },\n})\n{%- language name=\"Python\", type=\"py\" -%}\nen_resp = clie"
        },
        {
          "info": {
            "name": "Inspect returns the information about a credential, but does not return the secret key.",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/credentials/inspect/:credential_id",
            "params": [
              {
                "name": "credential_id",
                "value": "",
                "type": "path",
                "description": "Id of the credential"
              }
            ]
          },
          "docs": "Inspect returns the information about a credential, but does not return the secret key."
        },
        {
          "info": {
            "name": "DeleteReferences is used to remove references to credentials",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v1/credentials/references/:credential_id",
            "params": [
              {
                "name": "credential_id",
                "value": "",
                "type": "path",
                "description": "Id of the credentials"
              }
            ]
          },
          "docs": "DeleteReferences is used to remove references to credentials"
        },
        {
          "info": {
            "name": "Validate is used to validate credentials",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/credentials/validate/:credential_id",
            "params": [
              {
                "name": "credential_id",
                "value": "",
                "type": "path",
                "description": "Id of the credentials"
              }
            ]
          },
          "docs": "Validate is used to validate credentials"
        },
        {
          "info": {
            "name": "input is very same as credential create",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/v1/credentials/:credential_id",
            "params": [
              {
                "name": "credential_id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "input is very same as credential create"
        },
        {
          "info": {
            "name": "Delete a specified credential",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v1/credentials/:credential_id",
            "params": [
              {
                "name": "credential_id",
                "value": "",
                "type": "path",
                "description": "Id for credentials"
              }
            ]
          },
          "docs": "Delete a specified credential"
        }
      ]
    }
  ],
  "bundled": true
}