diff --git a/Commands/attestation/policy/_reset.md b/Commands/attestation/policy/_reset.md new file mode 100644 index 000000000..d9fd53683 --- /dev/null +++ b/Commands/attestation/policy/_reset.md @@ -0,0 +1,16 @@ +# [Command] _attestation policy reset_ + +Resets the attestation policy for the specified tenant and reverts to the default policy. + +## Versions + +### [2022-08-01](/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9OnJlc2V0/2022-08-01.xml) **Stable** + + + +#### examples + +- Resets the attestation policy for the specified tenant and reverts to the default policy. + ```bash + attestation policy reset -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK --policy-jws "eyJhbGciOiJub25lIn0.." + ``` diff --git a/Commands/attestation/policy/_set.md b/Commands/attestation/policy/_set.md new file mode 100644 index 000000000..340868e8b --- /dev/null +++ b/Commands/attestation/policy/_set.md @@ -0,0 +1,26 @@ +# [Command] _attestation policy set_ + +Sets the policy for a given kind of attestation type. + +## Versions + +### [2022-08-01](/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.xml) **Stable** + + + +#### examples + +- Sets the policy for a given kind of attestation type using JWT content. + ```bash + attestation policy set -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK --new-attestation-policy "{JWT}" --policy-format JWT + ``` + +- Sets the policy for a given kind of attestation type using Text content. + ```bash + attestation policy set -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK --new-attestation-policy "{json_text}" + ``` + +- Sets the policy for a given kind of attestation type using file name. + ```bash + attestation policy set -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK --new-attestation-policy-file "{file_name}" --policy- format JWT + ``` diff --git a/Commands/attestation/policy/_show.md b/Commands/attestation/policy/_show.md new file mode 100644 index 000000000..4a33e5206 --- /dev/null +++ b/Commands/attestation/policy/_show.md @@ -0,0 +1,16 @@ +# [Command] _attestation policy show_ + +Retrieves the current policy for a given kind of attestation type. + +## Versions + +### [2022-08-01](/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.xml) **Stable** + + + +#### examples + +- Retrieves the current policy for a given kind of attestation type. + ```bash + attestation policy show -n "myattestationprovider" -g "MyResourceGroup" --attestation-type SGX-OpenEnclaveSDK + ``` diff --git a/Commands/attestation/policy/_update.md b/Commands/attestation/policy/_update.md new file mode 100644 index 000000000..c338df565 --- /dev/null +++ b/Commands/attestation/policy/_update.md @@ -0,0 +1,9 @@ +# [Command] _attestation policy update_ + +Update the policy for a given attestation type. + +## Versions + +### [2022-08-01](/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.xml) **Stable** + + diff --git a/Commands/attestation/policy/readme.md b/Commands/attestation/policy/readme.md new file mode 100644 index 000000000..6dcc166d9 --- /dev/null +++ b/Commands/attestation/policy/readme.md @@ -0,0 +1,17 @@ +# [Group] _attestation policy_ + +Manage policies. + +## Commands + +- [reset](/Commands/attestation/policy/_reset.md) +: Resets the attestation policy for the specified tenant and reverts to the default policy. + +- [set](/Commands/attestation/policy/_set.md) +: Sets the policy for a given kind of attestation type. + +- [show](/Commands/attestation/policy/_show.md) +: Retrieves the current policy for a given kind of attestation type. + +- [update](/Commands/attestation/policy/_update.md) +: Update the policy for a given attestation type. diff --git a/Commands/attestation/readme.md b/Commands/attestation/readme.md new file mode 100644 index 000000000..281b3320a --- /dev/null +++ b/Commands/attestation/readme.md @@ -0,0 +1,11 @@ +# [Group] _attestation_ + +Manage Microsoft Azure Attestation (MAA). + +## Subgroups + +- [policy](/Commands/attestation/policy/readme.md) +: Manage policies. + +- [signer](/Commands/attestation/signer/readme.md) +: Manage signers. diff --git a/Commands/attestation/signer/_add.md b/Commands/attestation/signer/_add.md new file mode 100644 index 000000000..9f64af7c0 --- /dev/null +++ b/Commands/attestation/signer/_add.md @@ -0,0 +1,16 @@ +# [Command] _attestation signer add_ + +Adds a new attestation policy certificate to the set of policy management certificates. + +## Versions + +### [2022-08-01](/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczphZGQ=/2022-08-01.xml) **Stable** + + + +#### examples + +- Adds a new attestation policy certificate to the set of policy management certificates. + ```bash + attestation signer add -n "myattestationprovider" -g "MyResourceGroup" --signer "eyAiYWxnIjoiUlMyNTYiLCAie..." + ``` diff --git a/Commands/attestation/signer/_list.md b/Commands/attestation/signer/_list.md new file mode 100644 index 000000000..06ba8b05c --- /dev/null +++ b/Commands/attestation/signer/_list.md @@ -0,0 +1,16 @@ +# [Command] _attestation signer list_ + +Retrieves the set of certificates used to express policy for the current tenant. + +## Versions + +### [2022-08-01](/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlcw==/2022-08-01.xml) **Stable** + + + +#### examples + +- Retrieves the set of certificates used to express policy for the current tenant. + ```bash + attestation signer list -n "myattestationprovider" -g "MyResourceGroup" + ``` diff --git a/Commands/attestation/signer/_remove.md b/Commands/attestation/signer/_remove.md new file mode 100644 index 000000000..79e806b04 --- /dev/null +++ b/Commands/attestation/signer/_remove.md @@ -0,0 +1,16 @@ +# [Command] _attestation signer remove_ + +Removes the specified policy management certificate. + +## Versions + +### [2022-08-01](/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczpyZW1vdmU=/2022-08-01.xml) **Stable** + + + +#### examples + +- Removes the specified policy management certificate. + ```bash + attestation signer remove -n "myattestationprovider" -g "MyResourceGroup" --signer "eyAiYWxnIjoiUlMyNTYiLCAie..." + ``` diff --git a/Commands/attestation/signer/readme.md b/Commands/attestation/signer/readme.md new file mode 100644 index 000000000..8c7ad7ef8 --- /dev/null +++ b/Commands/attestation/signer/readme.md @@ -0,0 +1,14 @@ +# [Group] _attestation signer_ + +Manage signers. + +## Commands + +- [add](/Commands/attestation/signer/_add.md) +: Adds a new attestation policy certificate to the set of policy management certificates. + +- [list](/Commands/attestation/signer/_list.md) +: Retrieves the set of certificates used to express policy for the current tenant. + +- [remove](/Commands/attestation/signer/_remove.md) +: Removes the specified policy management certificate. diff --git a/Commands/readme.md b/Commands/readme.md index 1afd0b715..01aec38cc 100644 --- a/Commands/readme.md +++ b/Commands/readme.md @@ -14,6 +14,9 @@ - [apic](/Commands/apic/readme.md) : API Center +- [attestation](/Commands/attestation/readme.md) +: Manage Microsoft Azure Attestation (MAA). + - [automanage](/Commands/automanage/readme.md) : Manage Automanage diff --git a/Commands/tree.json b/Commands/tree.json index e5fbffd8e..357db2020 100644 --- a/Commands/tree.json +++ b/Commands/tree.json @@ -2096,6 +2096,252 @@ "apic" ] }, + "attestation": { + "commandGroups": { + "policy": { + "commands": { + "reset": { + "help": { + "short": "Resets the attestation policy for the specified tenant and reverts to the default policy." + }, + "names": [ + "attestation", + "policy", + "reset" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "attestation policy reset -n \"myattestationprovider\" -g \"MyResourceGroup\" --attestation-type SGX-OpenEnclaveSDK --policy-jws \"eyJhbGciOiJub25lIn0..\"" + ], + "name": "Resets the attestation policy for the specified tenant and reverts to the default policy." + } + ], + "name": "2022-08-01", + "resources": [ + { + "id": "/policies/{}:reset", + "plane": "data-plane:microsoft.attestation", + "version": "2022-08-01" + } + ] + } + ] + }, + "set": { + "help": { + "short": "Sets the policy for a given kind of attestation type." + }, + "names": [ + "attestation", + "policy", + "set" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "attestation policy set -n \"myattestationprovider\" -g \"MyResourceGroup\" --attestation-type SGX-OpenEnclaveSDK --new-attestation-policy \"{JWT}\" --policy-format JWT" + ], + "name": "Sets the policy for a given kind of attestation type using JWT content." + }, + { + "commands": [ + "attestation policy set -n \"myattestationprovider\" -g \"MyResourceGroup\" --attestation-type SGX-OpenEnclaveSDK --new-attestation-policy \"{json_text}\"" + ], + "name": "Sets the policy for a given kind of attestation type using Text content." + }, + { + "commands": [ + "attestation policy set -n \"myattestationprovider\" -g \"MyResourceGroup\" --attestation-type SGX-OpenEnclaveSDK --new-attestation-policy-file \"{file_name}\" --policy- format JWT" + ], + "name": "Sets the policy for a given kind of attestation type using file name." + } + ], + "name": "2022-08-01", + "resources": [ + { + "id": "/policies/{}", + "plane": "data-plane:microsoft.attestation", + "version": "2022-08-01" + } + ] + } + ] + }, + "show": { + "help": { + "short": "Retrieves the current policy for a given kind of attestation type." + }, + "names": [ + "attestation", + "policy", + "show" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "attestation policy show -n \"myattestationprovider\" -g \"MyResourceGroup\" --attestation-type SGX-OpenEnclaveSDK" + ], + "name": "Retrieves the current policy for a given kind of attestation type." + } + ], + "name": "2022-08-01", + "resources": [ + { + "id": "/policies/{}", + "plane": "data-plane:microsoft.attestation", + "version": "2022-08-01" + } + ] + } + ] + }, + "update": { + "help": { + "short": "Update the policy for a given attestation type." + }, + "names": [ + "attestation", + "policy", + "update" + ], + "versions": [ + { + "name": "2022-08-01", + "resources": [ + { + "id": "/policies/{}", + "plane": "data-plane:microsoft.attestation", + "version": "2022-08-01" + } + ] + } + ] + } + }, + "help": { + "short": "Manage policies." + }, + "names": [ + "attestation", + "policy" + ] + }, + "signer": { + "commands": { + "add": { + "help": { + "short": "Adds a new attestation policy certificate to the set of policy management certificates." + }, + "names": [ + "attestation", + "signer", + "add" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "attestation signer add -n \"myattestationprovider\" -g \"MyResourceGroup\" --signer \"eyAiYWxnIjoiUlMyNTYiLCAie...\"" + ], + "name": "Adds a new attestation policy certificate to the set of policy management certificates." + } + ], + "name": "2022-08-01", + "resources": [ + { + "id": "/certificates:add", + "plane": "data-plane:microsoft.attestation", + "version": "2022-08-01" + } + ] + } + ] + }, + "list": { + "help": { + "short": "Retrieves the set of certificates used to express policy for the current tenant." + }, + "names": [ + "attestation", + "signer", + "list" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "attestation signer list -n \"myattestationprovider\" -g \"MyResourceGroup\"" + ], + "name": "Retrieves the set of certificates used to express policy for the current tenant." + } + ], + "name": "2022-08-01", + "resources": [ + { + "id": "/certificates", + "plane": "data-plane:microsoft.attestation", + "version": "2022-08-01" + } + ] + } + ] + }, + "remove": { + "help": { + "short": "Removes the specified policy management certificate." + }, + "names": [ + "attestation", + "signer", + "remove" + ], + "versions": [ + { + "examples": [ + { + "commands": [ + "attestation signer remove -n \"myattestationprovider\" -g \"MyResourceGroup\" --signer \"eyAiYWxnIjoiUlMyNTYiLCAie...\"" + ], + "name": "Removes the specified policy management certificate." + } + ], + "name": "2022-08-01", + "resources": [ + { + "id": "/certificates:remove", + "plane": "data-plane:microsoft.attestation", + "version": "2022-08-01" + } + ] + } + ] + } + }, + "help": { + "short": "Manage signers." + }, + "names": [ + "attestation", + "signer" + ] + } + }, + "help": { + "short": "Manage Microsoft Azure Attestation (MAA)." + }, + "names": [ + "attestation" + ] + }, "automanage": { "commandGroups": { "best-practice": { diff --git a/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlcw==/2022-08-01.json b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlcw==/2022-08-01.json new file mode 100644 index 000000000..abd8ed5c5 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlcw==/2022-08-01.json @@ -0,0 +1 @@ +{"plane": "data-plane:microsoft.attestation", "resources": [{"id": "/certificates", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L2NlcnRpZmljYXRlcw==/V/MjAyMi0wOC0wMQ=="}], "commandGroups": [{"name": "attestation signer", "commands": [{"name": "list", "version": "2022-08-01", "resources": [{"id": "/certificates", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L2NlcnRpZmljYXRlcw==/V/MjAyMi0wOC0wMQ=="}], "operations": [{"operationId": "PolicyCertificates_Get", "http": {"path": "/certificates", "request": {"method": "get", "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-08-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "token", "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlcw==/2022-08-01.xml b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlcw==/2022-08-01.xml new file mode 100644 index 000000000..8e96a3990 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlcw==/2022-08-01.xml @@ -0,0 +1,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczphZGQ=/2022-08-01.json b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczphZGQ=/2022-08-01.json new file mode 100644 index 000000000..61e46034a --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczphZGQ=/2022-08-01.json @@ -0,0 +1 @@ +{"plane": "data-plane:microsoft.attestation", "resources": [{"id": "/certificates:add", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L2NlcnRpZmljYXRlczphZGQ=/V/MjAyMi0wOC0wMQ=="}], "commandGroups": [{"name": "attestation signer", "commands": [{"name": "add", "version": "2022-08-01", "resources": [{"id": "/certificates:add", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L2NlcnRpZmljYXRlczphZGQ=/V/MjAyMi0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$policyCertificateToAdd", "options": ["signer"], "required": true, "group": "", "help": {"short": "The policy certificate to add. An RFC7519 JSON Web Token containing a claim named \"maa-policyCertificate\" whose value is an RFC7517 JSON Web Key which specifies a new key to update. The RFC7519 JWT must be signed with one of the existing signing certificates."}, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}], "operations": [{"operationId": "PolicyCertificates_Add", "http": {"path": "/certificates:add", "request": {"method": "post", "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-08-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "string", "name": "policyCertificateToAdd", "arg": "$policyCertificateToAdd", "required": true, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "token", "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczphZGQ=/2022-08-01.xml b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczphZGQ=/2022-08-01.xml new file mode 100644 index 000000000..158f46f0d --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczphZGQ=/2022-08-01.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczpyZW1vdmU=/2022-08-01.json b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczpyZW1vdmU=/2022-08-01.json new file mode 100644 index 000000000..6a544d856 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczpyZW1vdmU=/2022-08-01.json @@ -0,0 +1 @@ +{"plane": "data-plane:microsoft.attestation", "resources": [{"id": "/certificates:remove", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L2NlcnRpZmljYXRlczpyZW1vdmU=/V/MjAyMi0wOC0wMQ=="}], "commandGroups": [{"name": "attestation signer", "commands": [{"name": "remove", "version": "2022-08-01", "resources": [{"id": "/certificates:remove", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L2NlcnRpZmljYXRlczpyZW1vdmU=/V/MjAyMi0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$policyCertificateToRemove", "options": ["signer"], "required": true, "group": "", "help": {"short": "The policy certificate to remove. An RFC7519 JSON Web Token containing a claim named \"maa-policyCertificate\" whose value is an RFC7517 JSON Web Key which specifies a new key to update. The RFC7519 JWT must be signed with one of the existing signing certificates."}, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}], "operations": [{"operationId": "PolicyCertificates_Remove", "http": {"path": "/certificates:remove", "request": {"method": "post", "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-08-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "string", "name": "policyCertificateToRemove", "arg": "$policyCertificateToRemove", "required": true, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "token", "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczpyZW1vdmU=/2022-08-01.xml b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczpyZW1vdmU=/2022-08-01.xml new file mode 100644 index 000000000..edb26c3e9 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L2NlcnRpZmljYXRlczpyZW1vdmU=/2022-08-01.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.json b/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.json new file mode 100644 index 000000000..d526ab492 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.json @@ -0,0 +1 @@ +{"plane": "data-plane:microsoft.attestation", "resources": [{"id": "/policies/{}", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L3BvbGljaWVzL3thdHRlc3RhdGlvblR5cGV9/V/MjAyMi0wOC0wMQ=="}], "commandGroups": [{"name": "attestation policy", "commands": [{"name": "show", "version": "2022-08-01", "resources": [{"id": "/policies/{}", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L3BvbGljaWVzL3thdHRlc3RhdGlvblR5cGV9/V/MjAyMi0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.attestationType", "options": ["attestation-type"], "required": true, "group": "", "help": {"short": "Type of the attestation."}, "enum": {"items": [{"name": "OpenEnclave", "value": "OpenEnclave"}, {"name": "SevSnpVm", "value": "SevSnpVm"}, {"name": "SgxEnclave", "value": "SgxEnclave"}, {"name": "Tpm", "value": "Tpm"}]}}]}], "operations": [{"operationId": "Policy_Get", "http": {"path": "/policies/{attestationType}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "attestationType", "arg": "$Path.attestationType", "required": true, "enum": {"items": [{"value": "OpenEnclave"}, {"value": "SevSnpVm"}, {"value": "SgxEnclave"}, {"value": "Tpm"}]}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-08-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "token", "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "set", "version": "2022-08-01", "resources": [{"id": "/policies/{}", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L3BvbGljaWVzL3thdHRlc3RhdGlvblR5cGV9/V/MjAyMi0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.attestationType", "options": ["attestation-type"], "required": true, "group": "", "help": {"short": "Type of the attestation."}, "enum": {"items": [{"name": "OpenEnclave", "value": "OpenEnclave"}, {"name": "SevSnpVm", "value": "SevSnpVm"}, {"name": "SgxEnclave", "value": "SgxEnclave"}, {"name": "Tpm", "value": "Tpm"}]}}, {"type": "string", "var": "$newAttestationPolicy", "options": ["new-attestation-policy"], "required": true, "group": "", "help": {"short": "Content of the new attestation policy (Text or JWT)."}, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}], "operations": [{"operationId": "Policy_Set", "http": {"path": "/policies/{attestationType}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "attestationType", "arg": "$Path.attestationType", "required": true, "enum": {"items": [{"value": "OpenEnclave"}, {"value": "SevSnpVm"}, {"value": "SgxEnclave"}, {"value": "Tpm"}]}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-08-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "string", "name": "newAttestationPolicy", "arg": "$newAttestationPolicy", "required": true, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "token", "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}, {"name": "update", "version": "2022-08-01", "resources": [{"id": "/policies/{}", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L3BvbGljaWVzL3thdHRlc3RhdGlvblR5cGV9/V/MjAyMi0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.attestationType", "options": ["attestation-type"], "required": true, "group": "", "help": {"short": "Type of the attestation."}, "enum": {"items": [{"name": "OpenEnclave", "value": "OpenEnclave"}, {"name": "SevSnpVm", "value": "SevSnpVm"}, {"name": "SgxEnclave", "value": "SgxEnclave"}, {"name": "Tpm", "value": "Tpm"}]}}, {"type": "string", "var": "$newAttestationPolicy", "options": ["new-attestation-policy"], "group": "", "help": {"short": "Content of the new attestation policy (Text or JWT)."}, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}], "operations": [{"operationId": "Policy_Get", "http": {"path": "/policies/{attestationType}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "attestationType", "arg": "$Path.attestationType", "required": true, "enum": {"items": [{"value": "OpenEnclave"}, {"value": "SevSnpVm"}, {"value": "SgxEnclave"}, {"value": "Tpm"}]}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-08-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "token", "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}], "cls": "PolicyResponse_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}, {"instanceUpdate": {"ref": "$Instance", "json": {"schema": {"type": "string", "name": "newAttestationPolicy", "arg": "$newAttestationPolicy", "required": true, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}}}}, {"operationId": "Policy_Set", "http": {"path": "/policies/{attestationType}", "request": {"method": "put", "path": {"params": [{"type": "string", "name": "attestationType", "arg": "$Path.attestationType", "required": true, "enum": {"items": [{"value": "OpenEnclave"}, {"value": "SevSnpVm"}, {"value": "SgxEnclave"}, {"value": "Tpm"}]}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-08-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"ref": "$Instance"}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "@PolicyResponse_read"}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}]}]}]} \ No newline at end of file diff --git a/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.xml b/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.xml new file mode 100644 index 000000000..cab92dca9 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9/2022-08-01.xml @@ -0,0 +1,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9OnJlc2V0/2022-08-01.json b/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9OnJlc2V0/2022-08-01.json new file mode 100644 index 000000000..004984fa1 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9OnJlc2V0/2022-08-01.json @@ -0,0 +1 @@ +{"plane": "data-plane:microsoft.attestation", "resources": [{"id": "/policies/{}:reset", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L3BvbGljaWVzL3thdHRlc3RhdGlvblR5cGV9OnJlc2V0/V/MjAyMi0wOC0wMQ=="}], "commandGroups": [{"name": "attestation policy", "commands": [{"name": "reset", "version": "2022-08-01", "resources": [{"id": "/policies/{}:reset", "version": "2022-08-01", "swagger": "data-plane:microsoft.attestation/attestation/ResourceProviders/Microsoft.Attestation/Paths/L3BvbGljaWVzL3thdHRlc3RhdGlvblR5cGV9OnJlc2V0/V/MjAyMi0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.attestationType", "options": ["attestation-type"], "required": true, "group": "", "help": {"short": "Type of the attestation."}, "enum": {"items": [{"name": "OpenEnclave", "value": "OpenEnclave"}, {"name": "SevSnpVm", "value": "SevSnpVm"}, {"name": "SgxEnclave", "value": "SgxEnclave"}, {"name": "Tpm", "value": "Tpm"}]}}, {"type": "string", "var": "$PolicyJws", "options": ["policy-jws"], "required": true, "group": "", "help": {"short": "JSON Web Signature with an empty policy document."}, "default": {"value": "eyJhbGciOiJub25lIn0.."}, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}], "operations": [{"operationId": "Policy_Reset", "http": {"path": "/policies/{attestationType}:reset", "request": {"method": "post", "path": {"params": [{"type": "string", "name": "attestationType", "arg": "$Path.attestationType", "required": true, "enum": {"items": [{"value": "OpenEnclave"}, {"value": "SevSnpVm"}, {"value": "SgxEnclave"}, {"value": "Tpm"}]}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2022-08-01"}, "type": "string", "name": "api-version", "required": true}]}, "body": {"json": {"schema": {"type": "string", "name": "PolicyJws", "arg": "$PolicyJws", "required": true, "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}}}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "token", "format": {"pattern": "[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]*\\.[A-Za-z0-9_-]*"}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]} \ No newline at end of file diff --git a/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9OnJlc2V0/2022-08-01.xml b/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9OnJlc2V0/2022-08-01.xml new file mode 100644 index 000000000..3fce1e314 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/L3BvbGljaWVzL3t9OnJlc2V0/2022-08-01.xml @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Resources/data-plane/microsoft.attestation/client.json b/Resources/data-plane/microsoft.attestation/client.json new file mode 100644 index 000000000..7ed363089 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/client.json @@ -0,0 +1 @@ +{"version": "2023-11-24T03:30:40.500449Z", "plane": "data-plane:microsoft.attestation", "endpoints": {"type": "http-operation", "resource": {"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.attestation/attestationproviders/{}", "version": "2021-06-01", "subresource": "properties.attestUri", "swagger": "mgmt-plane/attestation/ResourceProviders/Microsoft.Attestation/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZUdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuQXR0ZXN0YXRpb24vYXR0ZXN0YXRpb25Qcm92aWRlcnMve3Byb3ZpZGVyTmFtZX0=/V/MjAyMS0wNi0wMQ=="}, "selector": {"var": "$Endpoint", "ref": "$EndpointInstance", "json": {"type": "object", "name": "response", "prop": {"type": "simple", "name": "properties.attestUri"}}}, "operation": {"operationId": "AttestationProviders_Get", "http": {"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Attestation/attestationProviders/{providerName}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "providerName", "arg": "$Client.Endpoint.Path.providerName", "required": true}, {"type": "string", "name": "resourceGroupName", "arg": "$Client.Endpoint.Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Client.Endpoint.Path.subscriptionId", "required": true, "format": {"minLength": 1}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2021-06-01"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$EndpointInstance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id"}, {"type": "ResourceLocation", "name": "location", "required": true}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "attestUri"}, {"readOnly": true, "type": "array", "name": "privateEndpointConnections", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/subscriptions/{}/resourceGroups/{}/providers/Microsoft.Attestation/attestationProviders/{}/privateEndpointConnections/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "object", "name": "privateEndpoint", "props": [{"readOnly": true, "type": "string", "name": "id"}]}, {"type": "object", "name": "privateLinkServiceConnectionState", "required": true, "props": [{"type": "string", "name": "actionsRequired"}, {"type": "string", "name": "description"}, {"type": "string", "name": "status", "enum": {"items": [{"value": "Approved"}, {"value": "Pending"}, {"value": "Rejected"}]}}]}, {"readOnly": true, "type": "string", "name": "provisioningState", "enum": {"items": [{"value": "Creating"}, {"value": "Deleting"}, {"value": "Failed"}, {"value": "Succeeded"}]}}], "clientFlatten": true}, {"readOnly": true, "type": "string", "name": "type"}]}}, {"default": {"value": "Enabled"}, "type": "string", "name": "publicNetworkAccess", "enum": {"items": [{"value": "Disabled"}, {"value": "Enabled"}]}}, {"type": "string", "name": "status", "enum": {"items": [{"value": "Error"}, {"value": "NotReady"}, {"value": "Ready"}]}}, {"default": {"value": "Enabled"}, "type": "string", "name": "tpmAttestationAuthentication", "enum": {"items": [{"value": "Disabled"}, {"value": "Enabled"}]}}, {"type": "string", "name": "trustModel"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt"}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt"}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"type": "object", "name": "tags", "additionalProps": {"item": {"type": "string"}}}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}}, "auth": {"aad": {"scopes": ["https://attest.azure.net/.default"]}}, "argGroup": {"name": "Client", "args": [{"type": "string", "var": "$Client.Endpoint.Path.providerName", "options": ["provider-name"], "required": true, "group": "Client", "idPart": "name", "help": {"short": "Name of the attestation provider."}}, {"type": "ResourceGroupName", "var": "$Client.Endpoint.Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "group": "Client", "idPart": "resource_group", "help": {"short": "Name of resource group. You can configure the default group using `az configure --defaults group=`"}}, {"type": "SubscriptionId", "var": "$Client.Endpoint.Path.subscriptionId", "options": ["subscription"], "required": true, "group": "Client", "idPart": "subscription"}]}} \ No newline at end of file diff --git a/Resources/data-plane/microsoft.attestation/client.xml b/Resources/data-plane/microsoft.attestation/client.xml new file mode 100644 index 000000000..d8d1c07e9 --- /dev/null +++ b/Resources/data-plane/microsoft.attestation/client.xml @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +