swagger: '2.0' info: version: 2020-08-01-preview title: Microsoft Azure AccessControlClient AccessConnector Certificate API schemes: - https tags: - name: Certificate paths: ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates : get: tags: - Certificate operationId: microsoftAzureCertificateListbybatchaccount description: Lists all of the certificates in the specified account. x-ms-examples: ListCertificates: $ref: ./examples/CertificateList.json ListCertificates - Filter and Select: $ref: ./examples/CertificateListWithFilter.json parameters: - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/AccountNameParameter' - name: maxresults in: query required: false type: integer format: int32 description: The maximum number of items to return in the response. - name: $select in: query required: false type: string description: Comma separated list of properties that should be returned. e.g. "properties/provisioningState". Only top level properties under properties/ are valid for selection. - name: $filter in: query required: false type: string description: OData filter expression. Valid properties for filtering are "properties/provisioningState", "properties/provisioningStateTransitionTime", "name". - $ref: '#/parameters/ApiVersionParameter' - $ref: '#/parameters/SubscriptionIdParameter' responses: '200': description: The operation was successful. The response contains a list of certificates associated with the account. schema: $ref: '#/definitions/ListCertificatesResult' default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/CloudError' x-ms-pageable: nextLinkName: nextLink summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Batch Batchaccounts Accountname Certificates ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName} : put: tags: - Certificate operationId: microsoftAzureCertificateCreate description: Creates a new certificate inside the specified account. x-ms-examples: CreateCertificate - Minimal Pfx: $ref: ./examples/CertificateCreate_Minimal.json CreateCertificate - Minimal Cer: $ref: ./examples/CertificateCreate_MinimalCer.json CreateCertificate - Full: $ref: ./examples/CertificateCreate_Full.json parameters: - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/AccountNameParameter' - $ref: '#/parameters/CertificateNameParameter' - name: parameters in: body required: true schema: $ref: '#/definitions/CertificateCreateOrUpdateParameters' description: Additional parameters for certificate creation. - name: If-Match in: header required: false type: string description: The entity state (ETag) version of the certificate to update. A value of "*" can be used to apply the operation only if the certificate already exists. If omitted, this operation will always be applied. - name: If-None-Match in: header required: false type: string description: Set to '*' to allow a new certificate to be created, but to prevent updating an existing certificate. Other values will be ignored. - $ref: '#/parameters/ApiVersionParameter' - $ref: '#/parameters/SubscriptionIdParameter' responses: '200': description: The operation was successful. The response contains the certificate entity. schema: $ref: '#/definitions/Certificate' headers: ETag: description: The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. type: string default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/CloudError' summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Batch Batchaccounts Accountname Certificates Certificatename patch: tags: - Certificate operationId: microsoftAzureCertificateUpdate description: Updates the properties of an existing certificate. x-ms-examples: UpdateCertificate: $ref: ./examples/CertificateUpdate.json parameters: - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/AccountNameParameter' - $ref: '#/parameters/CertificateNameParameter' - name: parameters in: body required: true schema: $ref: '#/definitions/CertificateCreateOrUpdateParameters' description: Certificate entity to update. - name: If-Match in: header required: false type: string description: The entity state (ETag) version of the certificate to update. This value can be omitted or set to "*" to apply the operation unconditionally. - $ref: '#/parameters/ApiVersionParameter' - $ref: '#/parameters/SubscriptionIdParameter' responses: '200': description: The operation was successful. The response contains the certificate entity. schema: $ref: '#/definitions/Certificate' headers: ETag: description: The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. type: string default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/CloudError' summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Batch Batchaccounts Accountname Certificates Certificatename delete: tags: - Certificate operationId: microsoftAzureCertificateDelete description: Deletes the specified certificate. x-ms-examples: CertificateDelete: $ref: ./examples/CertificateDelete.json parameters: - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/AccountNameParameter' - $ref: '#/parameters/CertificateNameParameter' - $ref: '#/parameters/ApiVersionParameter' - $ref: '#/parameters/SubscriptionIdParameter' responses: '200': description: The operation was successful. '202': description: The operation will be completed asynchronously. headers: Location: description: The URL of the resource used to check the status of the asynchronous operation. type: string Retry-After: description: Suggested delay to check the status of the asynchronous operation. The value is an integer that represents the seconds. type: integer format: int32 '204': description: The operation was successful. default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/CloudError' x-ms-long-running-operation: true x-ms-long-running-operation-options: final-state-via: location summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Batch Batchaccounts Accountname Certificates Certificatename get: tags: - Certificate operationId: microsoftAzureCertificateGet description: Gets information about the specified certificate. x-ms-examples: Get Certificate: $ref: ./examples/CertificateGet.json Get Certificate with Deletion Error: $ref: ./examples/CertificateGetWithDeletionError.json parameters: - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/AccountNameParameter' - $ref: '#/parameters/CertificateNameParameter' - $ref: '#/parameters/ApiVersionParameter' - $ref: '#/parameters/SubscriptionIdParameter' responses: '200': description: The operation was successful. The response contains the certificate entity. schema: $ref: '#/definitions/Certificate' headers: ETag: description: The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. type: string default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/CloudError' summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Batch Batchaccounts Accountname Certificates Certificatename ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete : post: tags: - Certificate operationId: microsoftAzureCertificateCanceldeletion summary: Microsoft Azure Cancels A Failed Deletion Of A Certificate From The Specified Account description: If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. x-ms-examples: CertificateCancelDeletion: $ref: ./examples/CertificateCancelDeletion.json parameters: - $ref: '#/parameters/ResourceGroupNameParameter' - $ref: '#/parameters/AccountNameParameter' - $ref: '#/parameters/CertificateNameParameter' - $ref: '#/parameters/ApiVersionParameter' - $ref: '#/parameters/SubscriptionIdParameter' responses: '200': description: The operation was successful. The response contains the certificate entity. schema: $ref: '#/definitions/Certificate' headers: ETag: description: The ETag HTTP response header. This is an opaque string. You can use it to detect whether the resource has changed between requests. In particular, you can pass the ETag to one of the If-Match or If-None-Match headers. type: string default: description: Error response describing why the operation failed. schema: $ref: '#/definitions/CloudError' definitions: CertificateProperties: properties: provisioningState: type: string readOnly: true x-nullable: false title: The provisioned state of the resource enum: - Succeeded - Deleting - Failed x-ms-enum: name: CertificateProvisioningState modelAsString: false values: - value: Succeeded description: The certificate is available for use in pools. - value: Deleting description: The user has requested that the certificate be deleted, but the delete operation has not yet completed. You may not reference the certificate when creating or updating pools. - value: Failed description: The user requested that the certificate be deleted, but there are pools that still have references to the certificate, or it is still installed on one or more compute nodes. (The latter can occur if the certificate has been removed from the pool, but the node has not yet restarted. Nodes refresh their certificates only when they restart.) You may use the cancel certificate delete operation to cancel the delete, or the delete certificate operation to retry the delete. provisioningStateTransitionTime: type: string format: date-time title: The time at which the certificate entered its current state. readOnly: true previousProvisioningState: type: string readOnly: true x-nullable: false description: The previous provisioned state of the resource enum: - Succeeded - Deleting - Failed x-ms-enum: name: CertificateProvisioningState modelAsString: false values: - value: Succeeded description: The certificate is available for use in pools. - value: Deleting description: The user has requested that the certificate be deleted, but the delete operation has not yet completed. You may not reference the certificate when creating or updating pools. - value: Failed description: The user requested that the certificate be deleted, but there are pools that still have references to the certificate, or it is still installed on one or more compute nodes. (The latter can occur if the certificate has been removed from the pool, but the node has not yet restarted. Nodes refresh their certificates only when they restart.) You may use the cancel certificate delete operation to cancel the delete, or the delete certificate operation to retry the delete. previousProvisioningStateTransitionTime: type: string format: date-time title: The time at which the certificate entered its previous state. readOnly: true publicData: type: string readOnly: true description: The public key of the certificate. deleteCertificateError: readOnly: true $ref: '#/definitions/DeleteCertificateError' title: The error which occurred while deleting the certificate description: This is only returned when the certificate provisioningState is 'Failed'. allOf: - $ref: '#/definitions/CertificateBaseProperties' description: Certificate properties. Certificate: properties: properties: x-ms-client-flatten: true $ref: '#/definitions/CertificateProperties' description: The properties associated with the certificate. allOf: - $ref: '#/definitions/ProxyResource' description: Contains information about a certificate. ProxyResource: properties: id: readOnly: true type: string description: The ID of the resource. name: readOnly: true type: string description: The name of the resource. type: readOnly: true type: string description: The type of the resource. etag: readOnly: true type: string description: The ETag of the resource, used for concurrency statements. description: A definition of an Azure resource. x-ms-azure-resource: true CertificateCreateOrUpdateProperties: allOf: - $ref: '#/definitions/CertificateBaseProperties' properties: data: type: string title: The base64-encoded contents of the certificate. description: The maximum size is 10KB. password: type: string title: The password to access the certificate's private key. description: This must not be specified if the certificate format is Cer. description: Certificate properties for create operations required: - data DeleteCertificateError: properties: code: type: string description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. message: type: string description: A message describing the error, intended to be suitable for display in a user interface. target: type: string description: The target of the particular error. For example, the name of the property in error. details: type: array items: $ref: '#/definitions/DeleteCertificateError' description: A list of additional details about the error. required: - code - message description: An error response from the Batch service. CertificateBaseProperties: properties: thumbprintAlgorithm: type: string title: The algorithm of the certificate thumbprint. description: This must match the first portion of the certificate name. Currently required to be 'SHA1'. thumbprint: type: string title: The thumbprint of the certificate. description: This must match the thumbprint from the name. format: type: string x-nullable: false description: The format of the certificate - either Pfx or Cer. If omitted, the default is Pfx. enum: - Pfx - Cer x-ms-enum: name: CertificateFormat modelAsString: false values: - value: Pfx description: The certificate is a PFX (PKCS#12) formatted certificate or certificate chain. - value: Cer description: The certificate is a base64-encoded X.509 certificate. CloudError: x-ms-external: true properties: error: $ref: '#/definitions/CloudErrorBody' description: An error response from the Batch service. CloudErrorBody: x-ms-external: true properties: code: type: string description: An identifier for the error. Codes are invariant and are intended to be consumed programmatically. message: type: string description: A message describing the error, intended to be suitable for display in a user interface. target: type: string description: The target of the particular error. For example, the name of the property in error. details: type: array items: $ref: '#/definitions/CloudErrorBody' description: A list of additional details about the error. description: An error response from the Batch service. CertificateCreateOrUpdateParameters: properties: properties: x-ms-client-flatten: true $ref: '#/definitions/CertificateCreateOrUpdateProperties' description: The properties associated with the certificate. allOf: - $ref: '#/definitions/ProxyResource' description: Contains information about a certificate. ListCertificatesResult: properties: value: type: array items: $ref: '#/definitions/Certificate' description: The collection of returned certificates. nextLink: type: string description: The continuation token. description: Values returned by the List operation. parameters: AccountNameParameter: name: accountName in: path required: true type: string pattern: ^[a-zA-Z0-9]+$ minLength: 3 maxLength: 24 description: The name of the Batch account. x-ms-parameter-location: method ApiVersionParameter: name: api-version in: query required: true type: string description: The API version to be used with the HTTP request. CertificateNameParameter: name: certificateName in: path required: true type: string pattern: ^[\w]+-[\w]+$ minLength: 5 maxLength: 45 description: The identifier for the certificate. This must be made up of algorithm and thumbprint separated by a dash, and must match the certificate data in the request. For example SHA1-a3d1c5. x-ms-parameter-location: method SubscriptionIdParameter: name: subscriptionId in: path required: true type: string description: The Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000) ResourceGroupNameParameter: name: resourceGroupName in: path required: true type: string description: The name of the resource group that contains the Batch account. x-ms-parameter-location: method x-ms-parameterized-host: hostTemplate: '{endpoint}' useSchemePrefix: false parameters: - $ref: '#/parameters/Endpoint'