Accounts - List By Resource Group

List Accounts in a resource group
List Accounts in ResourceGroup

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts?api-version=2021-08-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts?api-version=2021-08-01&$skipToken={$skipToken}

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The resource group name.

subscriptionId
path True

string

The subscription identifier

api-version
query True

string

The api version to use.

$skipToken
query

string

Continuation token

Responses

Name Type Description
200 OK

AccountList

Success

Other Status Codes

DataShareError

An error response received from the Microsoft.DataShare resource provider.

Security

azure_auth

Azure Active Directory OAuth2 Flow.

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

Accounts_ListByResourceGroup

Sample Request

GET https://management.azure.com/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts?api-version=2021-08-01

Sample Response

Date: Wed, 13 Sep 2017 17:33:55 GMT
x-ms-request-id: 8e58266a-de42-40d5-b3c4-c6a7e159cfba
X-Content-Type-Options: nosniff
x-ms-ratelimit-remaining-subscription-reads: 14993
x-ms-correlation-request-id: 5d862c55-4de9-4a46-969d-cf1ed3e235ed
{
  "value": [
    {
      "properties": {
        "userName": "John Smith,",
        "createdAt": "2018-11-14T04:47:52.9614956Z",
        "userEmail": "johnsmith@microsoft.com"
      },
      "location": "West US 2",
      "tags": {
        "tag1": "Red",
        "tag2": "White"
      },
      "identity": {
        "type": "SystemAssigned"
      },
      "id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account1",
      "name": "Account1",
      "type": "Microsoft.DataShare/accounts"
    },
    {
      "properties": {
        "userName": "John Smith,",
        "createdAt": "2018-11-14T04:47:52.9614956Z",
        "userEmail": "johnsmith@microsoft.com"
      },
      "location": "East US 2",
      "id": "/subscriptions/433a8dfd-e5d5-4e77-ad86-90acdc75eb1a/resourceGroups/SampleResourceGroup/providers/Microsoft.DataShare/accounts/Account2",
      "identity": {
        "type": "SystemAssigned"
      },
      "name": "Account2",
      "type": "Microsoft.DataShare/accounts"
    }
  ]
}

Definitions

Name Description
Account

An account data transfer object.

AccountList

List response for get Accounts.

createdByType

The type of identity that created the resource.

DataShareError

The data share error model.

DataShareErrorInfo

The data share error body model.

Identity

Identity of resource

lastModifiedByType

The type of identity that last modified the resource.

provisioningState

Provisioning state of the Account

SystemData

Metadata pertaining to creation and last modification of the resource.

type

Identity Type

Account

An account data transfer object.

Name Type Description
id

string

The resource id of the azure resource

identity

Identity

Identity Info on the Account

location

string

Location of the azure resource.

name

string

Name of the azure resource

properties.createdAt

string

Time at which the account was created.

properties.provisioningState

provisioningState

Provisioning state of the Account

properties.userEmail

string

Email of the user who created the resource

properties.userName

string

Name of the user who created the resource

systemData

SystemData

System Data of the Azure resource.

tags

object

Tags on the azure resource.

type

string

Type of the azure resource

AccountList

List response for get Accounts.

Name Type Description
nextLink

string

The Url of next result page.

value

Account[]

Collection of items of type DataTransferObjects.

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

DataShareError

The data share error model.

Name Type Description
error

DataShareErrorInfo

The data share error body

DataShareErrorInfo

The data share error body model.

Name Type Description
code

string

Code of the error

details

DataShareErrorInfo[]

Nested details of the error model

message

string

Message of the error

target

string

Target of the error

Identity

Identity of resource

Name Type Description
principalId

string

service principal Id

tenantId

string

Tenant Id

type

type

Identity Type

lastModifiedByType

The type of identity that last modified the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

provisioningState

Provisioning state of the Account

Name Type Description
Creating

string

Deleting

string

Failed

string

Moving

string

Succeeded

string

SystemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The type of identity that last modified the resource.

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

lastModifiedByType

The type of identity that last modified the resource.

type

Identity Type

Name Type Description
SystemAssigned

string