# Apigee API . organizations . environments . keystores

## Instance Methods

Returns the aliases Resource.

Close httplib2 connections.

Creates a keystore or truststore. - Keystore: Contains certificates and their associated keys. - Truststore: Contains trusted certificates used to validate a server's certificate. These certificates are typically self-signed certificates or certificates that are not signed by a trusted CA.

Deletes a keystore or truststore.

Gets a keystore or truststore.

### Method Details

`close()`

    Close httplib2 connections.

`create(parent, body=None, name=None, x__xgafv=None)`

    Creates a keystore or truststore. - Keystore: Contains certificates and their associated keys. - Truststore: Contains trusted certificates used to validate a server's certificate. These certificates are typically self-signed certificates or certificates that are not signed by a trusted CA.

    Args:
      parent: string, Required. Name of the environment in which to create the keystore. Use the following format in your request: `organizations/{org}/environments/{env}` (required)
      body: object, The request body.
        The object takes the form of:

    { # Datastore for Certificates and Aliases.
      "aliases": [ # Output only. Aliases in this keystore.
        "A String",
      ],
      "name": "A String", # Required. Resource ID for this keystore. Values must match the regular expression `[\w[:space:].-]{1,255}`.
    }

      name: string, Optional. Name of the keystore. Overrides the value in Keystore.
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Datastore for Certificates and Aliases.
      "aliases": [ # Output only. Aliases in this keystore.
        "A String",
      ],
      "name": "A String", # Required. Resource ID for this keystore. Values must match the regular expression `[\w[:space:].-]{1,255}`.
    }

`delete(name, x__xgafv=None)`

    Deletes a keystore or truststore.

    Args:
      name: string, Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}` (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Datastore for Certificates and Aliases.
      "aliases": [ # Output only. Aliases in this keystore.
        "A String",
      ],
      "name": "A String", # Required. Resource ID for this keystore. Values must match the regular expression `[\w[:space:].-]{1,255}`.
    }

`get(name, x__xgafv=None)`

    Gets a keystore or truststore.

    Args:
      name: string, Required. Name of the keystore. Use the following format in your request: `organizations/{org}/environments/{env}/keystores/{keystore}`. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Datastore for Certificates and Aliases.
      "aliases": [ # Output only. Aliases in this keystore.
        "A String",
      ],
      "name": "A String", # Required. Resource ID for this keystore. Values must match the regular expression `[\w[:space:].-]{1,255}`.
    }