

Le traduzioni sono generate tramite traduzione automatica. In caso di conflitto tra il contenuto di una traduzione e la versione originale in Inglese, quest'ultima prevarrà.

# GetPublicProject
<a name="API_GetPublicProject"></a>

**Nota**  
Questo elemento API non è contenuto negli AWS CLI o AWS SDK.

## Sintassi della richiesta
<a name="API_GetPublicProject_RequestSyntax"></a>

```
{
   "publicProjectAlias": "{{string}}"
}
```

## Parametri della richiesta
<a name="API_GetPublicProject_RequestParameters"></a>

Per informazioni sui parametri comuni per tutte le azioni, consulta [Parametri comuni](https://docs.aws.amazon.com/codebuild/latest/APIReference/CommonParameters.html).

La richiesta accetta i seguenti dati in formato JSON.

**Nota**  
Nell'elenco seguente, i parametri richiesti vengono descritti per primi.

 **[pubblico ProjectAlias](#API_GetPublicProject_RequestSyntax)**   <a name="CodeBuild-GetPublicProject-request-publicProjectAlias"></a>
Tipo: String  
Limitazioni di lunghezza: lunghezza minima pari a 1. La lunghezza massima è 1024 caratteri.  
Modello: `^[0-9a-zA-Z%+=]+$`   
Obbligatorio: sì

## Sintassi della risposta
<a name="API_GetPublicProject_ResponseSyntax"></a>

```
{
   "project": { 
      "artifacts": { 
         "artifactIdentifier": "string",
         "location": "string",
         "type": "string"
      },
      "buildBatchConfig": { 
         "combineArtifacts": boolean,
         "restrictions": { 
            "[computeTypesAllowed](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BatchRestrictions.html)": [ "string" ],
            "[maximumBuildsAllowed](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_BatchRestrictions.html)": number
         },
         "timeoutInMins": number
      },
      "concurrentBuildLimit": number,
      "description": "string",
      "environment": { 
         "computeType": "string",
         "environmentVariables": [ 
            { 
               "[name](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_EnvironmentVariable.html)": "string",
               "[type](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_EnvironmentVariable.html)": "string",
               "[value](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_EnvironmentVariable.html)": "string"
            }
         ],
         "image": "string",
         "type": "string"
      },
      "name": "string",
      "queuedTimeoutInMinutes": number,
      "secondaryArtifacts": [ 
         { 
            "artifactIdentifier": "string",
            "location": "string",
            "type": "string"
         }
      ],
      "secondarySources": [ 
         { 
            "buildspec": "string",
            "gitCloneDepth": number,
            "gitSubmodulesConfig": { 
               "[fetchSubmodules](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_GitSubmodulesConfig.html)": boolean
            },
            "location": "string",
            "sourceIdentifier": "string",
            "type": "string"
         }
      ],
      "secondarySourceVersions": [ 
         { 
            "[sourceIdentifier](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectSourceVersion.html)": "string",
            "[sourceVersion](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_ProjectSourceVersion.html)": "string"
         }
      ],
      "source": { 
         "buildspec": "string",
         "gitCloneDepth": number,
         "gitSubmodulesConfig": { 
            "[fetchSubmodules](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_GitSubmodulesConfig.html)": boolean
         },
         "location": "string",
         "sourceIdentifier": "string",
         "type": "string"
      },
      "sourceVersion": "string",
      "timeoutInMinutes": number,
      "webhook": { 
         "branchFilter": "string",
         "buildType": "string",
         "filterGroups": [ 
            [ 
               { 
                  "[excludeMatchedPattern](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_WebhookFilter.html)": boolean,
                  "[pattern](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_WebhookFilter.html)": "string",
                  "[type](https://docs.aws.amazon.com/codebuild/latest/APIReference/API_WebhookFilter.html)": "string"
               }
            ]
         ],
         "payloadUrl": "string",
         "url": "string"
      }
   }
}
```

## Elementi di risposta
<a name="API_GetPublicProject_ResponseElements"></a>

Se l'operazione riesce, il servizio restituisce una risposta HTTP 200.

I dati seguenti vengono restituiti in formato JSON mediante il servizio.

 **[progetto](#API_GetPublicProject_ResponseSyntax)**   <a name="CodeBuild-GetPublicProject-response-project"></a>
Tipo: oggetto [PublicProject](API_PublicProject.md)

## Errori
<a name="API_GetPublicProject_Errors"></a>

Per informazioni sugli errori comuni a tutte le azioni, vedere [Errori comuni](https://docs.aws.amazon.com/codebuild/latest/APIReference/CommonErrors.html).

 **InvalidInputException**   
Codice di stato HTTP: 400

 **ResourceNotFoundException**   
Codice di stato HTTP: 400