# Variable SecretApi`Const`

SecretApi: {
_defaultBasePath: undefined;
kubesubmitV4GenericSecretsCreate: (
body: BckndGenericSecretPostBody,
headerParameters?: {
"AI-Resource-Group"?: string;
"AI-Tenant-Scope"?: boolean;
Authorization?: string;
},
) => OpenApiRequestBuilder<BckndGenericSecretDataResponse>;
kubesubmitV4GenericSecretsDelete: (
secretName: string,
headerParameters?: {
"AI-Resource-Group"?: string;
"AI-Tenant-Scope"?: boolean;
Authorization?: string;
},
) => OpenApiRequestBuilder<any>;
kubesubmitV4GenericSecretsGet: (
secretName: string,
headerParameters?: {
"AI-Resource-Group"?: string;
"AI-Tenant-Scope"?: boolean;
Authorization?: string;
},
) => OpenApiRequestBuilder<BckndGenericSecretDetails>;
kubesubmitV4GenericSecretsGetAll: (
queryParameters?: { $count?: boolean; $skip?: number; $top?: number },
headerParameters?: {
"AI-Resource-Group"?: string;
"AI-Tenant-Scope"?: boolean;
Authorization?: string;
},
) => OpenApiRequestBuilder<BckndListGenericSecretsResponse>;
kubesubmitV4GenericSecretsUpdate: (
secretName: string,
body: BckndGenericSecretPatchBody,
headerParameters?: {
"AI-Resource-Group"?: string;
"AI-Tenant-Scope"?: boolean;
Authorization?: string;
},
) => OpenApiRequestBuilder<BckndGenericSecretDataResponse>;
}

Representation of the 'SecretApi'. This API is part of the 'AI_CORE_API' service.

#### Type Declaration

- ##### _defaultBasePath: undefined

- ##### kubesubmitV4GenericSecretsCreate: (
  body: BckndGenericSecretPostBody,
  headerParameters?: {
  "AI-Resource-Group"?: string;
  "AI-Tenant-Scope"?: boolean;
  Authorization?: string;
  },
  ) => OpenApiRequestBuilder<BckndGenericSecretDataResponse>

  Create a new generic secret in the corresponding resource group or at main tenant level.

- ##### kubesubmitV4GenericSecretsDelete: (
  secretName: string,
  headerParameters?: {
  "AI-Resource-Group"?: string;
  "AI-Tenant-Scope"?: boolean;
  Authorization?: string;
  },
  ) => OpenApiRequestBuilder<any>

  Deletes the secret from provided resource group namespace

- ##### kubesubmitV4GenericSecretsGet: (
  secretName: string,
  headerParameters?: {
  "AI-Resource-Group"?: string;
  "AI-Tenant-Scope"?: boolean;
  Authorization?: string;
  },
  ) => OpenApiRequestBuilder<BckndGenericSecretDetails>

  Retrieve a single generic secret. This retrieves metadata only, not the secret data itself.

- ##### kubesubmitV4GenericSecretsGetAll: (
  queryParameters?: { $count?: boolean; $skip?: number; $top?: number },
  headerParameters?: {
  "AI-Resource-Group"?: string;
  "AI-Tenant-Scope"?: boolean;
  Authorization?: string;
  },
  ) => OpenApiRequestBuilder<BckndListGenericSecretsResponse>

  Lists all secrets corresponding to tenant. This retrieves metadata only, not the secret data itself.

- ##### kubesubmitV4GenericSecretsUpdate: (
  secretName: string,
  body: BckndGenericSecretPatchBody,
  headerParameters?: {
  "AI-Resource-Group"?: string;
  "AI-Tenant-Scope"?: boolean;
  Authorization?: string;
  },
  ) => OpenApiRequestBuilder<BckndGenericSecretDataResponse>

  Update secret credentials. Replace secret data with the provided data.

  Copyright Ⓒ 2026 SAP SE or an SAP affiliate company. All rights reserved.

- Defined in packages/ai-api/dist/client/AI_CORE_API/secret-api.d.ts:7