Beispiel #1
0
 /// <summary>
 /// Register a Root CA Register a root CA as a secret.
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="body"> (optional)</param>
 /// <returns>SecretResponse</returns>
 public SecretResponse RegisterRoot(RootCASecret body = default(RootCASecret))
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <SecretResponse> localVarResponse = RegisterRootWithHttpInfo(body);
     return(localVarResponse.Data);
 }
Beispiel #2
0
        /// <summary>
        /// Register a Root CA Register a root CA as a secret.
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body"> (optional)</param>
        /// <returns>Task of SecretResponse</returns>
        public async System.Threading.Tasks.Task <SecretResponse> RegisterRootAsync(RootCASecret body = default(RootCASecret))
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <SecretResponse> localVarResponse = await RegisterRootAsyncWithHttpInfo(body);

            return(localVarResponse.Data);
        }
Beispiel #3
0
 /// <summary>
 /// Get background task status Get background task status by task uuid
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="id">Task status uuid</param>
 /// <returns>TaskState</returns>
 public TaskState GetTaskStatus(string id)
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <TaskState> localVarResponse = GetTaskStatusWithHttpInfo(id);
     return(localVarResponse.Data);
 }
Beispiel #4
0
        /// <summary>
        /// Get background task status Get background task status by task uuid
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="id">Task status uuid</param>
        /// <returns>Task of TaskState</returns>
        public async System.Threading.Tasks.Task <TaskState> GetTaskStatusAsync(string id)
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <TaskState> localVarResponse = await GetTaskStatusAsyncWithHttpInfo(id);

            return(localVarResponse.Data);
        }
Beispiel #5
0
 /// <summary>
 /// Search for Client Credentials Search for one or more client credentials associated with a particular role.
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="role">Role name associated with client credentials</param>
 /// <param name="limit">The maximum number of results per cursor (optional)</param>
 /// <param name="cursor">Cursor to next batch of results (optional)</param>
 /// <returns>ClientSearchModel</returns>
 public ClientSearchModel SearchClients(string role, long?limit = default(long?), string cursor = default(string))
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <ClientSearchModel> localVarResponse = SearchClientsWithHttpInfo(role, limit, cursor);
     return(localVarResponse.Data);
 }
Beispiel #6
0
        /// <summary>
        /// Get Config By Version Get zero or more representations of config specified by version number.
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="version">Versions to return</param>
        /// <returns>Task of ConfigVersionResponse</returns>
        public async System.Threading.Tasks.Task <ConfigVersionResponse> GetConfigByVersionAsync(long version)
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <ConfigVersionResponse> localVarResponse = await GetConfigByVersionAsyncWithHttpInfo(version);

            return(localVarResponse.Data);
        }
Beispiel #7
0
 /// <summary>
 /// Get Usage Get usage statistics for API calls and total number of secrets
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="startDate">Start date to get usage statistics</param>
 /// <param name="endDate">End date to get usage statistics, defaults to current date if not set (optional)</param>
 /// <returns>UsageResponseGeneral</returns>
 public UsageResponseGeneral GetUsage(string startDate, string endDate = default(string))
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <UsageResponseGeneral> localVarResponse = GetUsageWithHttpInfo(startDate, endDate);
     return(localVarResponse.Data);
 }
Beispiel #8
0
 /// <summary>
 /// Create a Client Credential Request a new client credential for a role and get back the client id and secret key.
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>ClientCredentialsResponse</returns>
 public ClientCredentialsResponse CreateClientCredential()
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <ClientCredentialsResponse> localVarResponse = CreateClientCredentialWithHttpInfo();
     return(localVarResponse.Data);
 }
Beispiel #9
0
        /// <summary>
        /// Find Audit Records Find audit records based on search critera.
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="principal">Security principal name (optional)</param>
        /// <param name="startDate">The start date to find audits from (optional)</param>
        /// <param name="endDate">The end date to find audits to (optional)</param>
        /// <param name="action">The audit action (optional)</param>
        /// <param name="path">The secret path (optional)</param>
        /// <param name="cursor">The cursor for pagination (optional)</param>
        /// <param name="limit">The number of results to return (optional)</param>
        /// <returns>Task of LogSearchResponse</returns>
        public async System.Threading.Tasks.Task <LogSearchResponse> FindAuditAsync(string principal = default(string), DateTime?startDate = default(DateTime?), DateTime?endDate = default(DateTime?), string action = default(string), string path = default(string), string cursor = default(string), long?limit = default(long?))
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <LogSearchResponse> localVarResponse = await FindAuditAsyncWithHttpInfo(principal, startDate, endDate, action, path, cursor, limit);

            return(localVarResponse.Data);
        }
Beispiel #10
0
        /// <summary>
        /// Authenticate Submit parameters to get a new access token for use on protected endpoints
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="grantType"></param>
        /// <param name="username">Username for password grant type (optional)</param>
        /// <param name="password">Password for password grant type (optional)</param>
        /// <param name="provider">Provider name for password grant flow for Thycotic One authentication (optional)</param>
        /// <param name="awsBody">Base64 encoded signed aws request body for aws_iam grant type (optional)</param>
        /// <param name="awsHeaders">Base64 encoded signed aws request headers for aws_iam grant type (optional)</param>
        /// <param name="jwt">JWT token for azure and gcp grant types (optional)</param>
        /// <param name="clientId">Client id for client_credentials grant type (optional)</param>
        /// <param name="clientSecret">Client secret for client_credentials grant type (optional)</param>
        /// <param name="refreshToken">Previously issued refresh token for the refresh_token grant type (optional)</param>
        /// <returns>Task of AccessTokenResponse</returns>
        public async System.Threading.Tasks.Task <AccessTokenResponse> TokenAsync(string grantType, string username = default(string), string password = default(string), string provider = default(string), string awsBody = default(string), string awsHeaders = default(string), string jwt = default(string), string clientId = default(string), string clientSecret = default(string), string refreshToken = default(string))
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <AccessTokenResponse> localVarResponse = await TokenAsyncWithHttpInfo(grantType, username, password, provider, awsBody, awsHeaders, jwt, clientId, clientSecret, refreshToken);

            return(localVarResponse.Data);
        }
Beispiel #11
0
 /// <summary>
 /// Find Audit Records Find audit records based on search critera.
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="principal">Security principal name (optional)</param>
 /// <param name="startDate">The start date to find audits from (optional)</param>
 /// <param name="endDate">The end date to find audits to (optional)</param>
 /// <param name="action">The audit action (optional)</param>
 /// <param name="path">The secret path (optional)</param>
 /// <param name="cursor">The cursor for pagination (optional)</param>
 /// <param name="limit">The number of results to return (optional)</param>
 /// <returns>LogSearchResponse</returns>
 public LogSearchResponse FindAudit(string principal = default(string), DateTime?startDate = default(DateTime?), DateTime?endDate = default(DateTime?), string action = default(string), string path = default(string), string cursor = default(string), long?limit = default(long?))
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <LogSearchResponse> localVarResponse = FindAuditWithHttpInfo(principal, startDate, endDate, action, path, cursor, limit);
     return(localVarResponse.Data);
 }
Beispiel #12
0
        /// <summary>
        /// Create Config Create or update config.
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of ConfigResponse</returns>
        public async System.Threading.Tasks.Task <ConfigResponse> PostConfigAsync()
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <ConfigResponse> localVarResponse = await PostConfigAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
Beispiel #13
0
 /// <summary>
 /// Create Config Create or update config.
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>ConfigResponse</returns>
 public ConfigResponse PostConfig()
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <ConfigResponse> localVarResponse = PostConfigWithHttpInfo();
     return(localVarResponse.Data);
 }
Beispiel #14
0
 /// <summary>
 /// Create a signed certificate Create and return a signed certificate based on a registered root CA.
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="body"> (optional)</param>
 /// <returns>ResponseCertificate</returns>
 public ResponseCertificate SignCertificate(SigningRequest body = default(SigningRequest))
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <ResponseCertificate> localVarResponse = SignCertificateWithHttpInfo(body);
     return(localVarResponse.Data);
 }
Beispiel #15
0
        /// <summary>
        /// Get Usage Get usage statistics for API calls and total number of secrets
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="startDate">Start date to get usage statistics</param>
        /// <param name="endDate">End date to get usage statistics, defaults to current date if not set (optional)</param>
        /// <returns>Task of UsageResponseGeneral</returns>
        public async System.Threading.Tasks.Task <UsageResponseGeneral> GetUsageAsync(string startDate, string endDate = default(string))
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <UsageResponseGeneral> localVarResponse = await GetUsageAsyncWithHttpInfo(startDate, endDate);

            return(localVarResponse.Data);
        }
Beispiel #16
0
        /// <summary>
        /// Create a signed certificate Create and return a signed certificate based on a registered root CA.
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="body"> (optional)</param>
        /// <returns>Task of ResponseCertificate</returns>
        public async System.Threading.Tasks.Task <ResponseCertificate> SignCertificateAsync(SigningRequest body = default(SigningRequest))
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <ResponseCertificate> localVarResponse = await SignCertificateAsyncWithHttpInfo(body);

            return(localVarResponse.Data);
        }
Beispiel #17
0
 /// <summary>
 /// Find System Log Records Find system log records based on search critera.
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <returns>LogSearchResponse</returns>
 public LogSearchResponse FindSystemLog()
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <LogSearchResponse> localVarResponse = FindSystemLogWithHttpInfo();
     return(localVarResponse.Data);
 }
Beispiel #18
0
        /// <summary>
        /// Create a Client Credential Request a new client credential for a role and get back the client id and secret key.
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of ClientCredentialsResponse</returns>
        public async System.Threading.Tasks.Task <ClientCredentialsResponse> CreateClientCredentialAsync()
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <ClientCredentialsResponse> localVarResponse = await CreateClientCredentialAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
Beispiel #19
0
        /// <summary>
        /// Find System Log Records Find system log records based on search critera.
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <returns>Task of LogSearchResponse</returns>
        public async System.Threading.Tasks.Task <LogSearchResponse> FindSystemLogAsync()
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <LogSearchResponse> localVarResponse = await FindSystemLogAsyncWithHttpInfo();

            return(localVarResponse.Data);
        }
Beispiel #20
0
        /// <summary>
        /// Search for Client Credentials Search for one or more client credentials associated with a particular role.
        /// </summary>
        /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
        /// <param name="role">Role name associated with client credentials</param>
        /// <param name="limit">The maximum number of results per cursor (optional)</param>
        /// <param name="cursor">Cursor to next batch of results (optional)</param>
        /// <returns>Task of ClientSearchModel</returns>
        public async System.Threading.Tasks.Task <ClientSearchModel> SearchClientsAsync(string role, long?limit = default(long?), string cursor = default(string))
        {
            DevOpsVault.SDK.Core.Client.ApiResponse <ClientSearchModel> localVarResponse = await SearchClientsAsyncWithHttpInfo(role, limit, cursor);

            return(localVarResponse.Data);
        }
Beispiel #21
0
 /// <summary>
 /// Get Config By Version Get zero or more representations of config specified by version number.
 /// </summary>
 /// <exception cref="DevOpsVault.SDK.Core.Client.ApiException">Thrown when fails to make API call</exception>
 /// <param name="version">Versions to return</param>
 /// <returns>ConfigVersionResponse</returns>
 public ConfigVersionResponse GetConfigByVersion(long version)
 {
     DevOpsVault.SDK.Core.Client.ApiResponse <ConfigVersionResponse> localVarResponse = GetConfigByVersionWithHttpInfo(version);
     return(localVarResponse.Data);
 }